-
Notifications
You must be signed in to change notification settings - Fork 25
Description
I am raising this issue to request for an interface to enable using OSQP as a custom solver with the MathWorks MPC tools for simulation and code generation. This interface will leverage the design capabilities of MPC Toolbox software and the computational performance of OSQP solver.
The following links explain the process and include some examples:
https://www.mathworks.com/help/mpc/ug/qp-solver.html?searchHighlight=QP%20solver&s_tid=srchtitle
and
https://www.mathworks.com/help/mpc/ug/generate-code-for-mpc-controller-with-custom-qp-solver.html
https://www.mathworks.com/help/mpc/ug/simulate-mpc-controller-with-a-custom-qp-solver.html
All needed would be an EML (that can be code generated) or MEX file using the OSQP code that can be called within a function [x,status] = mpcCustomSolverCodeGen(H,f,A,b,x0)
signature.