Examples#
Each page here shows one whole model as the file and as the math it prints.
Every model is a file under examples/ in the repository.
- Least-cost dispatch is the smallest whole model. It has a balance, a bound and a cost to minimise.
- Unit commitment adds a start-up ramp. One quantity is defined by region, so a single inequality covers both regimes.
- One construct per model declares each operator in the smallest file that can, and prints the equation beside it.
- PyPSA in one file states the model
n.optimize()builds, one declaration at a time. PyPSA's name for each row sits beside the YAML and the equation.
The math on these pages is printed by the typesetter from the file above it. See Typeset the math to print your own.