Integer Linear Programming Modeling Flashcards

1
Q

Either or constraints

A

At least 1 constraint hold but not necessarily both

y binary

x1 + x2 >= 2 + My
x2+x3 >= 1 +M(1-y)

thus if y = 0, the second one has its constrained relaxed, if y=1 its the other way around

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

K out of N constraints must hold

A

have binary y for each constraint concerned

x1 + x2 >= 2 + My

add a constraint sum y <= N-K

y=1 means the corresponding constraint is relaxed, so at most N-K ys can be 1 such that their constraints don’t hold

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Functions with N possible values

x is this or this or this

A

let the values be {V1, V2, V3,.. }
ys binary

x = V1 y1 + V2 y2, V3 y3 + ….

sum y = 1
then x will only be able to be = to 1 value

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Fixed charge problem

A

if using x adds a cost a fixed cost F
then Min ci xi + F yi
y binary
x <= Myi
thus if y=0, x=0 (it is unused) and there is no F added
if y=1, then x constraint unbounded and F is added to the objective function

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

have z = max(x1,x2)

A
z >= x1
z >= x2
z <= x1 + My
z <= x2 + M(1-y)
need to be smaller or equal to 1 of the 2, to obey the 2 other rules this will be the max
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

have z = x or y

have z = x and y

A

OR
z>= x
z >= y
z <= x+Y

AND
z <= x
z<= y
Z >= (x+y -1)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

model a graph G=(V,E)

to check if can be 3 colorable

A

Xu,c is a binary variable u are Vertices and c are Colors

adjacent vertices can’t have the same color
thus for each edge u,v and each color c
Xu,c + Xv,c <= 1

vertices can only be assigned 1 color thus
Sum_c Xu,c = 1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly