N-dimensional variables #198

Open
SteveDiamond opened this Issue Jun 22, 2015 · 0 comments

Projects

None yet

1 participant

@SteveDiamond
Member

Currently cvxpy only supports scalar, vector, and matrix variables. Additional dimensions can be mimicked using a dict:

# Create a 3D k-by-m-by-n variable.
x = {}
for i in range(k):
  x[i] = Variable(m,n)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment