Skip to content

Include final AGS trials in the returned optimum - #647

Merged
stevengj merged 2 commits into
stevengj:masterfrom
CAOShurong:codex/ags-final-trial
Oct 17, 2026
Merged

stevengj merged 2 commits into
stevengj:masterfrom
CAOShurong:codex/ags-final-trial

Conversation

@CAOShurong

Copy link
Copy Markdown
Contributor

Fixes #603.

AGS evaluates a new trial before checking whether to stop, but only updates the best point at the next iteration. Include the final completed trials before cleanup and optional refinement, so the returned coordinates and objective contain the best result already found.

Add regressions for the evaluation limit, forced stop, a constrained final improvement, and unchanged/constant results.

Tested on Windows/MSVC: 87 CTest cases with Python bindings, 52 cases in a C-only build, installed C/C++ consumers, and 748 independent Python API cases. The reported seven-evaluation example now returns 5.8121756154 instead of 6099.2916696.

@stevengj
stevengj merged commit 673d250 into stevengj:master Oct 17, 2026
3 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.

GN_AGS does not register improvement in the final iteration

3 participants