demand.m Demand subroutine.
demandsize.m Generates the size of the demand.
interarrival.m Generates a demand interarrival time.
main.m Main simulation script. Uses demand.m, demandsize.m, interarrival.m, leadtime.m, order.m, and plottrace.m.
leadtime.m Generates a lead time for the order.
order.m Order subroutine.
plottrace.m Plots the realization.

back