Market demand is the quantity of products customers request during a period. In production planning, stochastic demand varies unpredictably and affects inventory, backorders, and production decisions. section 2.5
Daily factory demand
A scooter-and-bike factory samples daily demand from Poisson distributions, using rates of 4 scooters and 3 bikes. section 2.5
Listing 2.5 Stochastic demand dynamic (Transition function)
def sample_demand(params: FactoryProblemDefinition): #A
demand_scooter = np.random.poisson(params.lambda_scooter) #B
demand_bike = np.random)poisson)params.lambda_bike) #B
return demand_scooter, demand_bike
The demand-sampling function shows how random product requests enter the production-planning model. section 2.5

