All Questions
Tagged with linearization constraint-programming
5
questions
2
votes
1
answer
139
views
Priority based demand fulfilment in Linear Constraint
Say I have 3 sources. D1, D2, D3. their capacity is 100, 200, 400. I want to create some constraints such that First D1 is depleted then D2 and then D3. But the catch is you cant use min or max ...
1
vote
1
answer
195
views
Linearize conditional constraint
Consider a variable c from the domain {-1,0,1}. I have the following constraint:
IF $c = 1 \Rightarrow x = 1 $ ELSE $x = 0$
How do I linearize this constraint?
1
vote
3
answers
116
views
If $x_1 \geq 4$ then **one** out of the following three constraints must hold: $x_2 \leq 3, x_3 \leq 4, x_4=5$
How does one linearize the following constraints:
If $x_1 \geq 4$ then one out of the following three constraints must hold: $x_2 \leq 3, x_3 \leq 4, x_4=5$.
$$x_1 \leq 4 + Mz_1$$
$$x_2 \leq 3 + M(1-...
7
votes
2
answers
889
views
Is there a better way of defining a constraint on positive integer variables such that no two variables are the same and are uniquely assigned a value
So suppose I have integer variables $x_1,x_2,\dots,x_N$ and I enforce that the integer variables are bounded i.e $1 \leq x_i \leq N$
I was interested in posing a constraint so that in the collection $...
1
vote
3
answers
465
views
How can I linearize this IF-THEN constraint?
Let
$P_{t,u}; t=1,2,\ldots,T, u=1,2,\ldots,U$ be known values
$\alpha$ is also a known parameter
$X_{t,u}$ an optimization variable
I have the following constraint: IF $P_{t,u}\geq\alpha$, THEN $X_{...