Open gibor1992 opened 1 day ago
Hi Giulio,
Your problem is required to be DCP and DPP, which imposes a few extra rules on top of DCP. In short, all parameters should enter your expressions in an affine way.
In your case, the quadratic forms make the problem non-DPP. The standard trick here is to replace something like
cp.quad_form(U[:, t], R)
with cp.sum_squares(L.T @ U[:, t])
,
where L
is the Cholesky factor of R
. When assigning the value of the parameter L
you can use np.linalg.cholesky
.
Hi guys! I'm trying to generate the code for a Tracking Linear MPC with the following code:
However, despite i check that is a DCP problem, it returns me this message:
How can I solve this type of problem? Thanks in advance, Giulio