2

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.

Arya
  • 23
  • 4

1 Answers1

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