From 2d53ef4827762dbb15123f16e364e4092bf77139 Mon Sep 17 00:00:00 2001 From: Jeremy Nimmer Date: Sat, 14 Sep 2024 16:26:16 -0700 Subject: [PATCH] [py optimization] Fix option name in unit test (#21902) --- bindings/pydrake/geometry/test/optimization_test.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/bindings/pydrake/geometry/test/optimization_test.py b/bindings/pydrake/geometry/test/optimization_test.py index c81522b0a158..9f693e6f5114 100644 --- a/bindings/pydrake/geometry/test/optimization_test.py +++ b/bindings/pydrake/geometry/test/optimization_test.py @@ -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()