Decision Optimization

Decision Optimization

Delivers prescriptive analytics capabilities and decision intelligence to improve decision-making.

 View Only
Expand all | Collapse all

Error: IloExtractable 986 IloNumVarI has not been extracted by IloAlgorithm

  • 1.  Error: IloExtractable 986 IloNumVarI has not been extracted by IloAlgorithm

    Posted Sun July 10, 2011 01:53 PM

    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


  • 2.  Re: Error: IloExtractable 986 IloNumVarI has not been extracted by IloAlgorithm

    Posted Sun July 10, 2011 02:07 PM

    Originally posted by: Boris365


    Problem solved!
    #CPLEXOptimizers
    #DecisionOptimization