Hi all.
Let A,B and C be three real variables. I must write the following if-then-else condition with linear inequalities:
if A≤B then C=0 else C=B-A
Is this possible by adding a single binary variable y (y∈{0,1})?
|
0
|
Hi all. Let A,B and C be three real variables. I must write the following if-then-else condition with linear inequalities: if A≤B then C=0 else C=B-A Is this possible by adding a single binary variable y (y∈{0,1})? |
||
|
|