Originally posted by: SystemAdmin
One way to do so will be with the use of the setVectors() method. If var2D is a 2D bool decision variable, var2D_startingVals is the 2D IloNumVar array containing the starting values and i is the 1st dimension of the decision variable, then one such call could look like the following:
for(int c=0;c<i;c++){
cplex.setVectors(var2D_startingVals[c], 0, var2D[c],0,0,0);
}
Also, do make sure that this code is placed after the 'cplex.extract(model);' line.
Hope this helps.
#CPLEXOptimizers#DecisionOptimization