Skip to content

perf(test): ModelingToolkit solves with a quasi-Newton Hessian, warmed up on the smoke grid (#435) - #472

Merged
ocots merged 1 commit into
mainfrom
perf/mtk-solver
Nov 20, 2026
Merged

ocots merged 1 commit into
mainfrom
perf/mtk-solver

Conversation

@ocots

@ocots ocots commented Nov 20, 2026

Copy link
Copy Markdown
Member

Refs #435, #449 (T5). Conventions: ct-conventions v0.14.0, ct-agents v0.5.0.

Summary

The ModelingToolkit cron kills its runner (Ubuntu) or times out (Windows) on bioreactor (run 44747569284). Two causes in the tests, aligned here with what Corleone does in its own tests and examples:

  • the Hessian: Ipopt's default, exact, by ForwardDiff through the integration of every control interval, dense; now hessian_approximation="limited-memory", as in every example of Corleone;
  • two solves on the default grid per problem, the first to compile: the convergence test now takes a warmup of the adapter when it has one, and ModelingToolkit's compiles on the smoke grid, a few iterations. The other modelings are unchanged.

This alone does not make bioreactor converge on its grid of 600 steps (see the table): the coarser grid of ModelingToolkit is #473 (stacked on this one).

bioreactor, MTK cron, local grid result time of the solve peak memory
before 600 not converged (MaxTime, 2 iterations) 682 s 7.5 GB
this PR 600 not converged (MaxTime, 6 iterations) 1322 s 5.6 GB
this PR + #473 50 converged (239 iterations) 24 s 2.2 GB

Test plan

  • Pkg.test(; test_args=["ModelingToolkit", "cron", "problem=bioreactor"]), measured with /usr/bin/time -l (table above).
  • CI.

🤖 Generated with Claude Code

…armed up on the smoke grid (#435)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ocots ocots added the run ci github-runner Trigger the CI workflow on GitHub-hosted runners label Nov 20, 2026
@ocots
ocots merged commit 6d2bb70 into main Nov 20, 2026
17 of 18 checks passed
@ocots
ocots deleted the perf/mtk-solver branch November 20, 2026 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

run ci github-runner Trigger the CI workflow on GitHub-hosted runners

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant