ML surrogate + differential evolution for crude-blend / FCC-severity planning at a 650 kbpd refinery — a methodology demonstration built entirely on free, open data (published crude assays, EIA price series), with every number traceable to a cited source or labeled as a documented assumption.
5 REAL ASSAYS EIA PRICES DE ≡ LP 137 OFFLINE TESTSuv run marimo run
app/app.py): headline economics, live NGN/USD + WTI ticker,
optimal diet, 10k-scenario risk, one-click deep re-optimization.
(HF-hosted interactive Space pending — Docker Spaces now require PRO
on free accounts.)uv.lock
reproducibility.| Result | Value |
|---|---|
| Optimal diet (base economics) | ~100% Alaska North Slope @ max FCC severity |
| Blend margin | $15.67/bbl |
| Uplift vs equal-weight blend | +11.3% (100-seed sweep) |
| DE vs exact LP | ≡ within $0.005/bbl — physics are linear in the decision vars |
| Surrogate 5-fold R² (min) | 0.982 (gate >0.90); jet leave-crude-out 0.11 disclosed |
| Re-optimization value under price shocks | +$2.56/bbl mean; flips the loss tail (CVaR5 −$3.50 → +$1.42) |
| Downside risk (10k scenarios) | VaR(5%) $6.25 · CVaR(5%) $1.42 · P(loss) 0.8% |
| DE runtime | 0.85 s bridge / 3.4 s surrogate (30–60 s budget) |
docs/methodology.md is the
audit trail.