Decision Optimization

Decision Optimization

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

 View Only
  • 1.  dvar float?

    Posted Thu May 25, 2017 10:14 AM

    Originally posted by: ShaCplex


    Dear sir,

    I am solving my model by calling 

    using CP;

    i have to declare a decision variable which will take real number values , not integers always. So I wrote;

    dvar float AircraftDelay[aircrafts];

    But it gives me an error stating " Decision variables of type dvar flaot not supported by this algorithm"

    what is the way out possible? Could you please help...

     

    Regards,

    shahul


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 2.  Re: dvar float?

    Posted Fri May 26, 2017 02:02 PM

    Hi,

    indeed with CPO dvar float are forbidden.

    But you can use dexpr float.

    So Have a look at floatexpr.mod for an example.

    If you néed x to be a float Var between 0 and 1.

    You can write

    int scale=1000;

    dvar int scalex in 0..scale;

    dexpr float x=scalex/scale;

    regards

     


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 3.  Re: dvar float?

    Posted Sun May 28, 2017 03:49 PM

    Originally posted by: ShaCplex


    Thank you sir. 

    But I think I want a couple of dvar float variables one ranging from (-inf,+inf) and the other with (0,+inf)...I could not write it.

    I would like to ask you some doubts;

    1. I have seen most of the models with CPO that param.timelimit declared. I know it is to specify maximum optimizer run time. But can you tell me what is the  significance of the time limit especially in CPO?

    2. For a CPO model with multi-criteria(using staticLex), when I examined the engine log, some times after different iterations, the objective value is not improved and it still iterates. Is that the way CPO proceeds normally?

     

    Regards,

    shahul


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 4.  Re: dvar float?

    Posted Mon May 29, 2017 02:49 AM

    Hi,

    1)

    TimeLimit:This parameter limits the CPU time spent solving before terminating a search. The time is given in seconds. The possible values of this parameter range from 0 to IloInfinity. A value of IloInfinity does not set any limit. The value IloInfinity is the default value.

    2)

    You should have a look in documentation  at CP Optimizer > CP Optimizer User's Manual > Search in CP Optimizer > The search log

    regards


    #DecisionOptimization
    #OPLusingCPLEXOptimizer