Decision Optimization

Decision Optimization

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


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

Split model in several .mod files.

  • 1.  Split model in several .mod files.

    Posted 09/23/09 01:32 PM

    Originally posted by: SystemAdmin


    [alemo said:]

    Hi,

    I'm working on a project in which I'll have to use an OPL model in a .Net Application.

    For now I'm writting the model which is going to be very big ( ~ 2000 lines). That is why I would like to split the model in several files.

    For example I would like to have:
    a file Sets.mod  : The definition of all sets.
    a file Asset1.mod: The definition of asset1 will use some sets defined in Sets.mod
    a file Asset2.mod: The definition of asset2 will use some sets defined in Sets.mod
    ....

    a file GlobalProblem.mod: This file will be imported in the .Net application. It will contain:

        include "Sets.mod";
        include "Asset1.mod";
        include "Asset2.mod";
        ....

        constraints{
        // OTHER CONTRAINTS
        }

    Is this possible?

    Thanks

    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 2.  Re: Split model in several .mod files.

    Posted 09/29/09 02:39 PM

    Originally posted by: SystemAdmin


    [jfk said:]

    hello,
    you may want to take a look at the vellino example in the standard distribution. I guess it does what you want to achieve.


    cheers
    #DecisionOptimization
    #OPLusingCPLEXOptimizer