optim4ai

Logo

Optimisation for Artificial Intelligence, a 4-day course

View the Project on GitHub xoolive/optim4ai

Solving LP problems with Python

« Previous | Up ↑ | Next »

In the notebook, we illustrated how the linprog function in scipy.optimize implements the simplex, provided we construct the A, b and c matrices.

We implemented below the steel manufacturing problem with the linprog function (note the equality and inequality constraints).

This process of constructing such large matrices is error-prone, and in practice, we use dedicated libraries:

Exercice: You will find in the code/ folder an implementation of the steel manufacturing problem with the three libraries. Implement the pasta production problem with the library of your choice.

« Previous | Up ↑ | Next »