Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ cff-version: 1.2.0
message: "If you use this teaching material, or the models in it, please cite it as below."
title: "Teaching notebooks for IE 3315, IE 5301 and REE 4301"
abstract: >-
Seventeen executed teaching notebooks and an accompanying Python package,
Eighteen executed teaching notebooks and an accompanying Python package,
organised by subject across three courses in industrial engineering and energy
systems modelling. Each notebook builds its model by hand and then asserts
agreement with the packaged implementation, so the two cannot drift apart
Expand Down
2 changes: 1 addition & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ They belong with the repository. Moved twice so far: to `C:\dev\` on 2026-09-05,

## Status, measured 2026-09-05

Seventeen notebooks across twelve subjects (`02` empty on purpose), sixteen package modules, thirty-
Eighteen notebooks (seventeen as of 2026-09-05) across twelve subjects (`02` empty on purpose), sixteen package modules, thirty-
odd tables in `data/raw/`, 170 tests, and `tools/check_notebooks.py`. README.md has the table.

**What to run before believing anything:** `python -m pytest tests/ -q`,
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ ahead of LP formulation, which is backwards.

## What is here, measured 2026-09-05

Seventeen teaching notebooks in twelve subjects, each with its package module, its tables and its
Eighteen teaching notebooks in twelve subjects, each with its package module, its tables and its
tests. `02_simplex_and_bases` is empty on purpose. Every notebook ships executed, ends in the
agreement assertion, and passes `tools/check_notebooks.py`.

Expand All @@ -139,7 +139,7 @@ agreement assertion, and passes `tools/check_notebooks.py`.
| 07 | `newsvendor` | `newsvendor`, `data` |
| 08 | `monte_carlo` | `montecarlo` |
| 09 | `markov_and_queues` | `markov`, `queueing` |
| 10 | `zero_sum_game` | `games` |
| 10 | `zero_sum_game`, `saddle_points` | `games` |
| 11 | `capital_budgeting` | `capital_budgeting` |
| 12 | `dispatch_to_pypsa` (own kernel — see its README) | `energy` |
| 13 | `sourcing_and_resilience` | `sourcing` |
Expand Down
3 changes: 3 additions & 0 deletions data/raw/coin_2x2.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
row,heads,tails
heads,1,-1
tails,-1,1
4 changes: 4 additions & 0 deletions data/raw/flu_advertising_3x4.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
row,B1,B2,B3,B4
A1,8,-2,9,-3
A2,6,5,6,8
A3,-2,4,-9,5
10 changes: 8 additions & 2 deletions notebooks/10_game_theory/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,18 @@

`zero_sum_game.ipynb` — a two-person zero-sum game as a pair of dual LPs. Package: `orteach.games`.

`saddle_points.ipynb` — when a game needs an LP at all: the coin game, the flu-medicine advertising
game from Taha (a saddle point at TV against TV), and the same game with that one entry changed,
which removes the saddle point (value 42/17). Same package; tables `coin_2x2.csv` and
`flu_advertising_3x4.csv`.

## Non-zero-sum games with a planner are in the advopt repository

The planner-and-game sequence — a cooperative benchmark against competing firms, best response and
collusion — is the lithium supply-chain library's, and stays there:

https://github.com/sear-labs/advopt-lithiumsc → 04ab_planner_and_game, and lithium/games.py

The IE 4315 zero-sum notebook (`04_Zero_Sum_Game_LP.ipynb`, in the Curriculum Working Folder) is not
this library's course and is not migrated.
`saddle_points.ipynb` migrates the three examples of `04_Zero_Sum_Game_LP.ipynb`, the notebook IE 3315
and IE 5301 use in 2026 (in each course's code folder): same games, same numbers, built by hand
and checked against `orteach.games` instead of by a helper defined before the narration.
Loading
Loading