I am trying to optimize the parameters of a 2 by 2 controller via fminsearch but I am getting the result same as the initial points that are inserted to initiate the optimization process.
1 view (last 30 days)
Show older comments
I already check the programs and found no errors on the programs.Can someone please give me some guidance?Is it possible that an optimization routine would not work on certain problem? The attachment above are the programs and the main program is "Taguchi_fminsearchp.m".
0 Comments
Accepted Answer
Alan Weiss
on 12 Jun 2014
Your objective function is the result of a simulation. You might need to take larger steps in your optimmization routine to avoid the function looking flat at nearby points; see Optimizing a simulation or ODE.
Unfortunately, fminsearch does not allow for tuning options. I suppose that you could artificially scale the problem by taking fun(1e3*x) so that small changes in the position get magnified. Or you could use an Optimization Toolbox solver, using larger-than-default finite difference steps, or a Global Optimization Toolbox solver such as patternsearch.
Good luck,
Alan Weiss
MATLAB mathematical toolbox documentation
0 Comments
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!