LP (AI generated from transcript) Flashcards

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
Q

What is the result of an unbounded LP?

A

Infinite optimal value of the objective function

26
Q

What is the method to detect infeasibility?

A

Add a single new variable z that is unrestricted

27
Q

What is the dual LP?

A

A minimization problem derived from the original maximization LP

28
Q

What do the coefficients from the original LP constraints define in the dual LP?

A

The objective function of the dual LP

29
Q

What is the relationship between the number of variables in the primal LP and the dual LP?

A

Orig: # Vars → Dual: # Constraints

30
Q

What is the relationship between the number of constraints in the primal LP and the dual LP?

A

Orig: # Constraints → Dual: # Vars

31
Q

What is the general objective of the primal LP?

A

Maximize a profit function represented by obj. func. max(cTx) under constraints Ax≤b, x≥0

32
Q

What does the Dual LP aim to do?

A

Minimize profit, finding smallest upper bound by obj. func. minbTy

33
Q

What constraints are derived from the primal LP’s objective function?

A

ATy≥c, y≥0

34
Q

What is the relationship between the number of variables and constraints in the primal and dual LPs?

A

Orig: # Vars → Dual: # Constraints; Orig: # Constraints → Dual: # Vars

35
Q

What is required for the Dual LP formulation?

A

The primal LP must be in canonical form with ‘at most’ inequalities and maximization objective

36
Q

True or False: The Dual LP of a Dual LP is the original Primal LP.

37
Q

How many variables are in the Dual LP if the primal has 2 constraints?

38
Q

How many constraints are in the Dual LP if the primal has 3 variables (excluding non-negative constraints)?

39
Q

Fill in the blank: The values of d are _______.

40
Q

What does the Weak Duality theorem state?

A

For any feasible solution x to the primal and y to the dual, cTx≤bTy

41
Q

What is the implication of matching objective function values in primal and dual LPs?

A

Both are optimal (x = optimal max, y = optimal min)

42
Q

What does the Strong Duality theorem guarantee?

A

The existence of optimal primal-dual pairs if both LPs are feasible and bounded

43
Q

What happens if the primal LP is unbounded?

A

The dual LP is infeasible

44
Q

What is the first step to check if a primal LP in canonical form is unbounded?

A

Check feasibility by adding new z variable Ax+z≤b, x≥0

45
Q

What must be checked for the dual LP to determine primal unboundedness?

A

If the dual is infeasible

46
Q

What is the key idea behind Strong Duality?

A

A feasible and bounded primal LP has an equivalent dual LP that is also feasible and bounded

47
Q

What is the max flow min cut theorem in relation to LPs?

A

Max flow = primal LP; min cut = dual LP

48
Q

Fill in the blank: The constraints in the primal LP must be transformed into _______.

A

Canonical form