Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Load the main from my C# code

    Posted 05/21/08 10:11 PM

    Originally posted by: SystemAdmin


    [shadi said:]

    Hello,

    how i can load the main function of my opl model from my c# code
    my opl model has a main function which orchestrate different models...

    thank you
    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 2.  Re: Load the main from my C# code

    Posted 05/22/08 01:59 AM

    Originally posted by: SystemAdmin


    [alain.chabrier said:]

    Hi,

    you should use :
    OplModel.Main Method

    You can look at the example

    C:\ILOG\OPL55\examples\dotnet\x86_.net2005_8.0\OplRunSample

    Alain
    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 3.  Re: Load the main from my C# code

    Posted 05/22/08 02:34 PM

    Originally posted by: SystemAdmin


    [shadi said:]

    dear Alain,

    thank you very much, this is excactly what i was looking for....
    i get the result which i get when i use a commandline...

    my problem now is:
    how i can access the dvar variables of the different models which i create and run in the main function of my main model???

    Kshieboun Shadi


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 4.  Re: Load the main from my C# code

    Posted 05/23/08 05:37 PM

    Originally posted by: SystemAdmin


    [Didier Vidal said:]


    my problem now is:
    how i can access the dvar variables of the different models which i create and run in the main function of my main model???


    Hello,

    Here is an example. It's from /examples/dotnet/x86_.net2005_8.0/Cutstock_change/Cutstock.vb .


                        Dim coef As Integer = subRC.Cplex.GetValue(subRC.OplModel.GetElement("Use").AsIntVarMap().Get(i))




    Didier.
    #DecisionOptimization
    #OPLusingCPLEXOptimizer