Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
Expand all | Collapse all

Iterating with changing parameter values?

  • 1.  Iterating with changing parameter values?

    Posted 12/15/07 09:31 PM

    Originally posted by: SystemAdmin


    [Perryb said:]

    I am new to OPL and have written a small minimization model. However I want to run it for many parameters and cannot seem to put a "for" loop outside the "minimization" part so that it will iterate and give solutions for different parameter values. Does it only do one at a time and i have to change the parameters manually or must I use it with C++?
    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 2.  Re: Iterating with changing parameter values?

    Posted 12/16/07 02:24 PM

    Originally posted by: SystemAdmin


    [dgravot@noos.fr said:]

    Hello

    Indeed, you will have to script the loop, either using javascript in your model file or C++/JAVA/.NET opl api.

    A nice example is given in the documentation : ...ILOG\OPL5.X\examples\opl\mulprod\ in the mulprod_change_main.mod file

    if you just change options related to  "search parameters" (those contained in your settings .ops file) or constraints/variables lower/upper bounds, you won't have to generate your model again. if on the other hand, the second run adds new constraints, you will have to regenerate (see then more complex examples such as cutstock_main.mod in ...ILOG\OPL5.X\examples\opl\cutstock\)

    David Gravot
    ROSTUDEL Operations Research
    www.rostudel.com
    #DecisionOptimization
    #OPLusingCPLEXOptimizer