How To Do All Reformulating Flashcards

1
Q

Shortest part

A

Minimise total LENTGH using weights

Then subject to
1) going out and in of start snd end , these must be 1 so one is chosen
2) sum of in - sum of out = 0

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

Longest path

A

Maximise distance this time like before
Subject to
- again going in and going out start end must be 1
- in - out = 0
- however must say ones thst csn go in and out , less than equal to one
- and in general all paths must be less than ewual to one

This binds every variable to 1 max and ensures itsnot spam,ed

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

Maximum flow no indicator !
Why constraint for weight?

A

Maximise either going out or in (no indicator )

Subject to
- flow in each vertex - flow out = 0
Don’t need for start and end as this is implied

Then need one for Esch direction less than equal to the weight just to let it know

(Forces it be less than equal to the weight of the arc

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

Matching problem

A

Maximise all the possible routes from the left

Subject to
- each route going from left summer must be LESS THAN EQUAL TO ONE (this is because the problem is most succeful mathves, it might be a case where one isn’t matched to get max ), so one picked or none
- EACH ROUTE COMING FROM RIGHT too less than equal to one, this ensures two arentpicked to the same

Best case scenario is max possible matching

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

Allocation problems

A

Mini sie or maximsie base on question
You want to list all possibilites x weight once (don’t need twice cuz same 5ing)

Subject to
- AS each MUST HAVE A MATCHING (rather than before maybe not), Indicstor is all = 1
- and again do thst two don’t match the same person, go down vertically too

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

Transportation problem

A

List every box weight Mini sie

Subject to each iducsot must add ti each row like befor and after

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