Decision Optimization

Decision Optimization

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

 View Only
  • 1.  Integer Linear Programming with OpenGM

    Posted Wed June 11, 2014 08:36 AM

    Originally posted by: MatteoDenitto


    I am using  this library in order to solve a Graphical Model. They allow you to use CPLEX to solve it with Integer Linear Programming on C++.

    I build up the model, I pass it to CPLEX and everything is fine; but when I try to solve it i receive this error:

     

    "const X& IloArray::operator[] (IloInt i) const : Out of bounds operation: index superior to size of array"

     

    I have found this post which states there was a bug in the Java version (if i understood well). 

     

    Does anybody know how to get rid of this error?

     


    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: Integer Linear Programming with OpenGM

    Posted Fri June 13, 2014 12:55 PM

    I'm not familiar with OpenGM ... is there an OpenGM forum or mailing list where you can ask this question?  It would be nice if we could see some code that reproduced this error with the CPLEX C++ API (I'm guessing this is what OpenGM uses).  Which version of CPLEX are you using?  It looks like the bug you linked to was in the Concert layer in 12.5.1.  It's quite possible this was fixed in 12.6.


    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: Integer Linear Programming with OpenGM

    Posted Sun June 15, 2014 12:54 AM

    Originally posted by: Ibrahim_Capar


    I think one of the loop is causing this error. The loop is trying to read a value which is not defined. For example you have demand variable with 10 periods and the loop is trying to read 11th period. If you are using C++, the first element of a array is located at 0. Going back to demand example, to read the 10th element of the array, you need to read Demand[9].


    #CPLEXOptimizers
    #DecisionOptimization


  • 4.  Re: Integer Linear Programming with OpenGM

    Posted Mon June 16, 2014 04:21 AM

    Originally posted by: MatteoDenitto


    I "solved" the problem, my mistake. 

     

    I used Integer Programming to solve a non linear constraints problem. 


    #CPLEXOptimizers
    #DecisionOptimization