L8 - Linear Programming and Simplex Method Flashcards
Define linear programming…
A mathematical technique for finding the max or min of a linear function with multiple variables.
What are we trying to find in a linear problem?
The max or min of the linear function based on certain constraints.
What does it mean to optimise a function?
Find the max or min value of the function.
What are the extreme values of a linear function?
A vertex at which the max or min value of the function is obtained. I.e for a f(x,y) = 5x + 7y, it will be the coordinates where f(x,y) is min, y is max, x is max, f(x,y) is max.
What are the steps to solving a linear programming problem?
- Establish the linear function
- Establish constraints that the function has to adhere to.
- Graph functions viable region by graphic the constraints. The feasible region is the area within the constraint lines.
- Vertices of the viable region give us the extreme points.
- Calculate the coordinates of the optimal point
1. Solve equations for Y
2. Solve for X
3. Plug X into Y equations
4. Plug X,Y into original function to get coordinates.
What is the ISO Line?
The line that runs through the maximum point.
What does each linear equation ( constraint ) represent? What does the set of constraint lines construct?
- A plane that divides the graph space into viable and non-viable areas for the function.
- it constructs the viable region of the linear function.
What method do we use if we have an equation with more than 2 dimensions?
Simplex method ( Dantzig’s Algorithm )
What are the steps of the Simplex algorithm?
- Convert into slack form
1. Create new transposed equations from the constraint equations. - Check a basic solution exists
1. Set original variables to 0, slack variables to the largest constants of each slack equation. If the sum is above 0, a solution is possible. - Pivot
1. Use variable with highest coefficient in z
2. Find equation where that variable is tightest
3. Transpose equation for variable
4. Substitute new equation and simplify all other equations - Iterate
- Termination
1. If maximising, termination occurs when all coefficients of the objective function are negative.
2. The optimal value of the problem is the number in the equation.
In the pivot stage, how do we choose the entering variable?
The variable with the most positive coefficient in the original objective function.
In the pivot stage, how do we choose the tightest constraint?
The slack equation that reaches 0 the fastest when the value of the entering variable is increased.
What is the termination criteria of the Simplex Algorithm when maximising or minimising?
Maximising -> When coefficients of the objective function are negative.
Minimising -> When coefficients of the objective function are positive.