Add Convenience Constructor for Vector of Formulas #22634
Labels
good first issue
Thinking of contributing? These issues might be a good place to start.
type: feature request
It would be nice to be able to call the following code blobs.
Currently, all four options fail because we don't support vectorized construction of
Formula
objects (i.e. one gets an error with justx <= np.ones(4)
).Once we have sugar for constructing vectors of
Formula
, one would also like to addto MathematicalProgram.
This makes reading code involving MathematicalPrograms easier to read. For example:
The first is nice and easy to read. The second requires me remembering which arguments should be variables vs bound, and noticing that I said
AddLinearConstraint
(so I have inequalities) vsAddLinearEqualityConstraint
.The text was updated successfully, but these errors were encountered: