필터 지우기
필터 지우기

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