Network Problems as LPs Flashcards

1
Q

Formulating shortest path

A
  1. Define all variables forwards and backwards (total = 2* number of arcs)
  2. Discard from these unneeded variables (variables that flow into source and out of sink)
  3. With remaining variables write the objective function with the arc length the coefficient of the variables (minimise)
  4. Write constraints (“subject to “).
    For source vertices all arcs leaving =0
    For sink all vertices all arcs entering = 0
    For all other vertices all arcs coming into point are positive. All arcs leaving point are negative. (Make sure not to include the unnecessary arcs). These are =0
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Formulating the longest path (direction given)

A
  1. Define all variables forwards and backwards (total = number of arcs) - coz direction given
  2. Discard from these unneeded variables (variables that flow into source and out of sink)- NONE in this case coz direction given
  3. With remaining variables write the objective function with the arc length the coefficient of the variables (maximise)
  4. Write constraints (“subject to “).
    For source vertices all arcs leaving =0
    For sink all vertices all arcs entering = 0
    For all other vertices all arcs coming into point are positive. All arcs leaving point are negative. (Make sure not to include the unnecessary arcs). These are =0
  5. Because is a longest path question need to write contract of every variable being less than or equal to 1, otherwise the variables would be infinity
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Formulating maximum flow

A
  1. Define variables - IN FLOW NO INDICATOR VARIABLES- variables hold value of arc weight
  2. Remove unnecessary variables
  3. Write expression for objective function (maximise) only the arcs leaving the source
  4. Write down constraints for each vertex =0, will not be an equation for sink
  5. Because is a maximum problem, each variables needs to be less than or equal to arc weight
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Formulating matching problems

A

Aim: to get each one from each set to match with another 1 from each set
1. All variables are indicator variables, each variable is just an arc presented
2. Objective function is maximise all variables
3. Place constraints on each vertices to be less than or equal to 1( cos could be zero in case that no one matches sadly) BOTH SETS INCLUDED

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

Formulating allocation problems (minimise)

A
  1. All variables are indicator variables, each variable is just an arc presented
  2. Objective function is minimise all variables, with arc weight as coefficient
  3. Place constraints on each vertices to be equal to 1- BOTH SETS INCLUDED
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Formulating transportation problems

A
  1. Variables are indicator variables
  2. Set up objective function with aim to minimise
  3. Set up constraints with equal sign
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Shortest path summary

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

Longest path summary

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

Maximum flow summary

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

Maximal matching

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

Allocation problem minimum costs summary

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

Transportation problem minimum cost

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