Repository navigation
vehicle-dynamics-7: search damping and flip stop for the closest-point search - #85
Merged
Merged
Conversation
…for the closest-point search (build-time, off by default; proposal, no tests or capture yet) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…-point search (SH2Z_VD_LOCATE_DAMP, SH2Z_VD_LOCATE_FLIP) Build-time, off by default (objects of the three vehicle units unchanged). Host test with the 99-pass search as oracle, 12 mutation controls, guide section and validation record. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
vehicle-dynamics-7: search damping and flip stop
Two build-time changes to the closest-point search of
sh2z_vd_step/sh2z_vd_step2, both off by default (the objects of the three vehicle units are identical to main,cmpwith the CI flags):SH2Z_VD_LOCATE_DAMP(passes): after that many passes the secant step through the last two passes replaces the pass's step when it is not longer (same sign). Fixes the swing of a body near the centre of curvature (step about twice the Newton step, residual closing by 0.94 a pass).SH2Z_VD_LOCATE_FLIP(flips): ends a search that flips between two nodes, back to the same parameter every second pass, on the parity the 99th pass has.Approximation: a changed search ends within the bounds in the validation record of the 99-pass end state. Approved class.
Evidence (HOST; see
saturn/validation/vehicle-dynamics-7.md)tests/test_vehicle_locate7.c: 506,265 checks, GCC and Clang strict, ASan/UBSan. 120,000 searches against the 99-pass library as oracle: 112,514 untouched and word for word equal; where the library converged within 700 units and a change acted, the changed search converged within 0.853 units in 339 of 340 (one 12.5 units off); every damped step not longer than the step it replaces; flip stops on the right parity.tests/mutate_vehicle_locate7.sh: 12 of 12 controls caught.results.jsonare unchanged (skip rule); the CI model job should confirm.Upstream-style: checked against sh4zam conventions of the neighbouring vehicle-dynamics-6 files (hook macros, build-time guards,
*_experimental.hcontract-tag section, validation record, test and mutation-script layout).🤖 Generated with Claude Code