Originally posted by: Boris365
Hello,
I am using the latest CPLEX (12.2). I am getting "Error: IloExtractable 986 IloNumVarI has not been extracted by IloAlgorithm 0x89101f0" due to the following code snippet:
int max = 10;
double val[max];//some array of floats
IloModel cuts (env);
IloNumVarArray pat(env, max, 0.0,IloInfinity,ILOINT);
for(int i = 0; i < max; i++){
IloExpr expn(env);
for(int j = 0; j < max; j++){
if(j != i){ expn += val[j]* pat[j]; }
}
cuts.add(val[i]*pat[i] + 1000*(1-pat[i]) >= 0.5*(0.01 + expn));
expn.end();
}
I'll greatly appreciate any help!
#CPLEXOptimizers#DecisionOptimization