Open sea-bass opened 3 weeks ago
Update: I could get around it by being very explicit...
from pydrake.solvers import QuadraticConstraint
prog.AddQuadraticConstraint(
0.5 * (x[k, n] + x[k + 1, n])
+ (h[k] / 8.0) * (x_d[k, n] - x_d[k + 1, n])
- xc[k, n],
0.0, 0.0, QuadraticConstraint.HessianType.kIndefinite)
@sea-bass as you have found out, explicitly specifying the Hessian type would resolve your problem. I filed the PR #21553
What happened?
When I upgraded from Drake 1.28.0 to 1.29.0, I started getting these really loud warnings printed to my console:
Seems to be directly due to https://github.com/RobotLocomotion/drake/pull/21411
Nothing else seems to have been affected, but I'd like to be able to resolve these in some way. Are there any resources for what this may mean, and how to fix it?
My offending constraints look as follows:
Where
xc
,x
,x_d
, andh
are all continuous variables in my program. By process of elimination, it seems that the issue is in the multiplication ofh[k]
by the sub-elements ofx_d
, since that is the quadratic term.Version
1.29.0
What operating system are you using?
Ubuntu 24.04
What installation option are you using?
pip install drake
Relevant log output
No response