The Real Python Podcast cover image

Linear Programming, PySimpleGUI, and More

The Real Python Podcast

00:00

How to Solve a Linear Programming Problem in Python

In sci-fi, it's like a function called the Linprog function. The pulp library takes a more object oriented approach. And you build up a model that contains all the information about your problem. You call the solve method, and it will attempt to solve the problem for you. Once it's solved, it assigns new attributes on the model containing the output of the problem.

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app