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 次查看(过去 30 天)
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".

采纳的回答

Alan Weiss
Alan Weiss 2014-6-12
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 个)

类别

Help CenterFile Exchange 中查找有关 Surrogate Optimization 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by