RobotLocomotion / drake

Model-based design and verification for robotics.
https://drake.mit.edu
Other
3.16k stars 1.24k forks source link

Parse Lorentz cone constraints from formula #21612

Closed RussTedrake closed 1 day ago

RussTedrake commented 6 days ago

Now we can write, e.g.

prog.AddConstraint(y[0] >= np.linalg.norm(x))

and get a Lorentz cone constraint back out.

+@hongkai-dai for feature review, please.


This change is Reviewable