LP Flashcards
(48 cards)
Where are vertices of feasible region located
Corner of feasible region polygon
Proof why feasible region is a convex set
feasible region is defined by the intersection of half spaces
Where do optimal points lie in feasible region
vertex of feasible region
When is a vertex a global optima
When its value is “better” than its neighbors
[Canonical Form]
Given obj func:
x1 + 6x2 + 10x3
What are its coefficients
1, 6, 10
Importance of non-negative constraints
- Use to find a trivially feasible points
- Determine feasible region is empty, therefore LP is infeasible
Given obj func and constraints:
x1 + 6x2 + 10x3
x1 <= 300
x2 <= 200
x1 + 3x2 + 2x3 <= 1000
What is its constraint matrix A
[[ 1, 0, 0 ], [ 0, 1, 0 ], [ 1, 3, 2 ]]
[Converting Linear Algebra to Standard Form]
How to minimize objective function cTx
Multiply by -1, -cTx
[Converting Linear Algebra to Standard Form]
Given constraint, how to convert to standard form:
a1x1…anxn ≥ b
Need to change to “at most” form
Multiply by -1 to flip inequality:
-a1x1…-anxn ≤ b
[Converting Linear Algebra to Standard Form]
Given equality constraint, how to convert to standard form:
a1x1…anxn = b
Create 2 inequality constraints
a1x1…anxn ≤ b, and
a1x1… anxn ≥ b
Then flip the second to meet standard form
[Converting Linear Algebra to Standard Form]
Why are strict inequalities not allowed in LPs
With strict inequalities, the feasible region would exclude its boundary points
[Converting Linear Algebra to Standard Form]
How to handle unconstrained variables (e.g. “x”)
Split it to 2 components, x +& x-, both with non-negative values.
x = x+ - x-
Given objective function
min 3x_1 - 2.5x_2 + x_3
Convert c values into standard form
c = [[ -3 ], [ 2.5 ], [ -1 ]]
Given objective function
minimize 3x_1 - 2.5x_2 + x_3
Convert c values into standard form
Convert constraint to standard form
x2 + x3 >= 300
Negate to reverse inequality
-x2 - x3 <= 300
Convert constraint to standard form
0.5x + 7y - 2z = 4
First, split the equality into two inequalities:
0.5x + 7y - 2z ≤ 4
0.5x + 7y - 2z ≥ 4
For the second inequality, multiply by -1 to get the standard “less than or equal to” form:
0.5x + 7y - 2z ≤ 4
-0.5x - 7y + 2z ≤ -4
[Geometric View]
Given m constraints and n non-negativity constraints we get _____ constraints
n+m constraints
[Geometric View]
Given n+m constraints, where does the feasible region lie
Intersection of n+m half spaces (convex polyhedron)
[Geometric View]
Where do vertex lie in feasible region with respect to constraints
n constraints met with equality (=)
m constraints met with inequality (<=)
[Geometric View]
Upper bound of vertex neighbors
at most nm neighbors
Simplex algorithm
- Start at x=0
- Look for neighboring vertex with strictly higher objective value
- Move to neighbor, repeat 2
- Else, return x as optimal
T/F
Simplex algorithm can move to any point in the feasible region
False
Simplex algorithm walks on vertices (corners)
[LP Optimality]
Define infeasible
Feasible region is empty
[LP Optimality]
Define unbounded
Objective function can reach infinite optimal value