Originally posted by: Zoubeir
I have a binary variable x_{ijt}^k that is 1 iff job i is assigned to machine j at time t using processor k. I would like to express the following constraints:
- If job i is assigned to machine j at time t using processor k then job i cannot be assigned to machine j' != j.
- If job i is assigned to machine j at time t using processor k then job i cannot be assigned to machine j at time t' !=t using processor k' != k.
In other words, both constraints say that once job i is assigned to a machine, it must be assigned using the same processor only on that machine.
I tried to formulate these constraints as follows:
For the first constraint, I write it as x_{ijt}^k + x_{ij't'}^{k'} <= 1, for all i, j' != j, k, k',t,t'.
For the second constraint, I write it as x_{ijt}^k + x_{ijt'}^{k'} <= 1, for all i,j, k != k',t != t'.
Do you see a better way to do these?
#DecisionOptimization#MathematicalProgramming-General