Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  callback problem

    Posted 06/21/18 07:58 AM

    Originally posted by: Janisch


    Hello,

    I would like to know what problem CPLEX expects?

    I tried to paste this into the mod.file. But I think my orders are not right yet.

    execute {
       writeln(isMIP());
       writeln(isQC());
       writeln(isQO());
       writeln(isLP());
    };

    Are there any other problem classes?


    Thank you for your help.


    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: callback problem

    Posted 06/21/18 08:03 AM

    How is this related to callbacks?

    Also, what exactly is your problem? This should be all problem classes, at least I don't see anything missing right now.


    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: callback problem

    Posted 06/21/18 08:21 AM

    Originally posted by: Janisch


    I just want to know with which problem CPLEX works. So what value is true or false.

     


    #CPLEXOptimizers
    #DecisionOptimization


  • 4.  Re: callback problem

    Posted 06/21/18 08:57 AM

    And you get false for all 4?


    #CPLEXOptimizers
    #DecisionOptimization


  • 5.  Re: callback problem

    Posted 06/21/18 09:05 AM

    Originally posted by: Janisch


    It doesnt work.

    "the element isMILP is not present in the olp model"


    #CPLEXOptimizers
    #DecisionOptimization


  • 6.  Re: callback problem

    Posted 06/21/18 09:48 AM

    The methods you are using are instance method of the IloCplex class (this should be clear from where they are documented). So you need an instance of the IloCplex class to invoke them. Try 'cplex.isLP()'.

    I am not sure what is the correct place to invoke these functions (the model must have already been generated for these functions to return the correct thing). Maybe ask on the forum dedicated to OPL.

    On the other hand, are you writing some generic code? Otherwise I would expect that you perfectly know what the type of your problem is? CPLEX is not going to magically change that.


    #CPLEXOptimizers
    #DecisionOptimization


  • 7.  Re: callback problem

    Posted 06/21/18 10:26 AM

    Originally posted by: Janisch


     

    Thank you! I forgot to use the cplex.class. Now it's working.


    #CPLEXOptimizers
    #DecisionOptimization