Write the daily release policy for a two-reservoir hydro and irrigation cascade for a dry-leaning water year with a new tariff and a tightened environmental flow licence; it is scored by simulation over hidden years.
harbor run -t reactive-labs/reservoir-release-scheduleharbor download reactive-labs/reservoir-release-scheduleYou are Tomas Okonjo, operations engineer in System Operations at Corrandale Water & Power Authority (CWPA), which runs the Mell River scheme: Lake Ardoch and its powerhouse upstream, Glenbrook Reservoir and its powerhouse below it, the Glenbrook Main Canal that supplies two irrigation districts, and the river past the town of Brannock. Today is Thursday 24 September 2026. Ines Varga, Manager of System Operations, wrote to you:
I need the release policy for the 2026-27 water year (1 October 2026 to 30 September 2027) as a policy file in the MellPlan interface, so we can run it against the planning model before I take it to the GM, and so SCADA can call it at the 06:00 schedule from 1 October. It will be judged the way OM-3 section 7 says: the water-year cost, over the kind of years the outlook describes, without a single licence or OM-3 section 5 breach.
In /app/inputs:
RE_WY2027_release_policy_MellPlan_file.eml: the thread with Ines, Finance, the Energy Desk and Environmental
ComplianceWL-0417_Water_Licence_Mell_River_Hydro_Scheme_consolidated_2019.docx and
WL-0417_Amendment_No1_signed_2026-08-28.pdf: the water licence and its amendmentOM-3_Mell_River_System_Operating_Manual_RevC.docx: plant data, flood control, the annual assessment and the
current guide-curve ruleTariff_Notice_TN-2027-01_PPA-CW-2019.pdf: energy prices under the power purchase agreementCW-114_Bulk_Water_Supply_Contract_BPID.docx and CW-207_Bulk_Water_Supply_Contract_MFWUC.docx: the irrigation
contractsRCS_Seasonal_Streamflow_Outlook_Mell_Basin_Oct2026.pdf: the seasonal outlookMell_basin_gauge_daily_inflow_WY1986-WY2026.csv, Ardoch_snow_course_surveys_1986-2026.csv and
CWPA_SCADA_daily_operations_WY2024-WY2026.csvIn /app/sim: MellPlan, the planning model (README.md explains it and the policy interface), with
starter_policy.py (current practice), the WY2026 baseline config and seeds 1-20. Run it from /app with
python -m sim.run --policy <file> --seeds 1-20.
/app/output/policy.py, defining a class Policy exactly as in /app/sim/README.md:
Policy() is constructed once per water year with no arguments; it may load data files that you put in
/app/output next to it (find them relative to __file__).decide(obs) is called once a day at 06:00 with the observation described in the README (storages at 00:00,
yesterday's flows, releases, deliveries and generation, today's canal orders, the snow surveys published so far,
and the MFWUC allocation flag). It returns {"ardoch_release_m3s": x, "glenbrook_release_m3s": y, "deliveries_ML": {"BPID": a, "MFWUC": b}}, plus "mfwuc_allocation_pct" on the announcement day. Releases are
daily means in m3/s; deliveries are ML for the day and may not exceed the day's order.Your policy will be run, day by day, over many simulated water years like the one Ines describes, 1 October 2026 to 30 September 2027, starting from the storages in her email, under the licence, OM-3, the tariff notices and the contracts as they apply to that year. Each year is scored on its OM-3 section 7.2 water-year cost, from what current practice (OM-3 Appendix D) costs on the same year to what the best release schedule would have cost had that year's inflows, snow surveys and canal orders been known in advance; no policy is expected to reach that mark. A year in which any day breaks a licence flow condition or the OM-3 section 5.4 evacuation rule, or in which the policy fails, returns an invalid decision or breaks the time limits, scores zero.