Skip to content

Fix OptimizationEvolutionary multi-objective core tests#1250

Draft
ChrisRackauckas-Claude wants to merge 2 commits into
SciML:masterfrom
ChrisRackauckas-Claude:agent/fix-evolutionary-core-moo
Draft

Fix OptimizationEvolutionary multi-objective core tests#1250
ChrisRackauckas-Claude wants to merge 2 commits into
SciML:masterfrom
ChrisRackauckas-Claude:agent/fix-evolutionary-core-moo

Conversation

@ChrisRackauckas-Claude

Copy link
Copy Markdown
Contributor

This PR should be ignored until reviewed by @ChrisRackauckas.

Summary

  • avoid the ambiguous bounded multi-objective Evolutionary.optimize call by using the constrained multi-objective method signature
  • make the NSGA2 tests deterministic by seeding each benchmark
  • replace brittle exact Pareto-population index assertions with wrapper invariants and bounded-domain checks

Root cause

The OptimizationEvolutionary core CI failure was in stochastic NSGA2 multi-objective tests. Exact selected population members changed across runs/releases, and bounded benchmark functions exposed an ambiguous source call path.

Validation

  • timeout 3600 env OPTIMIZATION_TEST_GROUP=Core /home/crackauc/.juliaup/bin/julia +1.12 --project=lib/OptimizationEvolutionary -e 'import Pkg; Pkg.test(; julia_args=["--check-bounds=yes", "--compiled-modules=yes", "--depwarn=yes"], force_latest_compatible_version=false, allow_reresolve=false)'\n - observed: Core | 55 55, Testing OptimizationEvolutionary tests passed\n- timeout 3600 /home/crackauc/.juliaup/bin/julia +1.12 --startup-file=no -e 'import Pkg; Pkg.activate(; temp=true); Pkg.add("Runic"); using Runic; exit(Runic.main(["--check", "."]))'\n- git diff --check

Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com>
Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com>
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