Originally posted by: Ahlem
Because I can not use it (the array of ints) after in my constraints. The program does not accept.
Is there another method I can use? (To more explain I have attached my constraint )
//My ilonumvar is c[i][j][k]
IloNumVar[][][] c = new IloNumVar[job][][];
int [][][] p= new int[job][][];
IloNumVar[][][][][] y = new IloNumVar[job][][][][];
int L =10000;
cplex.addGe(c[i1][j1][k],
cplex.sum(c[i2][j2][k], cplex.prod(y[i1][j1][i2][j2][k], p[i1][j1][k]),
cplex.sum(-L, cplex.prod(L, y[i2][j2][i1][j1][k]))));
#CPLEXOptimizers#DecisionOptimization