Linear Programming Flashcards

1
Q

What goes on in linear programming

A

Have an objective function based on two variables (hence linear) that you want to maximise based on context and subject to certain restraints, to find an ideal solution.

This works by plotting the inequality lines to identify a feasibility region (region where all condtions are met), and then finding an optimal solution

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

For standard LP, where will the optimal solution always be?

Thus what might you shed to calculate

A

Always will be one of the vertices of the feasibility region you calculated

Thus might have to find points of intersection = use simultaneous solution solved calculator to help

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

How else can you Manually find / predict the optimal solution

A

The line if objective function, if it’d maximising, bring from above, if minimising, bring from below

This way you can eliminate some vertices anyways

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

How to show the feasibility region on graph (what to shade)

A

SHADE REGIONS YOU DINT WANT to make it clear

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

Possible to have a whole one staidly the objective function?

A

Yes, known as objective line

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

How to draw the liens very easily

A

Set x and y to zero, plot

If not use max min values of the graph

If not try find nice values to make ti as easy as possible

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

What about checking if a region satisfies an inequality (what points to pick)

A

MUST CHOOSE A POINT NOT ON THE LINE
if 00 available , use it, makes so easy

If not choose something else

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

What is INTEGER LP?

A

A lot of time irl the context means you are trying to maximise whole number things like tables and chairs etc, so can’t have 7.5 tables

This means need to change the way you calculate ideal solution

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

How to do ILP

A

Identify feasibility zone
- and then mark ALL WHOLE NUMBER COORDINATE POINTS IN IT
- make a table and essentially test them
- can predict to eliminate some first

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

Okay if it says twice as many A as B, be careful

A

This just means if a is 10, then B must be 5 and A must be at,east 10 can be more, so x>= 2y

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

How to formulate an LP (key steps)

WHAT TO NOT FORGOT AT END

A

1) state variables x and y (always 2) and COST /PROFIT equation
2) state objective function
3) “subject to” and state all limitations SIMPLIFIED
4) finally REMEMBER NON NEGATIVITY CINSTRAINTS !

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

Again what’s one thing you should try to include in all LP? As a constrain

A

The non negativity ones!

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

What happens if it is a mix (a blend)

A

Remember a blend is just percentage of thr WHOLE mixture, which was a combination of both

So do like 10x + 4y = 4(x+y)

NOW EXPAND, AND SIMPLIFY BY COLELCTING LIKE TERMS

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

How to decide inequalities

A

If fixed amount less than equal to

If needs an amount, but if more then won’t hurt (like availability) then do thst

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