Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  How to get multi-objective value from c# (V12.5)

    Posted 02/17/13 03:43 AM

    Originally posted by: SystemAdmin


    Hey guys!
    When we do single-objective model,we use "opl.CP.ObjValue"(from c#) to get the object value.
    If i do multi-objective model, i set "dexpr int e1 =……,dexpr int e2 = ……".And i use "minimize staticLex(e1, e2)" to let cp slove multiobject.But here comes the question: how can i get the two object value from c#?
    Thanks!
    #DecisionOptimization
    #OPLusingCPOptimizer


  • 2.  Re: How to get multi-objective value from c# (V12.5)

    Posted 02/18/13 03:40 AM

    Originally posted by: SystemAdmin


    Hello.

    There is the following function on class CP in C#:
    
    
    
    public 
    
    double[] GetObjValues()
    

    This method returns the numeric values of all objectives in a multi-objective function associated with the CP engine.

    Best, Petr
    #DecisionOptimization
    #OPLusingCPOptimizer


  • 3.  Re: How to get multi-objective value from c# (V12.5)

    Posted 02/18/13 06:56 AM

    Originally posted by: SystemAdmin


    Thanks! Problems solved!
    #DecisionOptimization
    #OPLusingCPOptimizer