How would it be possible to incorporate metaheuristic m-file code into a simulink model?

Hi,
As a MS.C student of electrical engineering who works with simpowersystem toolbox of matlab/simulink, I know the way a controlling system could be made with Simulink blocks and also I am familiar with creation of m-file codes of nature inspired algorithms.
But my problem is: How should I use a m-file coded metaheuristic algorithm among the blocks of a simulink model?
There have been lots of recommendation on the web, which most of them propose to use "user-defined function" library blocks. Level-2 Matlab S-Function is one of these blocks. But from "Developing S-Function" manual and other corresponding matlab help, it seems the structure of implemented codes in S-Function are different from m-file coding.
I appreciate any help which could guide me through this.
Best Regards, Sahand

回答 (1 件)

Kiprono
Kiprono 2013 年 2 月 12 日

0 投票

Have a look at this paper. It explains how to implement PSO as an s-function. Other metaheuristics use a similar approach. http://www.sciencedirect.com/science/article/pii/S0038092X12001247

1 件のコメント

puneet joshi
puneet joshi 2016 年 5 月 5 日
this paper is not an open access.. if you can provide it kinly mail it to me on puneet.joshi07@gmail.com

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeSimulink についてさらに検索

製品

タグ

質問済み:

2012 年 11 月 4 日

コメント済み:

2016 年 5 月 5 日

Community Treasure Hunt

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

Start Hunting!

Translated by