Hello
I need to construct an integer constrain for a situation that if result of an equation is positive it changed to zero and if the result of an equation is not positive it changed to a big number.
For example
if A-B>=0 Integer constrain=0
and if A-B<0 Integer constrain=big number.
asked
majid |

answered
fbahr ♦ |

Have you considered other modeling options? Perhaps using a binary decision variable that states if your expression in positive-valued, otherwise 0? This d-var can be implemented in the objective function easily, if that's where the 0/M are supposed to go...
answered
Gunther77 |