forked from RobotLocomotion/drake
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FixUp GCS PhiConstraint test (RobotLocomotion#21330)
PR 21053 to upgrade clarabel fell over on some numerical problems in the PhiConstraint unit test. I've captured that failure and reported it in oxfordcontrol/Clarabel.rs#96 . In examining the problem, I found a number of small errors in the existing test. Resolving those errors allows clarabel 7.1 to pass the tests without any upstream changes required. The changes in the PhiConstraint test are: - QuadraticCost was being used incorrectly (we forgot the factor of 2). It was also documented as being the L2 norm, instead of the L2 norm squared. - Added a diagram to the doc and minor code cleanup. In GCS, I made two changes, both of which have no functional impact: - The bounding box constraint with lb==ub was replaced with a linear equality constraint (which should be preferred). - I've slightly improved the variable names used in the mathematical program, for readability during debugging. This program is intentionally not exposed to the user, and all of the changes were to internally defined variables. Although a user _could_ have gotten to these by mucking around in the MathematicalProgramResult, there is nothing in the API contract that is changing on them.
- Loading branch information
1 parent
5cc3db2
commit 1b01bab
Showing
2 changed files
with
33 additions
and
19 deletions.
There are no files selected for viewing
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
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