How to linearize this difficult constraint with binary variables?

632 Views Asked by At

I would like to linearize the constraint $y_i \cdot q_i \leq y_i \cdot a$ where $a$ is constant, $y_i$ is a binary variable and $q_i$ is a continuous non negative variable.

Thanks !

1

There are 1 best solutions below

3
On BEST ANSWER

Effectively $y_i$ implies $q_i \leq a$, which is $q_i \leq a \cdot y_i + M(1-y_i)$ where $M$ is your favorite sufficiently-large small-M constant (i.e, what normally but dangerously is called a big-M constant).