Hi all,
I am solving a lineair constrained MPC problem, which could be seen in the attached image.
In this optimal control problem Q and R are both symmetric positive definite matrices.
When I rewrite this optimal control problem to a constrained QP problem and solve this with a QP solver (e.g. Quadprog or Gurobi) I get a negative objective function value. Is this correct? I would expect a positive value, because Q and R are both positive definite and the terms in the objective function are quadratic.