Closed RaihanFaruque closed 4 years ago
How do I add the term 0.5wtr((Cp - Cp_rest).transpose()((Cp - Cp_rest))) to Q and b? The trace is a scalar value
You add this to the function being optimized, not the linear system being solved. So the derivatives of these terms contribute to Q and b.
How do I add the term 0.5wtr((Cp - Cp_rest).transpose()((Cp - Cp_rest))) to Q and b? The trace is a scalar value