If $B=1$, $A=0$
If $B=0$, $A$ can be 1 or 0.
Both $A$ and $B$ are binary variables.
How to represent these in linear programming equations?
If $B=1$, $A=0$
If $B=0$, $A$ can be 1 or 0.
Both $A$ and $B$ are binary variables.
How to represent these in linear programming equations?
Copyright © 2021 JogjaFile Inc.
Just let $$B \le 1-A$$
If $B=1$, $1-A$ is forced to take value $1$.