Sitemap
TDS Archive

An archive of data science, data analytics, data engineering, machine learning, and artificial intelligence writing from the former Towards Data Science Medium publication.

Member-only story

Linear Programming using Python

A step by step introduction to formulating and solving a linear optimization problem using PuLP library in Python.

10 min readApr 26, 2020

--

Press enter or click to view image in full size
Photo by Antoine Dautry on Unsplash

Objective of the Article

The main objective of this article is to introduce the reader to one of the easiest and one of the most used tools to code up a linear optimization problem in Python using the PuLP library. It also gives a quick introduction about optimization and linear programming so that even those readers who have little or no prior knowledge about Optimization, Prescriptive Analytics or Operations Research can easily understand the context of the article and what it will be talking about. We also are touching upon how to formulate a LP using mathematical notations.

Press enter or click to view image in full size
Photo by Diggity Marketing on Unsplash

Prerequisites

The given prerequisites are good to have and not necessary.

  1. Basic coding knowledge in Python.
  2. Basic understanding of linear programming, objective function, constraints and decision variables.

--

--

Priyansh Soni
Priyansh Soni

Written by Priyansh Soni

Analytics Consultant (DS) at McKinsey & Company | Prescriptive Analytics | Optimization | Meta-heuristics | ML | NN | RL | Badminton lover l Views are my own.

TDS Archive
TDS Archive

Published in TDS Archive

An archive of data science, data analytics, data engineering, machine learning, and artificial intelligence writing from the former Towards Data Science Medium publication.