# optim4ai Optimisation for Artificial Intelligence, a 4-day course

View the Project on GitHub xoolive/optim4ai

# Mixed integer linear programming

With linear programming we have studied a special case of constrained optimization where both the objective function and the constraints are linear. The solution approaches (simplex and others) are based on the properties of these problems: continuous and convex set of feasible solutions, convex objective function. This leads to polynomial approaches and very powerful algorithms.

Many practical cases, however, show features that linear constraints with continuous variables cannot represent: discrete choices, some non-linearities (min, max, absolute, boolean relations, etc.) We must use integer or binary variable to represent them. Unfortunately, even with linear constraints and objective, it is not possible to rely on the same smart properties as for linear programming. In general, these problems are much more difficult to solve.

Mixed integer linear programming (MILP) is dedicated to adapting linear programming to discrete (integer or binary) or mixed continuous/discrete variables.

Topic
5.1 Linear relaxation of a MILP problem (notebook)
5.2 Branch & Bound (notebook)
5.3 Modelling and solving MILP problems with Python

Notebook sessions can be run on:

• your own computer: there are no specific requirements besides the numpy, matplotlib and scipy libraries.

• the computer in the classroom. Activate the environment before running Jupyter lab:

# The following commands only work in the classroom