Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Why the second execute block has no effect?

    Posted 10/30/15 06:37 AM

    Originally posted by: titino


    Hello! I created an OPL model but I have any problems. I have a vector representing the demand values for each period t, which can have positive or zero values . The model will be launched only on the positive values and in particular from the third positive value.
    For the second positive value I calculate  Z_t_1, R_t_1, D_t_1 and tot_t_1 which are necessary for the resolution of the model from the third positive value. Based on the output values of the model each time you launch the next.  When trying to evaluate D_t==(1-(x1/2))*(Z_t/R_t), the term Z_t/R_t evaluates to 0/0. Why are not calculated the term D_t, Z_t e R_t?  Apparently the second execute block has no effect and I have the error "CPLEX(default) cannot extract expression: ((x1 / 2)*(-1)+1)*(0 / 0) == 0."

     I attach below the model I created in txt files.


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 2.  Re: Why the second execute block has no effect?

    Posted 11/04/15 03:51 PM

    Hi,

    https://www.ibm.com/developerworks/community/forums/html/topic?id=8d5bdc42-8b25-4e6c-928c-d0fba4862eee&ps=25

    is an example you could have a look at.

    This shows you how to use output from a model as input for the next one

    regards


    #DecisionOptimization
    #OPLusingCPLEXOptimizer