Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only

Use a loop result for preparing a new one

  • 1.  Use a loop result for preparing a new one

    Posted 06/24/09 06:50 PM

    Originally posted by: SystemAdmin


    [BBstar said:]

    Hello all,

    I'm a new user of OPL 6.0 and I try to run a iterated stochastic model for inventory replenishment.

    Due to the fact that generating the model uses more time than resolving it, I need to update the current stock level without regenerationg the dataset.

    I have just seen in Help that it is possible to use "API of ILOG Script extensions for OPL".

    Do you have any other idea ?

    In the submodel :

    float demand[Articles][TimePeriod] = ...;

    Here is thre main model :

    main {
    ...
    for(var t = 1; t <= 52;t++) {<br />opl.Inv = opl.Inv + opl.Qty - opl.demand[:][t];
    }
    ...}

    There is a "sparse error" in opl.demand[:][t] , can you help me to solve this syntax issue ?

    Thanks a lot,
    --
    BBstar

    #DecisionOptimization
    #OPLusingCPLEXOptimizer