Closed soonho-tri closed 7 years ago
Review status: 0 of 3 files reviewed at latest revision, all discussions resolved.
Comments from Reviewable
Reviewed 2 of 3 files at r1. Review status: 2 of 3 files reviewed at latest revision, 1 unresolved discussion.
drake/solvers/mathematical_program.cc, line 677 at r1 (raw file):
pair<Binding<PositiveSemidefiniteConstraint>, Binding<LinearEqualityConstraint>> MathematicalProgram::AddSosConstraint(const symbolic::Expression& e) { return AddSosConstraint(symbolic::Polynomial{e});
I think we should do
return AddSosConstraint(symbolic::Polynomial{e, indeterminates_});
Comments from Reviewable
Review status: 0 of 3 files reviewed at latest revision, 1 unresolved discussion.
drake/solvers/mathematical_program.cc, line 677 at r1 (raw file):
I think we should do ```C++ return AddSosConstraint(symbolic::Polynomial{e, indeterminates_}); ```
Done. Thanks!
Comments from Reviewable
Review status: 0 of 3 files reviewed at latest revision, 1 unresolved discussion.
Comments from Reviewable
This is a small PR adding
AddSosConstraint(const symbolic::Expression& e)
. I think it should be useful for beginners who do not even want to know aboutsymbolic::Polynomial
.This change is