Skip to content

Release 0.10.3. Fix VI with Gauss-Seidel in parallel, add getIterations() and input checks, replace unit tests - #13

Merged
areenberg merged 13 commits into
masterfrom
anders_development
Nov 10, 2026
Merged

areenberg merged 13 commits into
masterfrom
anders_development

Conversation

@areenberg

Copy link
Copy Markdown
Owner
  • Fix: Value iteration with Gauss-Seidel updates and parallel=True now runs the same serial in-place updates as parallel=False.
  • New: getIterations() returns the number of iterations (policy improvement steps) of the last solve.
  • Input checks:
    • solve() rejects:
      • a tolerance outside (0, 1),
      • average reward with Gauss-Seidel or SOR updates,
      • initial policies or value vectors of the wrong length, or with invalid actions.
    • A second mdp() on the same model object now stops with an error instead of crashing.
    • Solving a model again prints a note that it starts from the previous solution.
  • Tests:
    • The old test1/test2 (and their _pip versions) are replaced by seven new tests: imports, VI, PI, MPI, 30 random models, a large model, and reuse of a model object. They check the results against exact solutions.
    • CI runs them against every built wheel.
  • Version bumped to 0.10.3.

@areenberg
areenberg merged commit aa9f711 into master Nov 10, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant