Is there a way to define a skew_symmetric variable in cvxpy?

Viewed 90

I want to define a 'skew_symmetric' variable in cvxpy, with real elements. Is there a short way to do this? The package supports defining 'symmetric' variables but not 'skew_symmetric' variables. Thanks.

1 Answers

As far as I know, there is no direct way to declare 'skew_symmetric' variable. But you can easily enforce it with a relevant constraint over the variable.

A matrix is skew symmetric if A^T = -A, so you can add it as a constraint:

skew_constraint = [A.T == -A]
Related