Difference between revisions of "Linear Programming"
Jump to navigation
Jump to search
(→Notes) |
(→Notes) |
||
| Line 17: | Line 17: | ||
* Primal degeneracy not necessarily dual degenerate. | * Primal degeneracy not necessarily dual degenerate. | ||
* Simplex method traverses edges; barrier method starts in the center of the feasible region (interior point?) | * Simplex method traverses edges; barrier method starts in the center of the feasible region (interior point?) | ||
| + | |||
| + | ==Creating a Project== | ||
Revision as of 21:59, 16 April 2022
Resources
- Real Python's guide/tutorial
- Five areas of application for Linear Programming Techniques
- Gurobi Optimization Benchmarks page
- Some CPLEX examples
- Github documentation and examples for DOcplex
- Comparison of Gurobi, PuLp and CPLEX
Notes
- Basic solution: solution at a vertex
- Simplex algo takes a subset of variables to zero at each iteration--the non-basic variables; the remaining are the basic variables
- Reduced cost is an indication of how much the objective will change for a unit increase in the variable
- minimize [math]\displaystyle{ c^Tx }[/math] subject to [math]\displaystyle{ Ax=b, x\geq 0 }[/math]. If y are the dual variables for a given basic solution, the reduced costs are defined as [math]\displaystyle{ c - y^TA }[/math]. The basic solution is optimal if [math]\displaystyle{ c - y^TA \geq 0 }[/math]
- If all reduced costs are non-negative then the objective function can only increase with a change in the variable value and thus the solution when minimizing is optimal
- For large problems, reduced costs can determine if multiple optimal solutions exist. They do when at least one non-basic variable w/ a zero reduced cost exist in an optimal solution (i.e., variables can change w/out affecting objective)
- The slack value = LHS vs. RHS of a constraint. E.g., constraint is [math]\displaystyle{ f(x)\leq 100 }[/math], soln is [math]\displaystyle{ f(x)=80 }[/math] then the slack value of the constraint is 20. Slack values only exist for non-binding constraints; binding constraints equal their inequalities.
- Primal degeneracy not necessarily dual degenerate.
- Simplex method traverses edges; barrier method starts in the center of the feasible region (interior point?)