Results reported in the manuscript
Reference values from Tables 5–10 (colorectal surgery division, 10 physicians, 111 days, N = 15 scenarios, 1,000 out-of-sample scenarios). Use them to check a run of this tool. The tabs Data → Run → Results run the same pipeline on any dataset.
Efficiency frontier · avg patients/day vs β
y-axis capped at 120; at β = 0 the clinic queue is 682.5 and at β = 1 the surgery queue is 548.5.
Benchmarks at β = 0.6 (Table 6–7)
| Method | Clinic | Surgery | Total |
|---|---|---|---|
| DES heuristic | 17.5 | 98.3 | 115.8 |
| EV deterministic (EEV) | 5.6 | 48.9 | 54.52 |
| SAA model (RP) | 4.23 | 41.74 | 45.97 |
| Wait-and-see (WS) | – | – | 34.94 |
Continuity of care (Table 10)
| Configuration | Clinic | Surgery | Total |
|---|---|---|---|
| Full enforcement | 4.23 | 41.74 | 45.97 |
| Partial relax 20% | 4.18 | 33.20 | 37.38 |
| Partial relax 50% | 4.15 | 25.60 | 29.75 |
| Full pooling | 4.10 | 18.30 | 22.40 |
Observed vs optimized · days 84–111 (Table 8)
| Stage | Observed | β = 0.6 | Reduction |
|---|---|---|---|
| Clinic | 5.84 | 0.37 | 93.7% |
| Surgery | 117.76 | 36.46 | 69.0% |
Reproducing this table needs the division's observed schedule, which is not public; import it as CSV in the Data tab.
1 · Case data
Start from the paper's case or import your own division. Every field maps to a symbol of the model (Table 2). The editor and the JSON stay in sync.
Division and horizon
Demand λt — mean referrals per weekday (Poisson)
Capacity κk (appointments per physician-day) and initial queues
Minimum assignments nkp (days over the horizon)
The first row applies to every physician; edit a physician's row to override it. Availability iptk and pre-committed (fixed) days can be set in the JSON (availability, fixed).
Case JSON (advanced: availability, fixed days, per-day OR rooms)
2 · Run the pipeline
SAA optimisation for every β → out-of-sample evaluation → β* → DES, EV/EEV and wait-and-see baselines (VSS, EVPI) → observed schedule comparison → continuity-of-care relaxation. Runs in this browser with HiGHS compiled to WebAssembly; nothing is sent to a server.
results.json in the Results tab.3 · Results
No results yet. Run the pipeline or import a results.json produced by the Python package.
Efficiency frontier · out-of-sample
Pareto frontier · clinic vs surgery
Table 5 · performance across β
Average (std) and worst case of the daily queue, average idle capacity; out-of-sample. Grey: paper value for the same β.
Tables 6–7 · benchmarks at β*
Daily queues at β* (mean over scenarios)
Table 8 · observed vs optimized
Table 10 · continuity of care
Schedules xptk
Python package & GitHub repository
Code: github.com/igor-peres/dsf-physician-assignment · original AIMMS version: janainamarchesi/stochastic-physician-assignment.
The same model and pipeline as a Python package (dsf) using HiGHS through highspy. It writes results.json in the format this page imports, so long runs happen on a workstation and the results are browsed here.
Run
pip install -r requirements.txt
# full pipeline on the paper's case
python -m dsf data/crs_case.json -o results/crs
# your division, SAA convergence first, observed schedule
python -m dsf my_case.json -o results/mine --saa \
--observed observed.csv --observed-window 83,110
# exact second stage (integer y, d_sur; Eqs. 11-12)
python -m dsf data/crs_case.json --integer-recourse
# monolithic model instead of rolling horizon
python -m dsf data/crs_case.json --window 999 --time-limit 3600Repository layout
dsf/ model, scenarios, SAA, baselines, pipeline data.py case loader and checks model.py Eqs. (2)-(14), continuity relaxation rolling.py rolling-horizon (fix-and-optimise) evaluate.py second-stage re-solve, Table 5 metrics baselines.py DES rule (Eq. 15), EV/EEV, WS saa.py SAA convergence (Algorithm 1) pipeline.py end-to-end run -> results.json data/ crs_case.json, template + schema docs/ this page (GitHub Pages) tests/ pytest suite
Fidelity notes
All published parameters (|P| = 10, |T| = 111, λt, α = 0.68, q = 3, u = 4, l = 1, κC = 8, κOR = 3, fcli = 13, fpsur from Table 4) are in data/crs_case.json. The minimum assignments nkp, physician availability iptk, the pre-committed months and the 2OR capacity were not published, so the file carries labelled placeholders; numbers match the paper only once the division's own values are entered. The browser engine uses a continuous second stage; the Python package offers the integer one. Extreme β (0 and 1) leave one queue without cost, so their values depend on the solver's tie-breaking, in AIMMS/Gurobi as here.