Originally posted by: Hesamddin
Hi,
I have a problem adding the cut set inequalities to my main MIP model dynamically. what I did so far is as follows :
I wrote the MIP model in python and solved the model with docplex . Then solved the LP relaxation of the model, save the solution in json file, then use the json file as an input to the min-cut formulation and solve the model with docplex and get the result which define the sets of S and Sbar for my separation problem.
Now, I need to add the corresponding inequality constraint to the main MIP model in the dynamic way. What I mean is add the inequality constraint, solve the LP-relaxation of MIP model, get the result, use the result as an input to separation problem, then solve the separation problem and define the new set of s and sbar and then add the corresponding inequality constraint to the main problem and do the same process until get the best lower bound.
My problem is I couldn't find the cplex callback to do this process dynamically.
I read the documentation about usercut callback but it seems to me that for using this callback we need to define the pool of constraints at first and then use them in optimization process which is not my case, because I do not know all constraints from beginning.
Does any one have suggestion ?
#CPLEXOptimizers#DecisionOptimization