LP (AI generated from transcript) Flashcards
(48 cards)
What can Max Flow be modeled as?
Linear Programming (LP)
Max Flow models the flow of resources through a network while adhering to constraints.
What is the objective function for Max Flow in LP?
Maximize sum of flow for all edges in E
What are the constraints for Max Flow in LP?
- Must have non-negative flow
- For every vertex, flow in must equal flow out
In a 2D LP example, what is the objective function?
A + 6B
What are the constraints in the 2D LP example?
- A <= 300
- B <= 200
- A + 3B <= 700
- A, B >= 0
What does the orange area represent in the 2D LP geometric view?
The feasible region
What is the optimal point in the 2D LP example?
x1=100 and x2=200 with profit = 1300
Is Linear Programming in P or NP?
Linear Programming is in P
What is Integer Linear Programming (ILP)?
NP-Complete
What characterizes the optimal point in LP?
Lies at a vertex of the feasible region
How many vertices are in the given 2D LP example?
5 vertices: {(0,0), (0, 200), (100,200), (300,0), (300, ~120)}
True or False: A feasible region is convex.
True
What happens to the feasible region defined by the intersection of half spaces?
It must be a convex set
In the standard form of LP, what does the objective function maximize?
A linear function of n variables
What are the coefficients in the standard form of LP?
c1, c2, …, cn
What constraints are included in the standard form of LP?
- m constraints
- Non-negativity constraints
What is the significance of non-negative constraints in LP?
Used to find a trivially feasible point or to determine if the LP is infeasible
What is the first step in converting a linear program to standard form?
To minimize a linear function, multiply the objective function by -1
How do you handle equality constraints when converting to standard form?
Replace with 2 inequality constraints
What is the geometric view of LP with n variables?
Corresponds to points satisfying all n+m constraints
What does the Simplex algorithm do?
Solves linear programs in polynomial time
What is the starting point for the Simplex algorithm?
Feasible point, typically the zero vector
What happens if no higher-value neighbors are found in Simplex?
The current vertex is optimal
What is an example of infeasibility in LP?
Non-intersecting half spaces yield an empty feasible region