Vanderbei’s applications · Princeton University

Newsboy Problem

Watch the order quantity adjust as new demand arrives. Change the mean demand, cost, or selling price to see how the order responds.

Recent demand

Current order quantity

Period
—
Order quantity
—
Latest demand
—
Above order
—
Demand and pricing

The simulation keeps the latest 500 observations and caps demand at twice the mean, rounded down. The order adjusts toward the cost-to-price ratio.

Loading the Python engine…