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.
Asked
Active
Viewed 125 times
2
-
http://scicomp.stackexchange.com – Rodrigo de Azevedo May 17 '21 at 18:53
1 Answers
1
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]

Roim
- 2,986
- 2
- 10
- 25