Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Passing a variable to OPL Model

    Posted 06/18/12 08:47 AM

    Originally posted by: NIkhilKulkarni


    I am using ILOG ODME. It uses (say) ProjectName.mod as the main flow ".mod" file.
    My LP model is in a different .mod file (say: ProjectName_date.mod)

    I am using OPL Script in ProjectName.mod file to create an OPL Model, solve it and extract the solution from the OPL model. ProjectName_date.mode file has the actual LP model.

    What I am trying to do is: run ProjectName_date.mod file a number of times (say 5) from ProjectName.mod file. I want to pass the iteration number (i.e. 1, 2, 3, 4 or 5) to ProjectName_date.mod file from ProjectName.mod file.

    Can somebody guide me, how to do this please ?
    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 2.  Re: Passing a variable to OPL Model

    Posted 07/30/12 06:08 AM

    Originally posted by: SystemAdmin


    I think you should look at the custock_int_main example where data from the submodel is set from the main model.
    Look at the way IloOplDataElements are used from scripting.
    #DecisionOptimization
    #OPLusingCPLEXOptimizer