Skip to main content

New answers tagged

2 votes

Conditional binary programming

Suppose $0 \le b^n_{it} \le M^n_{it}$ for some constant $M^n_{it}$. Introduce binary decision variable $y_{it}$ to indicate whether $b^n_{it} > 0$. Now impose linear constraints \begin{align} y_{...
RobPratt's user avatar
  • 32.3k
-1 votes

Help modeling specific constraint

$a_{i,j} \le c_{i,j} + \sum_{k}^{j} b_{i,k}$ $c_{i,j} +b_{i,k }\le a_{i,j} + 1 \ \ \forall k =\{1,...j\}$
Sutanu Majumdar's user avatar
3 votes

Help modeling specific constraint

You want to enforce the logical implication $$\left(a_{ij} \land \bigwedge_{k=1}^j \lnot b_{ik} \right) \implies c_{ij}.$$ Rewriting in conjunctive normal form automatically leads to linear ...
RobPratt's user avatar
  • 32.3k

Top 50 recent answers are included