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