IE 5301 Worked Examples
Teaching · IE 5301 Advanced Operations Research · Worked examples
IE 5301 covers the deterministic core of operations research at graduate depth, then adds the stochastic tools. Each section has one idea, a short explanation and something to try; the worked example is folded underneath.
The deterministic core
Interactive on the IE 3315 page:
- Simplex, corner to corner
- Shadow prices and KKT
- A transportation network
- Branch and bound
- Convexity: Hessians and Sylvester
- Nonconvex problems and global solvers
The stochastic three: one fast charger
The setting. A workplace has one EV fast charger, open 12 hours a day. About 3 cars arrive an hour, at random, and a charge takes 15 minutes on average. Sometimes it breaks. Should the site add a second one?
- How often is it working? A Markov chain.
- How long do drivers wait? A queue.
- Is a second charger worth it when demand is uncertain? A decision tree.
1. A Markov chain: how often is it working?
- Define the states and build the transition matrix
- Find n-step probabilities
- Solve for the steady state
The charger is Up or Down each morning, and tomorrow depends only on today. Put the daily chances in a transition matrix (rows sum to 1). Multiplying by steps a day ahead, and the steady state solves with (drop one redundant equation).
Try it. Change how often the charger breaks and how fast it gets fixed.
Worked example: breaks 5% of days, fixed half the time
- Transition matrix:
- Two days after a breakdown: .
- Steady state: , so ; with ,
- Two independent chargers are both down only of days.
2. A queue: how long is the wait?
- Identify the arrival rate λ and service rate μ
- Find the average number waiting
- Use Little's law to turn numbers into waiting times
Cars arrive at random at rate and charge at rate . Utilization must stay below 1. For one charger (M/M/1), cars wait on average, and Little's law, , turns that into time: .
Try it. Push the arrival rate toward the charging rate and watch the wait explode. Press Play to watch a simulated day.
Worked example: 3 cars an hour, 15-minute charges
- Rates: , , .
- State probabilities: the queue is a Markov chain too, so : idle of the time.
- Average number: , .
- Little's law: hour, hours: 45 minutes.
- At 3.5 cars an hour the wait is 105 minutes; a second charger (M/M/2) cuts it to about 3.6.
3. A decision tree: add a second charger?
- Draw a tree of decisions (squares) and chance events (circles)
- Fold back the tree to find the best decision by expected value
- Find the expected value of perfect information
Value each ending, then fold the tree back: average at each circle (expected value), and take the best branch at each square. Here each ending's value comes from the first two tools: revenue times availability, minus the cost of waiting, minus the second charger's cost.
Try it. How sure do you have to be that demand will grow before a second charger pays?
Worked example: a 40% chance of high demand
Low demand is 2 cars an hour (probability 0.6), high is 3.5 (0.4). A charge earns $8, a waiting hour costs $10, a second charger $150 a day.
| Option, demand | Revenue | Waiting cost | Value a day |
|---|---|---|---|
| One charger, low | $174.55 | $60.00 | $114.55 |
| One charger, high | $305.45 | $735.00 | −$429.55 |
| Two chargers, low | $190.41 | $4.00 | $36.41 |
| Two chargers, high | $333.22 | $24.86 | $158.37 |
- Fold back: one charger ; two .
- Decide: add the second charger, EV $85.20 a day
- EVPI: dollars a day. The options tie at about a 12% chance of high demand.
Revenue is with availability = 0.909 (one) or 0.992 (two); waiting is . Breakdowns scale revenue, but the queue is computed as if the chargers never break; a simulation would combine the two.