필터 지우기
필터 지우기

Using a Simulink model with multi-objective genetic algorithm

조회 수: 1 (최근 30일)
Roland
Roland 2022년 11월 29일
답변: Sakshay 2022년 12월 2일
Hello,
I have a vehicle model, where there is an output of cost ($) and emissions (kg CO2) that I intend to minimize using a multi-objective Genetic Algorithm, but I am not sure how to implement those Simulink outputs in the GA,
I can't seem to find any examples of this,
Any help / advice appreciated
Many thanks

답변 (1개)

Sakshay
Sakshay 2022년 12월 2일
Hello Roland,
As per my understanding, you have created a Simulink Model. And you want to optimize the outputs of the Simulink model by varying the input and other control parameters.
MathWorks provides an add on product called Simulink Design Optimization, which provides functions, interactive tools, and blocks for analyzing and tuning model parameters. You can refer to the following link for more information:
Another way to accomplish the same, would be to make use of the "sim" function. The "sim" is used to programmatically run a Simulink model. For the Multiobjective Genetic Algorithm, you can define the fitness function using the "sim" function. The input to the fitness function can be the different input variables over which the optimization is to be performed. These input variables can be provided to the "sim" function. The output of the "sim" function contains the values of the output generated by running the simulation, which you can use to calculate the fitness value. For more information on the use of "sim" function and further examples, you can refer to the following documentation:

카테고리

Help CenterFile Exchange에서 Genetic Algorithm에 대해 자세히 알아보기

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by