I am trying to implement the following constraint in MOSEK Fusion API for C++:
B is a matrix and x is a variable defined like this:
x = M->variable("x", 8, Domain::unbounded());
It is guaranteed that the dimensions for matrix multiplication match.
What I mean by x[5] here is x->index(5)
B.x is a matrix and I can't simply add it with the single value x[5] using the Expression class. I think I need to create a column vector (matrix with 1 column) filled by x->index(5) and then add it with the result of Mul(B, x) but I don't know how to create a matrix filled by a variable.
Can someone help me write this constraint?