5
$\begingroup$

I was hoping to get some help in modelling the following logic as an MIP Constraint

enter image description here

c_{m,l}^{RC} is binary decision variable. Simplify it:

enter image description here

$\endgroup$

1 Answer 1

2
$\begingroup$

You want to model $y=1 \iff x > 0$. The following big-M constraints enforce that relationship, where $\epsilon>0$ is a small tolerance: $$\epsilon y \le x \le M y$$

Because your $x$ is integer, you can take $\epsilon = 1$.

$\endgroup$
1
  • $\begingroup$ Thank you @RobPratt $\endgroup$
    – xuezheng
    Commented Sep 3, 2020 at 2:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.