You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This prints -6.17673396e+14 instead of printing -1 or throwing an exception. I understand that python doesn't allow you to override and, so AddLinearConstraint can only see one of the subexpressions (rhs if lhs is truthy, lhs if it isn't). But is there any reason why `pydrake._symbolic_py.Formula.__nonzero__` doesn't throw an exception?
The text was updated successfully, but these errors were encountered:
From underactuated piazza
``
mp = MathematicalProgram()
x = mp.NewContinuousVariables(1, 'x')
mp.AddLinearCost(x[0])
mp.AddLinearConstraint(-1 <= x[0] <= 1)
mp.Solve()
print mp.GetSolution(x)
The text was updated successfully, but these errors were encountered: