Skip to content

Commit

Permalink
make cost termination in cspace free polytope bilinear alternation a …
Browse files Browse the repository at this point in the history
…relative quantity (RobotLocomotion#18676)
  • Loading branch information
AlexandreAmice authored Jan 27, 2023
1 parent 2d5a1bd commit a218b98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion geometry/optimization/dev/cspace_free_polytope.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1578,7 +1578,7 @@ CspaceFreePolytope::SearchWithBilinearAlternation(
ellipsoid_Q = options.ellipsoid_scaling * (ellipsoid.A().inverse());
const double cost = ellipsoid_Q.determinant();
drake::log()->info("Iteration {}: det(Q)={}", iter, cost);
if (cost - prev_cost < options.convergence_tol) {
if ((cost - prev_cost)/prev_cost < options.convergence_tol) {
break;
} else {
prev_cost = cost;
Expand Down

0 comments on commit a218b98

Please sign in to comment.