I don't currently have Simulink Design Optimization.
I'm using optimization and global optimization toolboxes to fit a simulink model to data
I'd like to use something like the pseudo code example below. Am I barking up the right tree, or is there a better approach? The optimization examples on the mathworks site don't have any simulink optimization by toolbox examples. Are there examples out there?
Anyone have feedback on Simulation Design Optimization vs using optimization toolbox?
x0(1) = a;
x0(2) = b;
ofh = @objfun(x)
bestx = fminsearch(ofh,x0);
function value = objfun(x)
a = x(1);
b = x(2);
value = (y-ydata)'*(y-ydata)
The preload function is represented by this simple example: