Originally posted by: 3HDM_Dorota_Mankowska
Hello everyone,
I am looking for a procedure to make a loop, in which in every iteration the old model will be imported and updated by one extra constraint and exported.
I add the inequalities step by step to a Vector using static Vector<IloLinearNumExpr> for the Left-Hand-Sides and static Vector<Double> for the Righ-Hand-Sides. This are generated within a class makeCuts with respect to the current situation. Afterwards, I want to reformulate my model by writing it new and adding all the saved inequalities within a class Master_Cut by
for (int i = 0; i<cutsLeftSides.size(); i++)
model.addGe(cutsLeftSides.get(i), cutsRightSides.get(i));
The error is as follows:
internal error (Please notify IBM)
at ilog.concert.cppimpl.concert_wrapJNI.operator_ge__SWIG_1(Native Method)
at ilog.concert.cppimpl.concert_wrap.operator_ge(concert_wrap.java:747)
at ilog.concert.IloModelerAdvImpl.ge(IloModelerAdvImpl.java:1471)
at ilog.concert.IloModelerAdvImpl.ge(IloModelerAdvImpl.java:1462)
at ilog.concert.IloModelerAdvImpl.addGe(IloModelerAdvImpl.java:1256)
at CombBend.Master_cut(CombBend.java:416)
at CPLEX_CombBend.main(CPLEX_CombBend.java:629)
Can you please tell me, what is wrong with this formula? Or how can I do this in a different way?
Thank you in advance for your help.
Best wishes,
Dorota
#CPLEXOptimizers#DecisionOptimization