Hi,
I have an OPL model with a variable x that can be either 0, or between x_min and x_max (both positive with x_max >= x_min).
I recently found out that OPL allows to use logical symbols, and these are recommended over Big M formulations. However, since in this case the x variable has a real upper bound x_max, I am not sure which formulation of the 2 following can be better from a computational point of view.
1)
x == 0 || x >= x_min ;
x <= x_max ;
2)
x <= x_max * Bool_x_not_null ;
x >= x_min - x_max * ( 1 - Bool_x_not_null ) ;
Which one is better? What are advantages and disadvantages of the 2 variants?
Thank you.
Regards,
Matteo.
------------------------------
Matteo Fineschi
------------------------------
#DecisionOptimization