Skip to content

test: cover multi-objective optimization acceptance cases - #5196

Draft
ChrisRackauckas-Claude wants to merge 6 commits into
SciML:masterfrom
ChrisRackauckas-Claude:agent/5150-multiobjective
Draft

ChrisRackauckas-Claude wants to merge 6 commits into
SciML:masterfrom
ChrisRackauckas-Claude:agent/5150-multiobjective

Conversation

@ChrisRackauckas-Claude

@ChrisRackauckas-Claude ChrisRackauckas-Claude commented Sep 23, 2026 •

Copy link
Copy Markdown
Member

This test-only PR covers the existing multi-objective OptimizationProblem(sys, op; multiobjective = true) API: individual costs, analytic Jacobians with whole array unknowns, weighted-sum agreement, and a discretized Poisson weighted solve checked against normal equations and the cost-vector Jacobian. A bounded NSGA-II test checks that OptimizationEvolutionary consumes the generated objectives.

Depends on JuliaSymbolics/Symbolics.jl#2013, which fixes the hash-order-dependent nested-reduction gradient failure tracked in #5199. The unchanged Poisson test now passes locally on both Julia LTS and 1.11 using that Symbolics checkout. Keep this draft blocked until the Symbolics fix is reviewed, merged, and released, then raise the relevant dependency floor and validate with the released dependency. A cross-repository dependency cannot be expressed as this Git branch's base; the base remains MTK master.

OptimizationEvolutionary/Evolutionary and StableRNGs are MIT-licensed test dependencies. No production source or public API changes in this MTK PR.

Verification

From the MTK repository root, with TMPDIR set to the job tmp directory, OPENBLAS_NUM_THREADS=4, and a job-local writable depot followed by the shared dependency depot:

julia +1.10 --project=../scratch/5199/env -e 'using Test, SafeTestsets; @safetestset "MultiObjective Optimization" begin include("lib/ModelingToolkitBase/test/optimization/multiobjective.jl") end'
julia +1.11 --project=../scratch/5199/env -e 'using Test, SafeTestsets; @safetestset "MultiObjective Optimization" begin include("lib/ModelingToolkitBase/test/optimization/multiobjective.jl") end'

The scratch environment develops MTK from this branch and Symbolics at eff957511cd194d5586972ebf377d281a1c59e60; it uses SymbolicUtils 4.47.2. These are tests of the proposed upstream fix, not a claim that registered dependencies already work.

# Julia 1.10.12 — exit 0
Test Summary:               | Pass  Total      Time
MultiObjective Optimization |   97     97  15m17.1s
# Julia 1.11.9 — exit 0
Test Summary:               | Pass  Total      Time
MultiObjective Optimization |   97     97  24m22.6s

Before the Symbolics fix, round-2 review reproduced 94 passes and 1 error twice on Julia 1.10.12:

Differentiation of `u[1]` inside lazy array expressions is not supported; scalarize the expression with `Symbolics.scalarize` first

The upstream PR includes a standalone regression that fails on clean Symbolics master on both versions (6 pass, 1 failure, 6 errors), then passes with the fix (13/13); its full differentiation test file passes 380/380 on each version.

Earlier verification retained from this PR and its round-2 review:

  • Transposing the generated multi-objective Jacobian makes the array assertion fail and the Poisson checks reject the dimensions.
  • MTK QA: JET 54/54 and Aqua 21/21, exit 0 in round-2's scratch checkout.
  • Runic and typos on this MTK diff: exit 0.

Limits and reviewer notes

  • Full GROUP=Optimization remains unverified: Pyomo/CasADi precompilation raises LookupError: no codec search functions registered in the local environment.
  • No new MTK QA run with the patched Symbolics dependency; no docs, downstream NeuralPDE, other Julia versions, or OptimizationBase AD coverage.
  • The Symbolics fix passes its full local Core suite (17548 passes plus 40 interface assertions, with 366 existing broken markers) and both CI Core and QA configurations. Its CI finished with 25 successful checks (including all four MTK downstream groups) and two failures. The docs and NeuralPDE NNPDE2 failures match exact master; the prerequisite PR records the evidence and baseline investigations.
  • The Symbolics fix's local Julia 1.11 QA run fails on both its feature branch and clean master with identical failures (18 pass, 1 persistent-task failure, 1 ExplicitImports error). Details are in the prerequisite PR.
  • NSGA-II has no Pareto-front convergence assertion: the earlier 200-seed sweep did not establish convergence at a tolerance justified by the problem. The committed test checks a nonempty returned population and analytic objective values at every returned point. Do not read it as satisfying a stronger Pareto-convergence contract.
  • OptimizationBase AD support remains outside this MTK test PR. Review the dependency release floor and those remaining acceptance items before closing the tracking issue.

Part of #5150.

Please ignore this draft until reviewed by @ChrisRackauckas.

Links

Risk assessment

  • Risk: medium
  • Blast radius: this diff changes tests and the optimization test environment; the prerequisite affects Symbolics scalar differentiation and Hessian sparsity.
  • Evidence: unchanged 97/97 MTK assertions pass on Julia 1.10.12 and 1.11.9 with the proposed Symbolics fix; exact upstream failing-before/passing-after regression evidence is linked above.
  • Independent review: Codex gpt-6-astra round 2 rated this medium, high confidence, and returned CHANGES for the LTS failure. Its review remains the last verdict; the prerequisite fix has not received independent review. Local review record: <local>/REVIEW.md.
  • Merge: needs human review; blocked on upstream release, registered-dependency validation, and a clean independent re-review. The reproduced baseline QA failures are documented rather than treated as regressions. Never auto-merge this draft.

🤖 Updated with Codex CLI 0.157.1 (model: gpt-6-astra); local session, transcript at /log-cont5.txt. Earlier branch commits retain their opencode, Cursor, and Claude Code attribution.

Review findings addressed

  1. [P1] The Poisson acceptance test fails with registered Symbolics — fixed in MTK rather than by waiting for a Symbolics release. calculate_cost_gradient, calculate_cost_hessian and calculate_multiobjective_hessian now differentiate Symbolics.scalarize(expand_dims_reductions(obj)) (internal helper differentiable_cost in lib/ModelingToolkitBase/src/systems/codegen.jl). That is the preparation canonical_constraints already gives constraint rows, and the remedy Symbolics' own error message prescribes. The Poisson testset is unchanged: the array cost, grad = true and the gradient assertion are all retained. A new testset, derivatives of costs with array reductions nested in scalar expressions, uses 2 * sum(A * x). It fails deterministically with registered Symbolics, unlike the Poisson case, which depends on hash order (see verification).

This supersedes two statements above:

The cost path of #5199 is covered. Constraint Hessians of scalar constraints containing nested lazy reductions are not changed here.

Verification (registered dependencies: Symbolics 7.45.0, SymbolicUtils 4.51.0, OptimizationEvolutionary 0.4.14; Julia 1.10.12)

multiobjective.jl run alone in an environment with those registered versions. First without the codegen.jl change, then with it:

# before (codegen.jl change stashed)
derivatives of costs with array reductions nested in scalar expressions | 2 errors
  Differentiation of `x[1]` inside lazy array expressions is not supported; scalarize the expression with `Symbolics.scalarize` first
MultiObjective Optimization | Pass 97  Error 2  Total 99   (exit 1)
# after
MultiObjective Optimization | Pass 107  Total 107   (exit 0)

In a first environment, which resolved OptimizationEvolutionary 0.4.10 (below this PR's compat floor), the unfixed Poisson testset reproduced the reviewer's error: 3 pass, 1 error. In the second environment, with 0.4.14 and a recompiled cache, the unfixed Poisson testset passed 6/6. That is the hash-order dependence described in issue 5199, and it is why the deterministic testset was added.

Each changed call site fails on its own without the change. With the registered versions, raw Symbolics.gradient(cost(sys), dvs), Symbolics.sparsehessian(cost(sys), dvs) and Symbolics.sparsehessian(costs(sys)[i], dvs) all throw the error above for that system. calculate_cost_gradient, calculate_cost_hessian(; sparse = true) and calculate_multiobjective_hessian(; sparse = true) succeed.

GROUP=Optimization julia +1.10 --project -e 'using Pkg; Pkg.test()' in lib/ModelingToolkitBase (real test/optimization environment, Symbolics 7.45.0):

OptimizationSystem Test     | Pass 179  Broken 1  Total 180   (the broken one is the existing @test_broken at optimizationsystem.jl:254)
MultiObjective Optimization | Pass 107            Total 107
InfiniteOpt Extension Test  | Pass   5            Total   5
Dynamic Optimization Collocation Solvers | Error 1  (CasADi/Pyomo fail to precompile: the local conda package cache holds truncated Python stdlib files)

dynamic_optimization.jl was then rerun alone in the same environment with a fresh conda package cache:

Dynamic Optimization Collocation Solvers | Pass 117  Total 117

Julia 1.13.0, multiobjective.jl alone, with registered Symbolics 7.46.0 (newer than the 7.45.0 used by the review), SymbolicUtils 4.51.0: MultiObjective Optimization | Pass 107 Total 107. Symbolics 7.46.0 still throws for the raw Symbolics.gradient and Symbolics.sparsehessian calls above, so the latest release also needs this change.

Runic (--check) and typos on both changed files: exit 0.

Not verified

  • Julia 1.11, 1.12 and pre were not run locally. The full Optimization group ran only on 1.10.
  • QA was not rerun. This commit adds no export, public name or dependency.
  • No docs build: no docstring of an exported or documented name changed.
  • No downstream packages were run.

Risk assessment (for the commit added in this round)

  • Risk: medium
  • Blast radius: every symbolic cost gradient or Hessian generated for OptimizationFunction/OptimizationProblem (grad, hess, or sparse = true, which builds the Hessian prototype) and for MultiObjectiveOptimizationFunction (hess, sparse).
    • For scalar costs, the existing OptimizationSystem tests (grad, hess, sparse Hessians) pass unchanged.
    • Costs with array operations now produce gradient and Hessian expressions in scalarized form.
    • No downstream package tests were run.
  • Evidence: failing-before/passing-after above, plus the Optimization group results.
  • Independent review: none yet for this commit. The earlier Codex review covered only the test-only head fb613e7955.
  • Merge: needs human review and a fresh independent review.

🤖 Posted by an AI agent — harness: Claude Code 2.1.301 · model: claude-opus-5-5
Conversation: local session ID b63bd656-b711-4e26-b5d7-ba573f27b567 (headless, no URL)

🤖 Automated review section from an AI agent running as Chris Rackauckas's account — not written or reviewed by Chris.

Risk assessment (independent review, Codex gpt-6.1-sol, head 4f2b48c)

  • Verdict: MERGE
  • Rating: Codex gpt-6.1-sol rated it medium (M2) at head 4f2b48c
  • Risk: medium (M2: preprocessing changes numerical derivatives returned for existing dimensioned-reduction objectives, including cases that previously returned an incorrect gradient without erroring).
  • Blast radius: Symbolic scalar-cost gradients and dense/sparse Hessians, multiobjective Hessians, and Hessian sparsity prototypes used by optimization problem construction. These are peripheral optimization paths; the diff does not change System construction or mtkcompile. No public signature/export changes, new production dependencies, skipped tests, or relaxed assertions. The new helper is internal; the new test dependencies are MIT-licensed.
  • Evidence: Read both linked MTK issues, the complete three-file diff from git diff origin/HEAD...HEAD, and the relevant callers and dependency APIs. git diff --check origin/HEAD...HEAD passed; the checkout remains clean. Targeted local results and CI comparisons follow. G1 pass: hand-derived gradient/Hessian formulas, the Poisson normal-equation solution, and independent dimensioned-reduction checks. G2 not applicable: no GPU kernels, AD rules, Reactant tracing, or MPI implementation paths change; symbolic differentiation is not an AD backend rule change. G3 not applicable: no shared-state/cache/threading/default implementation changes.
  • Merge: merge from the code-review perspective; medium risk requires Chris's decision under the supplied policy. This is not an auto-merge authorization or a claim that every CI check completed successfully.

All local Julia runs used Julia 1.10.12, the requested job-local depot followed by $HOME/.julia, four Julia threads, four BLAS threads, disabled automatic package precompilation, scratch-local TMPDIR, a 3600-second timeout, and one launched Julia process at a time. The commands were:

S=<local path>
# Each command also had the environment settings described above.
timeout 3600 <local path> +1.10 --compiled-modules=no --project="$S/env-head" "$S/test-head.jl"
timeout 3600 <local path> +1.10 --compiled-modules=no --compile=min -O0 --project="$S/env-head" "$S/probe.jl"
timeout 3600 <local path> +1.10 --compiled-modules=no --compile=min -O0 --project="$S/env-head-old" "$S/head-old-probe.jl"
timeout 3600 <local path> +1.10 --compiled-modules=no --compile=min -O0 --project="$S/env-base-old" "$S/test-base.jl"

test-head.jl includes the exact committed multiobjective.jl: 107 passed, exit 0, 6m55.2s, with registered Symbolics 7.45.0, SymbolicUtils 4.51.0 and OptimizationEvolutionary 0.4.15. The separate dimensioned-reduction probe passed 8/8, exit 0, with those dependencies.

For the same committed regression testset extracted to new-regression.jl, using registered Symbolics 7.45.0 / SymbolicUtils 4.47.2 / Moshi 0.3.9 on both sides:

origin/HEAD 808a4f13 (archived under scratch/base):
  derivatives of costs with array reductions nested in scalar expressions | 2 errors
  Differentiation of `x[1]` inside lazy array expressions is not supported ...
head 4f2b48c:
  derivatives of costs with array reductions nested in scalar expressions | 10 passed

The independent probe uses sum(abs2, sum(x; dims=1)) at x = [1 3; 2 4]. Base evaluates the objective as 58 but generates gradient [20,20,20,20]; head produces the analytic [6,6,14,14]. Integer dimensions 1 and 2, with scalar multipliers 1 and 2, all pass on head. The exploratory older-dependency command exits 1 because four additional tuple-dims cases fail during expression construction: SymbolicUtils 4.47.2 does not accept tuple dimensions. The same constructor errors occur on base; they are not a PR regression. Its relevant head testsets report 10 committed-regression passes plus four integer-dimension passes. The combined base command exits 1 with two assertion failures and eight errors, including those same four unsupported tuple cases. Logs are in scratch/head.log, head-probe.log, head-old-probe.log, and base.log.

The reported CI problems were checked against actual default-branch logs, not accepted from the PR description:

  • Docs: PR run 38913763435 fails solely on the OpenModelica link-check timeout; default 9082f85, run 38950292112, has the same URL, curl exit 28, and Documenter [:linkcheck] termination.
  • SciMLBase/SymbolicIndexingInterface: PR job 117015870017 and default 808a4f1 job 117462512807 both report 3747 passes and the same two BoundsErrors at comprehensive_indexing.jl:127,164. A separate read-only baseline investigation also confirmed identical older default failures. It could not identify an introducing commit because historical jobs float the downstream checkout, dependency resolution, and Julia version.
  • Optimization downgrade: PR job 117213925303 is cancelled after approximately six hours of package testing. Default 9082f85 job 117408488066 is likewise cancelled after approximately six hours. Neither is a completed passing downgrade run; the ordinary head Optimization jobs on LTS, current and pre are successful.

🤖 Posted by an AI agent — harness: Codex CLI 0.162.1 · model: gpt-6.1-sol
Conversation: local headless review run (no public session URL); transcript kept by the fleet master.

🤖 Automated review section from an AI agent running as Chris Rackauckas's account — not written or reviewed by Chris.

Risk assessment (independent review, Codex CLI 0.164.0 gpt-6.1-sol, slot 1, head 4f2b48c)

  • Risk: medium (M2: Preprocessing can correct numerical derivatives on already-working dimensioned-reduction objectives; independent analytic derivative evidence is present.)
  • Verdict: MERGE
  • Session: 01a18da8-3a3a-7620-b234-342bf3d4309e
  • Blocking priorities: none

Review round 2, written by the reviewer named above (Codex CLI 0.164.0 / gpt-6.1-sol) in a session other than the PR author's, and copied here by the posting agent without change to its findings. The posting agent did not re-run the reviewer's commands.

Summary: Scalarizes nested cost reductions before differentiation and adds multiobjective acceptance tests. The complete changed file passes locally with analytic derivative and independent Poisson references, while the target base errors on the added nested-reduction cases.

Blast radius: calculate_cost_gradient, calculate_cost_hessian, multiobjective Hessians and optimization test integration.

Evidence: Julia 1.13.2: the complete head multiobjective.jl passes 107/107 assertions, including 10 nested-reduction derivative checks, six Poisson checks and 51 seeded NSGA-II consumption assertions. On origin/master the new nested-reduction testset errors twice after the earlier testsets pass. G1 uses exact quadratic gradients/Hessians and a separately solved Poisson normal equation; G2 is exercised locally and in the previously inspected Optimization CI. G3 does not apply to this stateless differentiation change; NSGA-II assertions are not claimed as a Pareto convergence study. The description remains inaccurate about production source scope.

Blocking findings

None.

Non-blocking findings

  1. lib/ModelingToolkitBase/src/systems/codegen.jl:1044: Update the title and body, which still say test-only and no production source changes. The differentiable_cost helper changes three production differentiation paths; describe that fix and its actual dependency assumptions.

What I ran

First-round read-only inspection, retained for this unchanged head. Repository commands below ran in the isolated checkout and exited 0; rev-parse HEAD matched the live head metadata. Base is the fetched target-branch tip at review time, while the three-dot diff uses the merge base. Newest non-merge commit trailers, rather than body attribution, supply AUTHOR_GRADE provenance.

git fetch origin +refs/pull/5196/head:refs/remotes/pr/5196 +refs/heads/master:refs/remotes/origin/master
git checkout --detach pr/5196
git rev-parse HEAD
git rev-parse origin/master
git diff --check origin/master...HEAD
git log -1 --no-merges --format=%B
git diff origin/master...HEAD

Read-only GitHub inspection (PR views exit 0; pr checks exits 1 because failures exist):

gh pr view 5196 --repo SciML/ModelingToolkit.jl --json number,url,state,isDraft,headRefOid,baseRefName,baseRefOid,title,files,commits,statusCheckRollup
gh pr view 5196 --repo SciML/ModelingToolkit.jl --json body,closingIssuesReferences
gh pr checks 5196 --repo SciML/ModelingToolkit.jl
gh issue view 5150 --repo SciML/ModelingToolkit.jl --json number,title,body,state,url
gh issue view 5199 --repo SciML/ModelingToolkit.jl --json number,title,body,state,url
gh run view 38913763435 --repo SciML/ModelingToolkit.jl --log-failed
gh run view 38913763498 --repo SciML/ModelingToolkit.jl --log-failed
gh run list --repo SciML/ModelingToolkit.jl --branch master --event push --limit 5 --json databaseId,headSha,conclusion,url,name
gh run view 38846662245 --repo SciML/ModelingToolkit.jl --log-failed
gh run view 38846662285 --repo SciML/ModelingToolkit.jl --log-failed
gh run view --repo SciML/ModelingToolkit.jl --job 117213585102 --log

CI check rollup at the captured head: {"CANCELLED": 1, "FAILURE": 2, "SKIPPED": 3, "SUCCESS": 105}. Log-retrieval exit codes are retrieval status, not test exit codes: successful retrieved jobs report tests passed; failed jobs remain failed. Failed-run logs were retrieved with a writable scratch XDG_CACHE_HOME. Unavailable logs are disclosed above. The recent default-branch five-run listing was also read; exact historical comparisons are identified in the evidence paragraph.

MTKBase Optimization CI log reports MultiObjective Optimization 107/107 and package tests passed. Exact analytic quadratic derivatives and the independent Poisson normal-equation solution are asserted. Docs and SII failures match historical master 38846662245/38846662285 signatures. The author's Symbolics-development prerequisite narrative is stale relative to the current MTK workaround; no private dependency checkout was used by this reviewer.

Inspected CI URLs: https://github.com/SciML/ModelingToolkit.jl/actions/runs/38913763435, https://github.com/SciML/ModelingToolkit.jl/actions/runs/38913763498, https://github.com/SciML/ModelingToolkit.jl/actions/runs/38913764407/job/117213585102, https://github.com/SciML/ModelingToolkit.jl/actions/runs/38846662245, https://github.com/SciML/ModelingToolkit.jl/actions/runs/38846662285.

Round 2 local execution:

All 20 live PRs were checked OPEN with unchanged reviewed heads before Julia execution. Each run checked out the exact detached SHA shown below. Julia 1.13.2 ran directly inside the inherited resource scope, with one Julia invocation at a time, four Julia threads and one BLAS thread. The isolated environment was created with Pkg.activate(temp=true) and Pkg.develop(path=...) for the checkout and its MTKBase subpackage, then persisted outside the checkout for dependency reuse. No test project or source was edited in the checkout.

The driver activates that environment, resolves compatible registered dependencies without updating registries, and includes each selected script in a fresh module. It catches only at the test-file boundary to record every selected result, then exits nonzero if any selected case failed. Assertions and tolerances are unchanged. --compiled-modules=existing reuses available dependency caches and loads uncached PR source; it does not disable tests.

base-master-basecontext-retry: detached 550a27cca63cbe6d7b64bcb2920440aaff9eaa55 (origin/master), process exit 1, 311.21 s.

git -C ModelingToolkit.jl checkout --detach origin/master
REVIEW_CASES='4902,4907,5121,5133,5136,5195,5196,5205,5215' \
JULIA_DEPOT_PATH="$PWD/depot:" JULIA_NUM_THREADS=4 OPENBLAS_NUM_THREADS=1 \
TMPDIR="$PWD/tmp" JULIA_NUM_PRECOMPILE_TASKS=1 JULIA_PKG_PRECOMPILE_AUTO=0 \
timeout 3600 julia --startup-file=no --compiled-modules=existing --depwarn=yes tmp/rerun/driver.jl

Resolved versions: SymbolicUtils 4.54.0, Symbolics 7.47.0, SciMLBase 3.58.0, JumpProcesses 10.0.1, NonlinearSolve 4.32.0, ModelingToolkit 11.47.0, ModelingToolkitTearing 1.20.7, ModelingToolkitBase 1.79.0, OptimizationBase 5.10.0.

head-5196: detached 4f2b48ce35e6fd93a3e74dc7acc3bd4f34000498 (pr/5196), process exit 0, 153.25 s.

git -C ModelingToolkit.jl checkout --detach pr/5196
REVIEW_CASES='5196' \
JULIA_DEPOT_PATH="$PWD/depot:" JULIA_NUM_THREADS=4 OPENBLAS_NUM_THREADS=1 \
TMPDIR="$PWD/tmp" JULIA_NUM_PRECOMPILE_TASKS=1 JULIA_PKG_PRECOMPILE_AUTO=0 \
timeout 3600 julia --startup-file=no --compiled-modules=existing --depwarn=yes tmp/rerun/driver.jl

Resolved versions: SymbolicUtils 4.54.0, Symbolics 7.47.0, SciMLBase 3.58.0, JumpProcesses 9.33.1, NonlinearSolve 4.32.0, ModelingToolkit 11.45.4, ModelingToolkitTearing 1.20.7, ModelingToolkitBase 1.77.4, OptimizationBase 5.10.0.

Exported the full lib/ModelingToolkitBase/test/optimization/multiobjective.jl from the PR and included it unchanged on both refs. Base: earlier 4+5+9+5+8+5 assertions pass, then the added nested-reduction derivative block errors twice and stops the file. Head: testset counts 4+5+9+5+8+5+10+6+51+4 = 107 passes, CASE_PASS 5196, process exit 0. All packages resolve from registered dependencies; no Symbolics development checkout was used.

What I did not verify

No whole suite, GPU, Reactant, MPI or exhaustive optimizer/AD-backend matrix was run. The complete changed multiobjective file and its generated derivatives were executed. The seeded stochastic test checks that the optimizer consumes generated objectives; it is not an independent claim of global Pareto convergence. A clean native-precompile cycle was not verified: the initial batch dependency workload errored during NonlinearSolveFirstOrder AD-backend selection. The recorded test commands use existing caches and JIT-load uncached PR source; no assertion was disabled.

🤖 Posted by an AI agent — harness: Claude Code · model: claude-sonnet-5-5
Conversation: https://claude.ai/code/session_01379heiiB35TtywhR7uSU74

codex and others added 2 commits September 23, 2026 06:11
Exercise multi-objective costs and their Jacobian with array unknowns, compare weighted scalarization to the objective dot product, and solve a textbook two-objective problem on its known Pareto front.

Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com>
Co-Authored-By: Codex <noreply@openai.com>
Agent-Harness: Codex CLI 0.156.1
Agent-Model: gpt-6-luna
Agent-Session: local session, transcript at /home/crackauc/sandbox/agent-jobs/ModelingToolkit.jl/jobs/5150-opencode/log-cont1.txt on amdci2.julia.csail.mit.edu
Drop the seed-fragile Pareto front claim, pin NSGA-II via StableRNG on a
bounded off-front problem, assert array-unknown Jacobian values, and declare
Random/SciMLBase/StableRNGs plus OptimizationEvolutionary ≥ 0.4.13.

Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com>
Co-Authored-By: Cursor Agent <noreply@cursor.com>
Agent-Harness: Cursor Agent CLI 2026.09.18-9a7762b
Agent-Model: auto
Agent-Session: local session, transcript at /home/crackauc/sandbox/agent-jobs/ModelingToolkit.jl/jobs/5150-opencode/log-cont2.txt on amdci2.julia.csail.mit.edu
…problem

Array-unknown 1D Poisson least-squares with Tikhonov regularization: the
multi-objective costs and Jacobian match analytic values, the weighted
objective equals dot(weights, costs), and the LBFGS minimizer of the
weighted problem matches the normal-equations solution and is stationary
for weights' * J.

Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Agent-Harness: Claude Code 2.1.280
Agent-Model: claude-opus-5-5
Agent-Session: local session, transcript at /home/crackauc/sandbox/agent-jobs/ModelingToolkit.jl/jobs/5150-opencode/log-cont3.txt on amdci2.julia.csail.mit.edu
Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com>
Co-Authored-By: Devin <noreply@cognition.ai>
Agent-Harness: Devin CLI 3000.11.3 (conflict resolution), Claude Code 2.1.285 (orchestration)
Agent-Model: fusion-claude-opus-5-5-high-sidekick-swe-2-medium
Agent-Session: local Claude session 3c311569-dda6-4687-bc9f-65febb212c33 (fleet master); Devin log /Users/chrisrackauckas/sandbox/master/fusion-fixes/SciML_ModelingToolkit.jl-5196/log.txt
@ChrisRackauckas

Copy link
Copy Markdown
Member

🤖 Automated comment from an AI agent running as @ChrisRackauckas — not written or reviewed by Chris.

Merged the default branch into this PR (clean merge, no conflicts; head 4e98ad5) so CI runs on current master.


🤖 Posted by an AI agent — harness: Devin CLI 3000.11.3 (merge), Claude Code 2.1.285 (posting) · model: fusion-claude-opus-5-5-high-sidekick-swe-2-medium
Conversation: local Claude session 3c311569-dda6-4687-bc9f-65febb212c33 (fleet master)

ChrisRackauckas and others added 2 commits October 16, 2026 05:00
`calculate_cost_gradient`, `calculate_cost_hessian` and
`calculate_multiobjective_hessian` now differentiate the cost after
`expand_dims_reductions` and `Symbolics.scalarize`, the preparation
`canonical_constraints` already gives constraint rows. `Symbolics.gradient`
and `Symbolics.sparsehessian` throw for unknowns inside a lazy array
reduction nested in a scalar expression such as `2 * sum(A * x)`, so
`OptimizationProblem(sys, op; grad = true)` failed for such costs
(SciML#5199) and the Poisson
acceptance test failed with registered Symbolics 7.45.0.

Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Agent-Harness: Claude Code 2.1.301
Agent-Model: claude-opus-5-5
Agent-Session: local session ID b63bd656-b711-4e26-b5d7-ba573f27b567 (headless claude -p, no URL)

This branch has not been deployed

No deployments
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.

3 participants