Repository navigation
docs: two how-tos say how to make a solve faster and how to solve many scenarios - #1985
Merged
FBumann merged 6 commits intoOct 12, 2026
Conversation
…y scenarios "Making a solve faster" lists each way with what it costs: keeping the model loaded, starting from an earlier answer, many small models, a MIP gap, relaxing integers, windows, decomposition and a smaller model. "Solving many scenarios" takes the scenario steps the last tutorial no longer has. The warm-start page becomes "Starting from an earlier answer", and its section on many small models moves to the new page. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Wrzfzr2yLiZFMv19fzokoy
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Wrzfzr2yLiZFMv19fzokoy
Documentation build overview
46 files changed ·
|
Merging this PR will not alter performance
Comparing Footnotes
|
…e/quirky-fermat-n0zzum-docs-18-faster
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Wrzfzr2yLiZFMv19fzokoy
…e/quirky-fermat-n0zzum-docs-18-faster
…e/quirky-fermat-n0zzum-docs-18-faster
FBumann
added this pull request to stack #1979
October 12, 2026 07:08
FBumann
merged commit Oct 12, 2026
0e759ab
into
claude/quirky-fermat-n0zzum-docs-4-reference
12 checks passed
FBumann
added a commit
that referenced
this pull request
Oct 12, 2026
…ge instead (#1987) > **Prompt:** The language also should go. Reference overall should not duplicate tutorials/how to! Its the lookup! > > **Prompt:** The language (mathspec) should instead be linked right on the homepage i think! > [!NOTE] > The following content was generated by AI. The language moves from the Reference sidebar to the home page, as a hero button and a sentence above the model file. The API, data and sweeps pages lose the examples that repeated the tutorials and how-tos. <details><summary>What went, what stayed, and what ran</summary> **The language, on the home page.** It has a third hero button, "The language", beside "Your first model" and "Browse the examples". It also has one sentence above the model file: the file is written in mathspec, and its reference lists everything a file may hold. **Cut from Reference:** | Page | What | Where a reader finds it now | |---|---|---| | nav | "The language" link to mathspec | the home page; the API page's first line; every construct link | | `reference/api.md` | the check / solve / primal / dual example | Your first model | | `reference/data.md` | the `sps.solve(...)` example with three sources | Your data, Preparing the data | | `reference/sweeps.md` | the opening scenario sweep | Solving many scenarios (now linked) | | `reference/sweeps.md` | the first of three identical carried `EachWindow` blocks | Carrying state between slices, on the same page | **Fixed:** the glossary's link to the warm-start how-to used its old title. **Kept on purpose:** each code line that shows one keyword's spelling (`steps` as a sequence, `axis.slices`, `to_dict`, `per_window`, `spill_to`, `archive=`, `start=`). The rule tables. The sink table. The `executor` table. These are what a reader looks up. I left the Examples group under Reference, where the nav already had it. **Not done:** the how-tos still repeat some reference rules. For example, "Starting from an earlier answer" has a sweep section beside the reference's "Starting slices", and the parallel how-to repeats "N × peak". That is the other direction, so I left it. **Gates.** - `zensical build --strict`: no issues. - `pytest tests/test_docs_site.py tests/test_doc_examples.py`: passed. - `ruff format --check`: clean. - The full suite was not run. **Stack:** … ← #1985 ← this PR. </details> 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01Wrzfzr2yLiZFMv19fzokoy --------- Co-authored-by: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
The following content was generated by AI.
There are two new how-tos. "Making a solve faster" lists eight ways, each with whether it keeps the optimum and what it costs. "Solving many scenarios" takes in the scenario steps that the last tutorial dropped.
What each page holds, what moved, and what ran
Making a solve faster (
docs/howto/faster.md). One table, and then one short section for each way. The ways that keep the answer come first:mip_rel_gap)Each section has a code block and links to the page that has the detail. The measurements for starting from an earlier answer (#1884, #815) stay on that page, and the new page links there instead of copying them.
Solving many scenarios (
docs/howto/scenarios.md). It puts the scenarios in one table with ascenariocolumn and solves once for each label withEachCoordinate. It reads the answers with that column, varies a second table with the same column, and links the parallel how-to. The page usesdispatch.yamland the tutorial data: mild 10500, cold 16530, and cold with gas at 80 costs 24540.Moved.
warm-start.mdis now "Starting from an earlier answer", which is what it covers. Its section "Build many small models faster" moves to the new page. The nav lists the three pages together. "Change it and solve again" and the last tutorial link the new titles.Checked by hand, not by the suite. The HiGHS option name
mip_rel_gap(the solver accepts it, and the commitment model solves to 14000), and the relaxed commitment bound (10875 below 14000). The code blocks on the faster page do not run in the build, as on the warm-start page.Tests.
tests/test_tutorials.pyruns the scenarios page. It checks the two objectives, that gas covers the extra cold load, and that the second table changes only the cold scenario.Gates.
zensical build --strict: no issues.pytest tests/test_tutorials.py tests/test_docs_site.py tests/test_tutorial_models.py: 35 passed.ruff checkandruff format --check: clean.Stack: … ← #1984 ← this PR.
🤖 Generated with Claude Code
https://claude.ai/code/session_01Wrzfzr2yLiZFMv19fzokoy
Generated by Claude Code