Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Two stage modelling

    Posted 03/06/14 08:59 AM

    Originally posted by: arjaree


    Hi,

    I have two model stages. 1st is to calculate production quantity with a cost associate with it from given customer demands. I want to use all the possible outputs from 1st in 2nd.  2nd has multiples of production quantity from 1st as an input and generate inventory plan as a result with minimum total cost (from 1st and 2nd stages). 

    I model these two in separate models to check for validation. But I don't know how to compile it together simultaneously. I guess I have to run the 1st first to get all possibilities (not optimise it) then link the result into 2nd. 

    Is there any possibility to do that?

    Thank you so much for your help.

    Kind Regards,

    Arjaree


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 2.  Re: Two stage modelling

    Posted 03/07/14 05:27 AM

    Hi,

    the example at CPLEX_Studio126\opl\examples\opl\models\BasketballScheduling could help you.

     

    regards


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 3.  Re: Two stage modelling

    Posted 03/07/14 11:03 AM

    Originally posted by: arjaree


    thanks

    I have a new problem. In the example, the variable patter has one dimensional. What if it has two dimensionals, how can I add data value please?

    execute
    {
       patterns.add(pattern.solutionValue);
     writeln(pattern);  
    }
     

    what if 'pattern' is 'patterm[i][t]'?

    Thanks


    #DecisionOptimization
    #OPLusingCPLEXOptimizer