LP (AI generated from transcript) Flashcards

(48 cards)

1
Q

What can Max Flow be modeled as?

A

Linear Programming (LP)

Max Flow models the flow of resources through a network while adhering to constraints.

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

What is the objective function for Max Flow in LP?

A

Maximize sum of flow for all edges in E

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

What are the constraints for Max Flow in LP?

A
  • Must have non-negative flow
  • For every vertex, flow in must equal flow out
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

In a 2D LP example, what is the objective function?

A

A + 6B

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

What are the constraints in the 2D LP example?

A
  • A <= 300
  • B <= 200
  • A + 3B <= 700
  • A, B >= 0
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What does the orange area represent in the 2D LP geometric view?

A

The feasible region

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

What is the optimal point in the 2D LP example?

A

x1=100 and x2=200 with profit = 1300

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

Is Linear Programming in P or NP?

A

Linear Programming is in P

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

What is Integer Linear Programming (ILP)?

A

NP-Complete

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

What characterizes the optimal point in LP?

A

Lies at a vertex of the feasible region

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

How many vertices are in the given 2D LP example?

A

5 vertices: {(0,0), (0, 200), (100,200), (300,0), (300, ~120)}

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

True or False: A feasible region is convex.

A

True

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

What happens to the feasible region defined by the intersection of half spaces?

A

It must be a convex set

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

In the standard form of LP, what does the objective function maximize?

A

A linear function of n variables

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

What are the coefficients in the standard form of LP?

A

c1, c2, …, cn

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

What constraints are included in the standard form of LP?

A
  • m constraints
  • Non-negativity constraints
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

What is the significance of non-negative constraints in LP?

A

Used to find a trivially feasible point or to determine if the LP is infeasible

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

What is the first step in converting a linear program to standard form?

A

To minimize a linear function, multiply the objective function by -1

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

How do you handle equality constraints when converting to standard form?

A

Replace with 2 inequality constraints

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

What is the geometric view of LP with n variables?

A

Corresponds to points satisfying all n+m constraints

21
Q

What does the Simplex algorithm do?

A

Solves linear programs in polynomial time

22
Q

What is the starting point for the Simplex algorithm?

A

Feasible point, typically the zero vector

23
Q

What happens if no higher-value neighbors are found in Simplex?

A

The current vertex is optimal

24
Q

What is an example of infeasibility in LP?

A

Non-intersecting half spaces yield an empty feasible region

25
What is the result of an unbounded LP?
Infinite optimal value of the objective function
26
What is the method to detect infeasibility?
Add a single new variable z that is unrestricted
27
What is the dual LP?
A minimization problem derived from the original maximization LP
28
What do the coefficients from the original LP constraints define in the dual LP?
The objective function of the dual LP
29
What is the relationship between the number of variables in the primal LP and the dual LP?
Orig: # Vars → Dual: # Constraints
30
What is the relationship between the number of constraints in the primal LP and the dual LP?
Orig: # Constraints → Dual: # Vars
31
What is the general objective of the primal LP?
Maximize a profit function represented by obj. func. max(cTx) under constraints Ax≤b, x≥0
32
What does the Dual LP aim to do?
Minimize profit, finding smallest upper bound by obj. func. minbTy
33
What constraints are derived from the primal LP's objective function?
ATy≥c, y≥0
34
What is the relationship between the number of variables and constraints in the primal and dual LPs?
Orig: # Vars → Dual: # Constraints; Orig: # Constraints → Dual: # Vars
35
What is required for the Dual LP formulation?
The primal LP must be in canonical form with 'at most' inequalities and maximization objective
36
True or False: The Dual LP of a Dual LP is the original Primal LP.
True
37
How many variables are in the Dual LP if the primal has 2 constraints?
2
38
How many constraints are in the Dual LP if the primal has 3 variables (excluding non-negative constraints)?
3
39
Fill in the blank: The values of d are _______.
[1, -3]
40
What does the Weak Duality theorem state?
For any feasible solution x to the primal and y to the dual, cTx≤bTy
41
What is the implication of matching objective function values in primal and dual LPs?
Both are optimal (x = optimal max, y = optimal min)
42
What does the Strong Duality theorem guarantee?
The existence of optimal primal-dual pairs if both LPs are feasible and bounded
43
What happens if the primal LP is unbounded?
The dual LP is infeasible
44
What is the first step to check if a primal LP in canonical form is unbounded?
Check feasibility by adding new z variable Ax+z≤b, x≥0
45
What must be checked for the dual LP to determine primal unboundedness?
If the dual is infeasible
46
What is the key idea behind Strong Duality?
A feasible and bounded primal LP has an equivalent dual LP that is also feasible and bounded
47
What is the max flow min cut theorem in relation to LPs?
Max flow = primal LP; min cut = dual LP
48
Fill in the blank: The constraints in the primal LP must be transformed into _______.
Canonical form