Write the daily reserve policy for a regional airline's bid period: which reserve pilots to publish on short and long call a week ahead under the collective agreement, when to position reserves between bases, post open time or cancel; it is scored by simulation over hidden bid periods.
harbor run -t reactive-labs/crew-reserve-planningharbor download reactive-labs/crew-reserve-planningYou are Rafael Okonkwo, crew resource planner at Larkspur Regional Airlines. Larkspur flies ATR 72-600s and Embraer 175s from three crew bases, Port Averill (PAV), Dunmore Falls (DMF) and St. Brendan (SBN), and holds reserve captains and first officers at each base for the duty periods that open up when a line pilot calls in sick or fatigued, is removed after recurrent training, or times out on a weather day. Today is Friday 22 January 2027. Odile Marchetti, Director of Crew Resources, wrote to you this morning:
After January I am not taking another month of the desk guide table to the ops review. I want the BP02 reserve policy as a ReservePlan policy file: who is on reserve each day and on which call, when we position, when we go to open time and at which tier, when we cancel early. Greta runs it on a few dozen simulated BP02s built from what we actually know about this period. It is judged on total cost as Finance counts it. A period with a single Article 12 breach is a failed period. Policy file in Greta's format by Monday please.
In /app/inputs:
RE_BP02_reserve_policy_for_ReservePlan.eml: the thread with Odile, Crew Scheduling and Crew Planning AnalyticsLPA_Collective_Agreement_2024-2028_Articles_5_11_12_excerpt.docx and
LOA_27-01_Short_Call_Credit_and_Tier_2_Open_Time.pdf: pay, reserve line rules and the January letter of agreementLRA_Operations_Manual_Part_D_7.4-7.6_Cancellation_and_Positioning_Costs_rev12.pdf and
NTA_Air_Passenger_Protection_Regulations_2027_amounts_summary.pdf: what a cancellation and a positioning costTraining_Bulletin_TB-27-02_DMF_recurrent_surge.pdf, Network_Notice_NN-27-03_SBN-CDI_launch.pdf,
PHA_Influenza_Advisory_2027-03.pdf: what is known about the periodBP02-2027_reserve_pilot_calendar.csv, BP02-2027_published_reserve_days_25-31_Jan.csv,
BP02-2027_scheduled_duty_periods_issued_2027-01-08.csv: the reserve pilots' training and vacation, the first
week as already published, and the scheduleIn /app/sim: ReservePlan, the model Crew Planning Analytics uses to test reserve policies (README.md explains
it and the policy interface), with starter_policy.py (current practice, the desk guide table), the config of
Bid Period 02-2026 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 bid period with no arguments; it may load data files that you put in
/app/output next to it (find them relative to __file__). It is not given the config.decide(obs) is called once for each of the 35 days with the observation described in the README (each reserve
pilot's line, the open duties known so far, positioning in effect, today's storms, the weather outlook, the
advisory level and yesterday's coverage). It returns the day's orders: the reserve days to publish for the day
seven days ahead (short call and long call, by pilot), the reserves to position for tomorrow, the duties to post
to open time with their tier, and the duties to cancel.Your policy will be run, day by day, over many simulated Bid Periods 02-2027 (25 January to 28 February 2027) drawn
from the same model, with the pilots, calendar, first week, schedule, pay, costs, training, route and advisory
as the documents give them for this period. Each period is scored on its total cost as the share of the possible
saving you capture: zero at what current practice (the desk guide table in starter_policy.py) costs in the same
period, full marks at what a plan costs that knew every open duty and every open-time pickup of that period in
advance. No policy that has to publish reserve days a week ahead can reach full marks; every dollar counts. A
period in which a reserve line rule of the collective agreement is broken, or in which the policy fails, returns
an order the model cannot read or breaks the time limits, scores zero.