Optimization · Decision science · Algorithms

Every complex decision has a pattern.

Discover the mathematical models, optimization algorithms, and computational techniques behind real-world decisions. Learn the theory, understand the trade-offs, and implement solutions that work.

Explore optimization patterns Try the interactive playground

Pattern: the newsvendor

Order where the expected cost bottoms out

300400500600700 Order quantity Q mean 500 Q* = 554 leftover cost shortage cost

A shortage costs $12, a leftover $4, so F(Q∗)=1212+4=0.75F(Q^*) = \tfrac{12}{12+4} = 0.75 and you stock above the mean.

Pattern library

The structures behind the decisions

A pattern is a decision structure that recurs across industries, with a known way to model it and a known way to get it wrong. Each one is written for practitioners: the formulation, the intuition, working Python, and the mistakes worth avoiding.

Interactive playground

Change the inputs. Watch the decision move.

Intuition for optimization comes from seeing how the answer responds. Every tool shows its equations, states its assumptions, and runs entirely in your browser.

Critical Ratio Explorer

Set the cost of too much and too little, pick a demand distribution, and watch the optimal order quantity move.

Live

Inventory Policy Simulator

Simulate (s, Q) and (R, S) policies against stochastic demand and lead times.

Planned

MOQ Optimization Explorer

See when a vendor minimum is worth accepting and when to skip the order.

Planned

MILP Formulation Explorer

Build a small model, toggle constraints, and see the LP relaxation and integer optimum.

Planned

Simulation Optimization Lab

Search a noisy objective and see how sampling error changes the answer.

Planned

Scheduling Playground

Drag jobs onto machines and compare against a solver on makespan and lateness.

Planned
Adam DeJans Jr.

Who writes this

Adam DeJans Jr.

Operations research scientist. More than a decade designing optimization and simulation systems that run in production, for supply chain, logistics, production planning, and allocation. Author of four books on optimization and decision-making.

More about the author and this site →