LP Flashcards

1
Q

Where are vertices of feasible region located

A

Corner of feasible region polygon

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

Proof why feasible region is a convex set

A

feasible region is defined by the intersection of half spaces

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

Where do optimal points lie in feasible region

A

vertex of feasible region

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

When is a vertex a global optima

A

When its value is “better” than its neighbors

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

[Canonical Form]
Given obj func:
x1 + 6x2 + 10x3

What are its coefficients

A

1, 6, 10

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

Importance of non-negative constraints

A
  1. Use to find a trivially feasible points
  2. Determine feasible region is empty, therefore LP is infeasible
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Given obj func and constraints:
x1 + 6x2 + 10x3
x1 <= 300
x2 <= 200
x1 + 3x2 + 2x3 <= 1000
What is its constraint matrix A

A

[[ 1, 0, 0 ], [ 0, 1, 0 ], [ 1, 3, 2 ]]

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

[Converting Linear Algebra to Standard Form]

How to minimize objective function cTx

A

Multiply by -1, -cTx

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

[Converting Linear Algebra to Standard Form]

Given constraint, how to convert to standard form:
a1​x1​…an​xn​ ≥ b

A

Need to change to “at most” form
Multiply by -1 to flip inequality:
-a1​x1​…-an​xn​ ≤ b

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

[Converting Linear Algebra to Standard Form]

Given equality constraint, how to convert to standard form:
a1​x1​…an​xn​ = b

A

Create 2 inequality constraints
a1​x1​…an​xn​ ≤ b, and
a1​x1​… an​xn​ ≥ b
Then flip the second to meet standard form

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

[Converting Linear Algebra to Standard Form]

Why are strict inequalities not allowed in LPs

A

With strict inequalities, the feasible region would exclude its boundary points

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

[Converting Linear Algebra to Standard Form]

How to handle unconstrained variables (e.g. “x”)

A

Split it to 2 components, x +& x-, both with non-negative values.

x = x+ - x-

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

Given objective function
min 3x_1 - 2.5x_2 + x_3

Convert c values into standard form

A

c = [[ -3 ], [ 2.5 ], [ -1 ]]

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

Given objective function
minimize 3x_1 - 2.5x_2 + x_3

Convert c values into standard form

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

Convert constraint to standard form
x2 + x3 >= 300

A

Negate to reverse inequality
-x2 - x3 <= 300

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

Convert constraint to standard form
0.5x + 7y - 2z = 4

A

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

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

[Geometric View]
Given m constraints and n non-negativity constraints we get _____ constraints

A

n+m constraints

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

[Geometric View]

Given n+m constraints, where does the feasible region lie

A

Intersection of n+m half spaces (convex polyhedron)

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

[Geometric View]
Where do vertex lie in feasible region with respect to constraints

A

n constraints met with equality (=)
m constraints met with inequality (<=)

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

[Geometric View]

Upper bound of vertex neighbors

A

at most nm neighbors

21
Q

Simplex algorithm

A
  1. Start at x=0
  2. Look for neighboring vertex with strictly higher objective value
  3. Move to neighbor, repeat 2
  4. Else, return x as optimal
22
Q

T/F
Simplex algorithm can move to any point in the feasible region

A

False

Simplex algorithm walks on vertices (corners)

23
Q

[LP Optimality]
Define infeasible

A

Feasible region is empty

24
Q

[LP Optimality]
Define unbounded

A

Objective function can reach infinite optimal value

25
Q

Constraint 1 (x + y <= 1) and constraint 2 (3x + 2y >= 6) yield non-intersecting half spaces.

Why is this LP infeasible

A

It creates 2 non-intersecting half-spaces.
No x,y value can meet both constraints

26
Q

Infeasibility is not dependent on objective function. Give a reason why

A

If you set constraints that create non-intersecting regions, you can never find optimal solution.

27
Q

Unboundedness is specific to the objective function. Give a reason why

A

Same constraints can produce bounded or unbounded problems depending on which direction the objective function points.

Constraints determine the shape of the feasible region, objective function determines whether we can improve indefinitely within that region.

28
Q

Conditions that make LP unbounded (2)

A
  1. Constraints that create an unbounded feasible region (extending to infinity in some direction)
  2. An objective function that improves in that same unbounded direction
29
Q

[Infeasible]
Steps to detect if LP is infeasible

A
  1. Add new variable z to constraint Ax + z <= b & x >= 0
  2. Set new objective function “max z”
  3. Solve for z

If optimized z is non-negative, original LP is feasible.
If z is negative, original LP is infeasible

30
Q

[Infeasible]
Why does adding z always satisfy <= b?

A

Because z is unrestricted, thus we can add a large non-negative number to always meet constraint.

31
Q

[Optimality]
Optimum of LP is achieved at a vertex of the feasible except 2 cases

Define the two cases

A
  1. Infeasible - Feasible region is empty, ie. no variable values will meet all constraints
  2. Unbounded - Given constraints and obj function, there is no bounds to optimization
32
Q

Weak Duality definition

A

If both primal and dual LPs are feasible, the inequality c^Tx <= b^Ty always holds

33
Q

Weak Duality theorem if obj func of x and y are equal

c^Tx = b^Ty

A

Both x and y are optimal

x = optimal max
y = optimal min

34
Q

Strong Duality theorem guarantee if primal-dual pairs are feasible and bounded

A

We can find an optimal max x and min y value that is equal.

35
Q

[Unbounded]

If primal linear program (LP) is unbounded , dual LP is ____

If dual is infeasible primal is ______.

A

Infeasible

Infeasible or Unbounded

36
Q

[Weak Duality]
If Dual LP is infeasible, then primal is:

A

Unbounded OR infeasible

37
Q

T/F

Given primal-dual pair cTx ≤ bTy, if primal is infeasible then dual can’t be infeasible

A

False

Not a bidirectional relationship, both primal and dual can be infeasible. So the implication has only one direction.

38
Q

[Unbounded]

Why is just checking if dual LP is unbounded not enough to determine primal is unbounded

A

If dual is unbounded, primal could be EITHER unbounded or infeasible.

We don’t know which unless we check primal.

39
Q

2 steps to determine if LP in canonical form is unbounded

A
  1. For primal LP, check feasibility by adding z variable and maximizing z. If solution has non-negative z value, primal is feasible.
  2. For dual LP, check feasibility. If dual = infeasible, primal is unbounded (not infeasible since we confirmed it is feasible in step 1)
40
Q

Strong duality definition

A

If primal and dual LPs are both feasible and bounded, then their optimal solutions are equal:
c^Tx = b^Ty

(LHS take max, RHS takes min)

41
Q

Difference between weak and strong duality theorem

A

Weak duality only shows inequality between feasible primal / dual solutions.
cTx ≤ bTy

Strong duality shows equality between bounded + feasible primal / dual solutions

42
Q

If the original LP is feasible and bounded, then the dual LP is:

A

also feasible and bounded.

43
Q

The dual of the dual LP is….

44
Q

T/F

It is impossible for both the original LP and the dual LP to be infeasible.

45
Q

T/F

Feasibility means there must be only one solution to the LP problem

A

False.

this can mean only one solution, or infinitely many solutions.

46
Q

T/F

An infeasible LP can still be bounded

A

False

the discussion of boundedness only makes sense for feasible LPs.

47
Q

[Geometric view]
Max number of vertices with n equality constraints and m inequality constraints?

A

n+m choose n
(combinatorial)

48
Q

How to handle converting to duals when some variables are missing

A

fill in variables with zero cofficients

max x1 - 0x2 - 2x3
s.t.
x1 - x2 - 0x3 <= 1
0x1 + 2x2 - x3 <= 1
x1, x2, x3 >= 0

min y1 + y2
s.t.
y1 >= 1
-y1 + 2y2 >= 0
-y2 >= -2