Global Optimization for a Simulink Model

조회 수: 2 (최근 30일)
Miguel Esteras
Miguel Esteras 2021년 1월 11일
댓글: Miguel Esteras 2021년 1월 18일
Hi,
The problem
I need to optimize 10 paramters of a simulink model within some lower/upper bounds so that the mean error between real and simulated ouput is minimized. The problem has multiple optima.
Question
How could I apply the a genetic algorithm or a surrogate optimization as part of the Simulink Design Optimization application? if not, how to convert a Simulink design optimization problem into an objective function that I can pass to the above mentioned functions?
Thank you for your help,
Miguel

채택된 답변

Alan Weiss
Alan Weiss 2021년 1월 11일
편집: Alan Weiss 2021년 1월 11일
You probably want to minimize the mean squared error. For an example, see lsqnonlin with a Simulink® Model. You can change the solver from lsqnonlin to ga or surrogateopt easily, by reformulating the objective function as in Nonlinear Data-Fitting.
One word of caution: you probably cannot optimize a Simulink model in parallel by setting the UseParallel option. Please try the optimization in serial.
Alan Weiss
MATLAB mathematical toolbox documentation
  댓글 수: 3
Alan Weiss
Alan Weiss 2021년 1월 18일
편집: Alan Weiss 2021년 1월 18일
To call Simulink in parallel, the underlying mechanism should be parsim. However, ga and surrogateopt do not use parsim. Instead, they use parfor or some other mechanism. I believe that Simulink Design Optimization does use the correct mechanism, but I do not know that product so cannot give you advice relating to it.
Alan Weiss
MATLAB mathematical toolbox documentation
Miguel Esteras
Miguel Esteras 2021년 1월 18일
Right,... for what I have been told by a local Simulink support staff, Simulink Design Optimization might not be able to use global optimization algorithms such as ga or surrogated out of the box.

댓글을 달려면 로그인하십시오.

추가 답변 (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