Repository navigation
fix: settle the static start of a lightly loaded Syrope rope - #190
Merged
Merged
Conversation
A Syrope line starts from per-element secant stiffnesses iterated to the rest curve. Each update contracts by 1 - secant/tangent. A rope whose rest tension is a small part of its past one (a SYROPE IC Tmax0 well above the installed tension) has secants far below the tangent along the whole line, so every element contracts slowly at once, and the element steps cannot see the strain the elements share. The start then ran out of its 50 iterations: a 644 m rope stopped at 1.2e-10 against 1e-10. From iteration 30 on, the next secants are the combination of the last six solves of the whole line that minimises the relative residual of the tension update (Anderson acceleration), kept only while every secant stays within half to twice the newest one; otherwise the element steps stand. Convergence is still tested on the unmodified tension update, and a line that settles in fewer iterations is unchanged. The regression case is a 60-element rope on a linear working curve at four past tensions. Three of them fail without the change. Signed-off-by: Jae Hoon Seo <jaehoon.seo@inha.ac.kr>
Owner
Author
|
@codex review |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. What shall we delve into next? Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Merged
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.
Summary
A Syrope line with a
SYROPE IChistory whoseTmax0lies well above the installed tension could fail to start with "the static secant EA of the Syrope elements of LINE n did not converge in 50 iterations". The iteration was converging, only too slowly.Cause
Each Syrope element starts from a secant
EAiterated to its rest curve, and one update contracts by1 - secant/tangent. For a lightly loaded rope the secant is a fifth or less of the tangent along the whole line, so all elements contract slowly together. The existing acceleration works element by element and cannot see the strain the elements share.Implementation
line_stepcombines the last six solves of the whole line into the secants that minimise the relative residual of the tension update (Anderson acceleration, least squares by modified Gram-Schmidt, dependent differences left out).Checks
syrope_composite: a 644 m, 60-element rope on a linear working curve at four past tensions. Without the change three of the four fail. With it every element sits on its rest curve to better than 1e-9.