What You Will Learn
How many rooftop solar panels will be installed in your service territory by 2030? How many electric vehicles? Nobody knows for certain. DER scenario planning uses simulation to explore a range of possible futures and identify which feeders are most likely to run into capacity problems. In this guide you will:
- Understand the SP&L scenario configurations (Baseline 2025, High DER 2030, EV Adoption 2030)
- Build a Monte Carlo simulation that models uncertain solar and EV adoption rates
- Distribute new DER installations across the 12 SP&L feeders
- Identify which feeders exceed capacity thresholds under different scenarios
- Visualize the probability distribution of outcomes
What is Monte Carlo simulation? Instead of predicting a single future, Monte Carlo simulation runs your model thousands of times with slightly different random inputs. Each run produces a different outcome. By looking at all the outcomes together, you get a probability distribution—not just "what might happen" but "how likely is each outcome." It is named after the famous casino because it relies on randomness.
SP&L Data You Will Use
- scenarios/baseline_2025.json — current-state system with 14% DER penetration
- scenarios/high_der_2030.json — 35% solar penetration scenario
- scenarios/ev_adoption_2030.json — 20% residential EV penetration
- timeseries/pv_generation.parquet — existing PV output profiles
- timeseries/ev_charging.parquet — EV charging load shapes
- timeseries/substation_load_hourly.parquet — baseline feeder loads
Additional Libraries
Nothing beyond the base prerequisites: pandas, numpy, matplotlib. Also pyarrow for Parquet files.
Which terminal should I use? On Windows, open Anaconda Prompt from the Start Menu (or PowerShell / Command Prompt if Python is already in your PATH). On macOS, open Terminal from Applications → Utilities. On Linux, open your default terminal. All pip install commands work the same across platforms.
Load Scenario Configurations
Load Feeder Capacity Data
What is headroom? Headroom is the difference between a feeder's rated capacity and its current peak load. If a feeder has 1 MW of headroom, it can absorb up to 1 MW of additional load (like EV charging) before it hits its limit. Feeders with little headroom are at risk of overload as DER adoption grows.
Define the Monte Carlo Parameters
Analyze Results: Which Feeders Are at Risk?
Visualize the Uncertainty Distribution
Compare Scenarios
What You Built and Next Steps
- Loaded the three pre-built SP&L scenario configurations
- Calculated feeder headroom from historical peak loads
- Ran 1,000 Monte Carlo simulations with random adoption rates
- Identified which feeders are most likely to exceed capacity by 2030
- Visualized the probability distribution of peak loads
- Compared deterministic scenario outcomes side by side
Ideas to Try Next
- Add spatial clustering: Model EV adoption as spatially clustered (neighbors influence each other) rather than uniform
- Include time-of-day: Use actual EV charging shapes from
timeseries/ev_charging.parquetto model coincident peak demand - Add battery storage: Simulate community storage installations that offset peak EV charging load
- Connect to hosting capacity: Feed Monte Carlo solar results into the hosting capacity analysis from Guide 03
- Use the extreme weather scenario: Load
scenarios/extreme_weather.jsonand stress-test against 10-year storm events
Key Terms Glossary
- Monte Carlo simulation — running a model many times with random inputs to estimate outcome distributions
- DER penetration — the percentage of customers with distributed energy resources (solar, storage, EVs)
- Headroom — remaining capacity between current peak and the feeder's rated limit
- Scenario planning — evaluating multiple plausible futures rather than betting on a single forecast
- Coincident peak — the peak demand that occurs when multiple loads (like EV chargers) operate simultaneously
- No-regrets investment — an action that pays off regardless of which future materializes
Ready to Level Up?
In the advanced guide, you'll build stochastic optimization models for grid upgrade planning with cost-benefit analysis and investment roadmaps.
Go to Advanced DER Planning →