-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[solvers] Port solver back-ends to use SpecificOptions #21345
Draft
jwnimmer-tri
wants to merge
1
commit into
RobotLocomotion:master
Choose a base branch
from
jwnimmer-tri:solver-options-specific
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
[solvers] Port solver back-ends to use SpecificOptions #21345
jwnimmer-tri
wants to merge
1
commit into
RobotLocomotion:master
from
jwnimmer-tri:solver-options-specific
Conversation
This file contains 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
jwnimmer-tri
added
status: do not merge
priority: medium
status: do not review
release notes: none
This pull request should not be mentioned in the release notes
labels
Apr 21, 2024
jwnimmer-tri
force-pushed
the
solver-options-specific
branch
3 times, most recently
from
April 26, 2024 00:04
ea392f0
to
ee3a01c
Compare
jwnimmer-tri
commented
Apr 26, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 42 of 45 files at r1, 6 of 7 files at r2, 8 of 9 files at r3, all commit messages.
Reviewable status: needs platform reviewer assigned, needs at least two assigned reviewers, labeled "do not merge"
jwnimmer-tri
force-pushed
the
solver-options-specific
branch
from
April 26, 2024 13:40
ee3a01c
to
878e75d
Compare
jwnimmer-tri
force-pushed
the
solver-options-specific
branch
2 times, most recently
from
September 13, 2024 14:47
4d106e4
to
236d634
Compare
This was referenced Sep 13, 2024
jwnimmer-tri
force-pushed
the
solver-options-specific
branch
from
September 13, 2024 21:43
236d634
to
99ce3aa
Compare
jwnimmer-tri
force-pushed
the
solver-options-specific
branch
from
September 22, 2024 16:04
99ce3aa
to
393929f
Compare
In the near future, we anticipate changing the SolverOptions API in support of loading and saving (i.e., serialization). That's especially troublesome for our solver back-ends that consume its information, given the low-level and hodge-podge ways in which they hunt for and apply their specific options. This commit introduces a higher-level intermediary between solver back-ends and the program's options. Now SolverOptions are solely a user-facing aspect of defining a program; the solver back-ends never touch SolverOptions anymore. The new SolverBase::DoSolve2 virtual provides the mechanism for back-ends to take advantage of the new API. All solvers have been ported to use it. The old API remains intact for any out-of-tree solvers. The new API is also designed to improve uniformity of common errors, such as unknown names or wrongly-typed values. The new API also lays the groundwork for more efficient processing, as future work. It removes the need for the "Merge" (copy) operation in the hot path -- since it only provides a *view* of the options, it can easily keep track of several dictionaries and query them in order, with no copying.
jwnimmer-tri
force-pushed
the
solver-options-specific
branch
from
September 22, 2024 16:53
393929f
to
e1549aa
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
priority: medium
release notes: none
This pull request should not be mentioned in the release notes
status: do not merge
status: do not review
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.
Towards #20967.
This change is