Originally posted by: bqt
Hi all,
I am solving a MIP problem, where binary decision variables are declared as follows
IloArray<IloIntVarArray> x(env, n); //Variables
for(i = 0; i < n; i++){
x[i] = IloIntVarArray(env, n, 0, 1);
}
}
In the UserCutCallback, I show assigned value of the binary variables in using the method getValues(x[i]). As the results, some variables are assigned negative values.
Someone could please give me an advice to fix this bug ?
Thanks,
bqt
#CPLEXOptimizers#DecisionOptimization