Skip to content

Commit

Permalink
Use GraphOfConvexSets::SolveConvexRestriction in rounding. (#19816)
Browse files Browse the repository at this point in the history
Also fixes SolveConvexRestriction to properly rewrite the convex costs
into constriants (with slack variables) to be supported by the convex
solvers. Previously it could call SNOPT instead of, e.g., Mosek.
  • Loading branch information
RussTedrake authored Jul 20, 2023
1 parent 1dcd494 commit c139b63
Show file tree
Hide file tree
Showing 6 changed files with 304 additions and 123 deletions.
2 changes: 1 addition & 1 deletion bindings/pydrake/geometry/test/optimization_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ def test_graph_of_convex_sets(self):
self.assertIsNone(options.max_rounded_paths)
options.convex_relaxation = True
options.preprocessing = False
options.max_rounded_paths = 2
options.max_rounded_paths = 0
options.max_rounding_trials = 5
options.flow_tolerance = 1e-6
options.rounding_seed = 1
Expand Down
2 changes: 2 additions & 0 deletions geometry/optimization/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,9 @@ drake_cc_library(
"//common/symbolic:expression",
"//solvers:choose_best_solver",
"//solvers:create_cost",
"//solvers:get_program_type",
"//solvers:mathematical_program_result",
"//solvers:mosek_solver",
"//solvers:solver_interface",
],
)
Expand Down
Loading

0 comments on commit c139b63

Please sign in to comment.