Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  min function

    Posted 07/09/15 05:12 AM

    Originally posted by: erinas


    Hello,

     

    I am implementing a model where I need to define a decision variable as the minimum of other two decision variables. Is this possible. here is what I mean with an easy example.

    {string} T= {T1,T2,T3};

    dvar int+ X[t];

    dvar int+ Y[t];

    dvar int+ Z[t];

     

    and in the constraints I want to write an expression to define Z[t] as the minimum of X[t] and Y[t] for each t in T. Is it possible? I tried the following but it didnt work. I need to use the expression Z[t] in the objective function. To get all the values over t, I defined it as a decision variable. It is infact a decision expression.

    forall (t in T)

    Z[t]==min(X[t],[t]);

     

    Can someone help me to figure out the applicability of the model? Thank you,

     

    Regards,

     

     

     


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 2.  Re: min function

    Posted 07/09/15 07:45 AM

    Originally posted by: ouaigooo


    should be Z[t]==minl(X[t],Y[t]);

    instead of Z[t]==min(X[t],[t]);

    or dexpr int Z[t in T] = minl(X[t], Y[t]);


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 3.  Re: min function

    Posted 07/09/15 08:42 AM

    Originally posted by: erinas


    Thank you!!! I really appreciate the answer.

     

    Have a great day!


    #DecisionOptimization
    #OPLusingCPLEXOptimizer