Linear Programming¶
A course of the Operations Research and Mathematics series · all the courses
Teaching material conceived and developed by Fabio Furini, associate professor at DIAG, Sapienza University of Rome.
The course presents linear programming: linear functions, polyhedra and linear programming problems with their possible outcomes; the simplex algorithm with phase 0; duality theory and the dual simplex method; the revised simplex, the primal-dual method, sensitivity analysis and the geometry of linear programming.
Prerequisites: Linear Algebra.
Try it now¶
The graphical method finds the optimal solution of a linear programming problem with two variables: the level line slides along the gradient up to the last point of the feasible region it touches, the optimal vertex. Here the line is already on the optimal vertex: set k back to zero and press ▶ to slide it, or change problem.
The parts of the course¶
-
1 · Linear functions, polyhedra and linear programming problems
Linear functions (gradient, Hessian and level sets), half-spaces and polyhedra, linear optimization problems with their optimal solutions, examples and properties, the canonical and standard forms with the graphical method, possible outcomes and equivalences between forms.
-
2 · The simplex algorithm
The simplex algorithm on dictionaries, optimality conditions, pivot rules and cycling, Phase 0 with the auxiliary problem.
-
3 · Duality and the dual simplex
The dual problem, weak and strong duality, the possible outcomes of a primal-dual pair, complementary slackness; the dual simplex algorithm, infeasibility certificates and re-optimization.
-
4 · Matrix methods, sensitivity and geometry
The revised primal and dual simplex, the primal-dual method, sensitivity analysis, the geometry of linear programming (faces, vertices and basic solutions).
-
LP Modelling
From the description of a problem to the linear programming model, solved with Python and Gurobi: modelling techniques and case studies. It is a separate module of the series.
Don't miss¶
-
Exercises with solutions
Exercises for every chapter, each with its worked solution that opens with a click.
-
Self-assessment quiz
A new mock exam at every start: 13 questions, 33 points, with the solution and the link to the notes. Downloads also has the full question bank.
-
Interactive lab
Apps running in the browser: move the parameters and watch the ideas of the course at work, one step at a time.
-
Lecture notes in PDF
Lecture notes, exercise books and slides in PDF, with the same numbering as the website.
-
Problem catalogue
The problems used in the examples and exercises, each with its figure.
-
Full index
All the chapters with their sections on one page, and how each chapter is organized.
The series¶
All the courses of the series are built the same way: lecture notes online and in PDF, exercises with solutions, an interactive lab and self-assessment quizzes.
-
real numbers, functions, limits, derivatives and series, with interactive graphs
-
vectors, matrices, determinants, linear systems and eigenvalues, with the computation lab
-
number representation, pseudo-code, sorting and searching, analysis and recursive algorithms
-
Linear Programming · this course
polyhedra, the simplex algorithm, duality and the dual simplex, with the interactive lab
-
LP relaxation, valid inequalities, cutting planes, branch-and-bound and branch-and-cut
-
convex sets and functions, convex optimization problems, with interactive graphs
-
graphs, spanning trees, shortest paths, network flows, the network simplex and project management
-
Combinatorial Optimization Problems
knapsack, bin packing, coloring, TSP, scheduling and lot sizing: the problems, their formulations and ad hoc algorithms
-
principles and DP algorithms for knapsack, lot sizing, coin change and rod cutting
-
constructive heuristics, local search, metaheuristics and MIP heuristics for combinatorial optimization problems
-
performance guarantees, approximation schemes and limits of approximation for combinatorial problems
-
linear programming models of managerial problems, solved with Python and Gurobi
-
nonlinear programming models, from portfolios to machine learning, with Python and Gurobi
-
integer linear programming models, from the formulation to the solution with solvers
Teaching material by Fabio Furini — DIAG, Sapienza University of Rome.
This website is also available in Italian.
The lecture slides, one PDF per chapter, are on the Downloads page.