2
$\begingroup$

For maximizing the objective function $\sum_i{d_i y_i}+ A x - B \cdot \mathbb{I}_{x>0}$, how can I linearize $ A x - B \cdot \mathbb{I}_{x>0}$ term where $d_i, A$ and $B$ are positive constants and $x, y_i$ are continuous non-negative variables? Can you explain the logic of linearization? There are many other constraints involving $y_i, x$.

$\endgroup$
2
  • $\begingroup$ Minimize or maximize? $\endgroup$
    – RobPratt
    Commented Sep 8, 2020 at 22:43
  • $\begingroup$ @RobPratt Maximize $\endgroup$
    – Al Guy
    Commented Sep 8, 2020 at 22:53

1 Answer 1

5
$\begingroup$

If $M$ is a (small) upper bound on $x$, introduce a binary variable $z$ and big-M constraint $x \le M z$. The idea is that $x>0$ implies $z=1$. Now use $B z$ in the objective.

$\endgroup$
2
  • $\begingroup$ But x=0 doesn’t imply z=0. Is it handled by requirement of maximization of the objective? $\endgroup$
    – Al Guy
    Commented Sep 9, 2020 at 3:07
  • 1
    $\begingroup$ Yes, the objective will naturally drive that. $\endgroup$
    – RobPratt
    Commented Sep 9, 2020 at 3:12

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.