I've developed a Simulink model in which I need to perform a constrained quadratic minimization. I've tried placing a call to the Optimization Toolbox functionquadprog in anEmbedded MATLAB Function block but have encountered numerous errors. Is what I'm trying to do even allowable and, if so, what is the proper way to do it?
If you are fine with a simulation-only capability (i.e., no code generation), then you might also consider using aLevel-2 MATLAB S-Function in place of EML. You can run quadprog from within the S-Function.