Decision Optimization

Decision Optimization

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

 View Only
Expand all | Collapse all

Error: Exception from IBM ILOG Concert: IloModelI

  • 1.  Error: Exception from IBM ILOG Concert: IloModelI

    Posted Wed November 14, 2018 01:12 PM

    Originally posted by: Margarett


    Hello! 

    I have the simplest linear programming problem with indicative (boolean) variables. 

    Cplex gives me the 2 error messages: 

    1) Error: Exception from IBM ILOG Concert: IloModelI

    2) IloModelI

     

    (?) Please tell me how I need to correct the code to get the correct answer.

     

    Below is the task code. 

    The solution to this problem should be:   a=1, x=6. 

     

    using CP; 
    dvar boolean a;
    dvar int x in 1..10;

    maximize (a+x);

    subject to

     if (x>=4) a==1;
     else      a==0;


     a+x<=7;
    }

     

     

     

     

    Best regards, 

    Margarett. 

     

     


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 2.  Re: Error: Exception from IBM ILOG Concert: IloModelI



  • 3.  Re: Error: Exception from IBM ILOG Concert: IloModelI

    Posted Thu November 15, 2018 03:25 AM

    Originally posted by: Margarett


    Thank you so much, AlexFleischer! 

    The program works really well. 

    Thank you!


    #DecisionOptimization
    #OPLusingCPLEXOptimizer