Originally posted by: felycite28
Thank you Daniel,
I have two questions then, I will be very happy if you can give me ideas. I am coding the model on Python API.
1) For removing the related constraints and the objective function the paper says :
Original version:
Constraint 9:
It says that:
So , it as not that much clear for me.
2) As I said , I am coding on Python API , I tried to remove some of the constraints, for 5 time periods , I am relaxing the model for last 3 periods:
for i in range (0,2):
call objective function of original model
call constraints of original model
for k in range(3,5):
call objetive function of original model // Shall I define new objective function for the previous question ? def newobjective ?
call constraints of original model
model.linear_constraints.delete("c702",70) //I am removing the constraints for these time inrervals ?
Here , the question
1) Is there something wrong with the general structure , calling the functions etc ? calling the constraints and variables for both for loop?
2) I am getting 1219. Name exists.
I have got the contsraint name "c702" by writing the model on .lp file and go the bame of it ?
I would be very happy if you can correct my ideas ? or if you can give new ones?
Thank you so much
#CPLEXOptimizers#DecisionOptimization