Back to Library
Optimizing Supply Chains With Pyomo and HiGHS
Supply Chain Optimization
Bestseller
New Release

Optimizing Supply Chains With Pyomo and HiGHS

From Mathematical Modeling and Data Pipelines to Production-Grade Decision Systems

by Krish Naidu

English 1
₹5,500+ 18% GST
Secure online reader — no downloads. Access anytime from your dashboard.

About This Book

Supply chains are not optimized by spreadsheets alone. They are optimized by translating real business decisions—what to produce, where to source, how much to ship, which facilities to open, what capacity to install, and how competing products should share constrained resources—into mathematical models that can be solved, validated, and trusted. Optimizing Supply Chains with Pyomo and HiGHS is a practical technical textbook that takes the reader from the fundamentals of mathematical optimization to production-oriented supply-chain decision systems using Python, Pyomo, pandas, NumPy, and the HiGHS optimization solver. The central philosophy of the book is: Data → Model → Optimize → Validate → Decide Rather than presenting optimization as a collection of mathematical formulas, the book develops problems as complete decision systems. Business assumptions are converted into sets, parameters, variables, objectives, and constraints; data is prepared through pandas pipelines; models are solved using Pyomo and HiGHS; and solutions are independently validated before they are interpreted as business decisions. A recurring case study, Kestrel, provides a common supply-chain environment through which increasingly sophisticated optimization problems are developed. The network evolves from basic production and distribution decisions into capacity constraints, facility location, multi-capacity facility design, and finally multi-commodity network flow. The book also emphasizes something frequently missing from optimization training: how models fail. Readers encounter deliberately broken models in which the solver still reports optimal—but the business answer is wrong. These examples demonstrate why model validation, data validation, constraint verification, independent reconciliation, Big-M discipline, sparse modeling, and interpretation are essential in real-world optimization. The result is not simply a guide to writing Pyomo code. It is a framework for learning how to think like a supply-chain optimization analyst. What Makes This Book Different? 1. It connects mathematics to business decisions The book continuously answers: What does this equation mean operationally? Instead of learning: \(x_{ij} \geq 0\) in isolation, the reader learns what x[i,j] represents in an actual supply-chain network and why its value matters to procurement, transportation, inventory, production, or facility decisions. 2. It teaches modeling, not just software Pyomo is the implementation language—not the subject itself. Readers learn to recognize: decision variables objective functions equality and inequality constraints capacity constraints fixed-charge decisions binary decisions Big-M formulations network balance facility-sizing decisions shared-resource constraints linear programming mixed-integer linear programming integrality and LP relaxation model validation 3. It uses real data-pipeline thinking The book incorporates pandas as part of the optimization workflow. Data is organized into structures such as: node tables edge tables balance tables facility tables capacity-tier tables commodity/balance tables This creates a bridge between the messy data an analyst receives and the mathematical structure an optimizer requires. 4. It teaches readers to distrust an unexplained optimal One of the strongest themes of the book is: A solver saying "optimal" does not mean the business model is correct. The book deliberately demonstrates silent failures where: a facility is reported closed but still carries flow; a small facility carries more volume than its physical capacity; multiple commodities effectively receive private access to shared capacity; a loose Big-M weakens the formulation; an incomplete model produces an optimal answer to the wrong decision space. The reader therefore learns to validate the model and reconcile the result independently of the objective that produced it.

What You'll Learn

Book Architecture
The book follows a deliberate progression:
Part I — Optimization Foundations
The opening chapters establish the mathematical and computational foundation required to formulate optimization problems in Python.
Readers learn how to move from:
Business problem → mathematical formulation → Python data → optimization model → solution
Core concepts include:
optimization terminology
decision variables
parameters
objective functions
constraints
linearity
feasible regions
continuous and binary decisions
model construction
solver interaction
interpreting optimization results
The emphasis is on building intuition before increasing model complexity.
Part II — Production-Grade Optimization with Python
The second stage moves from isolated mathematical examples toward reusable optimization workflows.
Readers work with:
Python data structures
pandas DataFrames
structured model inputs
validation functions
Pyomo Sets
Pyomo Parameters
Pyomo Variables
Objectives
Constraints
solver interfaces
solution extraction
post-solve validation
The book progressively establishes a production-oriented pattern:
Validate data → Build model → Solve → Check status → Load solution → Reconcile → Interpret
Part III — Supply Chain Optimization Models
The middle of the book develops increasingly realistic supply-chain optimization problems.
The reader moves from individual decisions toward interconnected systems involving:
production
distribution
transportation
procurement
capacity
network flows
resource allocation
operational constraints
fixed costs
binary decisions
The models become progressively more sophisticated while retaining the same underlying modeling architecture.
This is important pedagogically: the reader learns that complex optimization is often created by adding dimensions and relationships to a familiar mathematical structure, rather than learning an entirely new modeling language for every problem.
Part IV — Network Design
The final network-design sequence develops Kestrel's network into increasingly realistic strategic decisions.
Chapter 14 — Facility Location
The question becomes:
Should this facility exist at all?
Readers learn fixed-charge facility location using binary open/close variables.
The chapter introduces:
fixed facility costs
binary variables
capacity activation
Big-M constraints
LP relaxation
integrality gaps
Big-M tightness
facility validation
A particularly important lesson is demonstrated numerically:
A binary variable is sometimes structurally necessary—not merely convenient.
Chapter 15 — Multi-Capacity Facility Design
The question becomes:
If the facility exists, what size should it be?
Instead of one facility configuration, the model offers discrete capacity tiers such as:
Small
Large
Closed
The chapter introduces:
facility-size decision variables
sparse feasible option sets
mutually exclusive alternatives
≤ 1 versus = 1
capacity-tier economics
dominated options
demand-scaling analysis
capacity breakpoints
staged-investment concepts
data-contingent model failures
The chapter demonstrates an important modeling principle:
An optimization model can be mathematically correct while still being strategically incomplete if important real-world alternatives were never modeled.
Chapter 16 — Multi-Commodity Network Flow
The final network chapter asks:
What happens when multiple products compete for the same network capacity?
The model adds a commodity dimension:
$$ x_{pij} $$
and demonstrates how Standard Pumps and Heavy-Duty Pumps compete for shared hub capacity.
Readers learn:
commodity-indexed flow
commodity-specific balance equations
pooled capacity
shared infrastructure
coupled decisions
independent versus joint optimization
double-booking of capacity
LP modeling of multi-commodity networks
The chapter demonstrates why solving each product separately can produce a cost that is lower than anything physically achievable.
The Kestrel Case Study
One of the book's strongest structural features is the recurring Kestrel supply-chain case study.
Instead of solving unrelated textbook exercises, the reader watches the same network evolve.
The progression is deliberate:
First:
How should product flow through the network?
↓
Then:
Which network constraints matter?
↓
Then:
Should a facility exist?
↓
Then:
What size should it be?
↓
Finally:
How should multiple products share the infrastructure?
This gives the book continuity and allows readers to understand how real optimization projects evolve.
The Core Modeling Philosophy
Throughout the book, five questions repeatedly appear:
1. What is the decision?
What exactly is management choosing?
2. What information is known?
What belongs in the parameter/data layer?
3. What constraints represent reality?
What cannot happen physically, financially, operationally, or contractually?
4. What does the solver actually optimize?
What objective is being minimized or maximized?
5. Does the solution make business sense?
Can the mathematical answer be independently verified?
This creates the book's central workflow:
DATA → MODEL → OPTIMIZE → VALIDATE → DECIDE
Production-Grade Skills Developed
By the end of the book, readers should be comfortable with more than simply running a solver.
They should be able to:
translate business requirements into mathematical formulations;
structure optimization data using pandas;
build sparse network models;
formulate LP and MILP models;
use Pyomo with HiGHS;
select appropriate decision-variable domains;
formulate capacity constraints;
model fixed-charge decisions;
formulate facility-location problems;
model discrete capacity tiers;
handle multiple commodities;
recognize when binary variables are genuinely necessary;
formulate tight Big-M constraints;
diagnose silent modeling errors;
validate source data before optimization;
validate solutions after optimization;
reconcile objective values independently;
compare alternative formulations;
interpret LP relaxations;
analyze integrality gaps;
perform sensitivity and scenario analysis;
identify dominated alternatives;
conduct demand-scaling experiments;
distinguish mathematical optimality from business optimality.
Who Should Read This Book?
This book is designed for:
Supply Chain Professionals
Demand planners, supply planners, procurement professionals, logistics managers, inventory analysts, network-design analysts, and supply-chain consultants who want to move beyond spreadsheet-based decision making.
Data Scientists
Professionals who know Python and analytics but want to add mathematical optimization to their toolkit.
Operations Research Students
Students learning LP, MILP, network optimization, and mathematical modeling through practical supply-chain applications.
Industrial Engineering Students
Readers looking for a bridge between operations-research theory and practical implementation.
MBA / Operations Students
Professionals who want to understand how optimization translates into actual business decisions.
Python Developers and Analysts
Readers who want to learn how pandas-based data pipelines can feed mathematical optimization models.
Recommended Prerequisites
The book is intended for readers with:
basic Python knowledge;
familiarity with pandas and DataFrames;
basic algebra;
an interest in supply-chain decision making.
Advanced mathematical optimization experience is not required at the beginning.
The book progressively introduces the mathematical structures required to understand the later models.
The Book's Central Promise
This book is ultimately about changing how readers approach supply-chain problems.
Instead of asking:
"What number should I put in the spreadsheet?"
the reader learns to ask:
"What decision am I making, what constraints govern that decision, what data represents those constraints, and how can I prove that the resulting decision is feasible and economically justified?"
That is the transition from analysis to optimization.
And ultimately:
The goal is not to produce an optimal number. The goal is to build a trustworthy decision system.

Reader Reviews

No reviews yet

Be the first to share your thoughts!

Related Books

Supply Chain Optimization Version 1
New
Supply Chain Optimization

Supply Chain Optimization Version 1

by Krish Naidu

₹1,500
Transport Optimization
Bestseller
New
Supply Chain Optimization

Transport Optimization

by Krish Naidu

₹500
Inventory Analysis, Analytics and Optimization
New
Supply Chain Optimization

Inventory Analysis, Analytics and Optimization

₹500
Supply Chain Optimization Version 2
New
Supply Chain Optimization

Supply Chain Optimization Version 2

by Kirsh Naidu

₹1,750