Originally posted by: JDalal
Hi all,
I am facing a strange problem! I am not sure, it may be something trivial that I am missing. Any help is appreciated.
I have a MIP model, where x[i][j] are continuous and y[j] are binary variables. I am solving the model iteratively. In each iteration, I am trying to fix some x[i][j] and some y[j] values, like :
ilo_model.add(x[i][j] == 0.52);
ilo_model.add(y[j] == 1);
this is done within some for loop with i,j index in usual way.
Now, when I am solving the model with above fixed values and using
IloNum x_ij = cplex.getValue(x[i][j]);
I am getting following error :
"ERROR: The referenced IloExtractable has not been extracted by the IloAlgorithm".
I have checked that if I fix some x[i]
http://j], the error occurs exactly for that index. I mean if I fix say, x{2[3] = 0.9 then the error comes when I want to use cplex.getValue(x[2][3])! What is the reason??
#CPLEXOptimizers#DecisionOptimization