Originally posted by: Ahlem
Because the cplex.sum method becomes incorrect. The method sum(IloNumExpr[], int, int) in the type IloCplexModeler is not applicable for the arguments (IloNumVar, int, int).
I remind you my constraint :
IloLinearNumExpr expr = cplex.linearNumExpr();
expr.addTerm(1.0, c[i][j][k]);
cplex.addGe(expr,
cplex.sum(s[i][j][k], p[i][j][k] ,
(-(1-x[i][j][k])) * L));
If there are other methods (i mean gives the same results as cplex.addGe , cplex.addLe, cplex.sum cplex.prod etc. )to compare integers and make it produce and the sum of integers and reals using cplex in java please Send them to me.
It's very difficult to be stuck by this methods.
#CPLEXOptimizers#DecisionOptimization