Skip to content

Commit

Permalink
[py optimization] Fix option name in unit test (RobotLocomotion#21902)
Browse files Browse the repository at this point in the history
  • Loading branch information
jwnimmer-tri authored and RussTedrake committed Dec 15, 2024
1 parent 0ba0e53 commit 2d53ef4
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions bindings/pydrake/geometry/test/optimization_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -789,14 +789,16 @@ def test_graph_of_convex_sets(self):
options.solver_options = SolverOptions()
options.solver_options.SetOption(ClpSolver.id(), "scaling", 2)
options.restriction_solver_options = SolverOptions()
options.restriction_solver_options.SetOption(ClpSolver.id(), "dual", 0)
options.restriction_solver_options.SetOption(
ClpSolver.id(), "log_level", 1)
options.preprocessing_solver_options = SolverOptions()
options.preprocessing_solver_options.SetOption(ClpSolver.id(),
"dual", 0)
options.preprocessing_solver_options.SetOption(
ClpSolver.id(), "log_level", 3)
self.assertIn("scaling",
options.solver_options.GetOptions(ClpSolver.id()))
self.assertIn("dual", options.restriction_solver_options.GetOptions(
ClpSolver.id()))
self.assertIn("log_level",
options.restriction_solver_options.GetOptions(
ClpSolver.id()))
self.assertIn("convex_relaxation", repr(options))

spp = mut.GraphOfConvexSets()
Expand Down

0 comments on commit 2d53ef4

Please sign in to comment.