Topic
  • 2 replies
  • Latest Post - ‏2012-06-16T05:25:05Z by sjayaswal
sjayaswal
sjayaswal
3 Posts

Pinned topic Error in extracting variables

‏2012-06-14T13:18:15Z |
Hi, I am trying to run my Benders' Decomposition code in Cplex Concert Technology (C++) for a particular problem.
In my Master Problem, one set of variables are X[i][j][k] where i = 1...20, j = 1...20, k = 1...10.
After I solve the Master problem in the first iteration, it is able to return me the values of X[1][1][1] till X[5]2010.
However, it fails to return me the values of the remaining X[i][j][k] variables, i.e., X[6][1][1] till X202010.
It terminates with the following error message:

"ERROR: IloExtractable 531 IloNumVarI has not been extracted by IloAlgorithm 01B6
0048".

Over last 1 year, I have done extensive coding of Benders' Decomposition for various problems and I never run into such a problem.
This time, I am unable to figure out the problem in my code.
I would greatly appreciate any help.

Thanks and Regards,
Sachin
Updated on 2012-06-16T05:25:05Z at 2012-06-16T05:25:05Z by sjayaswal
  • sjayaswal
    sjayaswal
    3 Posts

    Re: Error in extracting variables

    ‏2012-06-16T05:24:11Z  
    I have been able to resolve it.
    The problem was that the code was trying to extract some variables that were never used in the model.

    Thanks.
    Sachin
  • sjayaswal
    sjayaswal
    3 Posts

    Re: Error in extracting variables

    ‏2012-06-16T05:25:05Z  
    I have been able to resolve it.
    The problem was that the code was trying to extract some variables that were never used in the model.

    Thanks.
    Sachin