Use of Optimization Toolbox in Mataveid
Closed this issue · 3 comments
jasonnicholson commented
In MATLAB, quadprog
is in the Optimization Toolbox. I would recommend adding some code that checks for the Optimization Toolbox before making this call.
DanielMartensson commented
You need to have MataveControl installed.
The reason why I have an own quadratic programming solver, is because there is a 100% eqvivalent QP-solver at CControl for embedded systems.
jasonnicholson commented
Okay. I got it now. Replace quadprog
with mc.quadprog
.
DanielMartensson commented
Also linprog.m should be vectorized because it's to slow. I made it like that because there is also a linprog.c that using exactly the same algorithm and gives the same results back.
Sometimes linear programming can be useful for Model Predictive Control.