Skip to content

Fix stale docs examples on current SciMLBase#1246

Merged
ChrisRackauckas merged 1 commit into
SciML:masterfrom
ChrisRackauckas-Claude:fix-current-ci-failures-20260708
Jul 8, 2026
Merged

Fix stale docs examples on current SciMLBase#1246
ChrisRackauckas merged 1 commit into
SciML:masterfrom
ChrisRackauckas-Claude:fix-current-ci-failures-20260708

Conversation

@ChrisRackauckas-Claude

Copy link
Copy Markdown
Contributor

This PR should be ignored until reviewed by @ChrisRackauckas.

Summary

  • update the multistart ensemble tutorial to use the current prob_func(prob, ctx) callback API
  • read ensemble objectives through sol.u instead of indexing into the minimizer values
  • use res1.u instead of the removed OptimizationSolution.minimizer field

Verification

  • timeout 3600 /home/crackauc/.juliaup/bin/julia +1.12 --project=docs -e '...' for the edited ensemble example: passed, observed minimum((s.objective for s = sol.u)) = 0.01789620302945039
  • timeout 3600 /home/crackauc/.juliaup/bin/julia +1.12 --project=docs -e '...' for the edited remake/composition example: passed, observed res2.objective = 236.8767965046074
  • timeout 3600 /home/crackauc/.juliaup/bin/julia +1.12 --project=docs docs/make.jl: passed locally; Documenter finished rendering HTML and skipped deployment outside CI

Update the ensemble tutorial for the current EnsembleContext callback API and use the public solution fields exposed by current OptimizationSolution and EnsembleSolution values.

Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com>
@ChrisRackauckas ChrisRackauckas marked this pull request as ready for review July 8, 2026 12:38
@ChrisRackauckas ChrisRackauckas merged commit 42fd2df into SciML:master Jul 8, 2026
6 of 7 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.

2 participants