firefly algorithm for power system stabilizer
古いコメントを表示
I want to use the firefly algorithm to find the power system stabilizer parameters for multi-machines (Ks, T1, T2, T3, T4, and T5). I use fa_minco.m and firefly_simple.m scripts but I don't know how to put objective functions in the script. how can i solve it?
3 件のコメント
Tamir Suliman
2020 年 9 月 11 日
編集済み: Tamir Suliman
2020 年 9 月 12 日
You have to start with the algorithm and the equations that represents the systems
for exmple :
if your equation C = A +B then you have to write a program tthat accepts your inputs process the operation then output it as C
So general rule of thumbs
INPUT -- PROCESS -- OUTPUT
Please look at the firewfly alogrithm and adopt it based on the power system stabilizer equations you have
ALGORITHM
Step 1: Start the program
Step 2: Enter the load system input data
Step 3: The Generate initial population of fireflies
xi (i = 1, 2, ..., n)
Step 4: To determine Light intensity Ii at xi
is determined
By f(xi)
Step 5: Set the iteration count iter=1
Step 6: To calculate ith firefly for i = 1: n all n fireflies
Step 7: To calculate jth firefly for j = 1:n all n fireflies
Step 8: To check if (Ij> Ii), Move firefly i towards j in ddimension; end if
Step 9: To calculate attractiveness, whenAttractiveness
varies with distance r.
Step10: To Evaluate new solutions and update light
Intensity
Step11: end for j
Step12: end for i
Step13: Rank the fireflies and find the current best
Step14: To evaluate Iter=Iter+1
Step15: Check Iter > Itermax; the condition no means go
to step 4.
Step16: Print the results
Step17: Stop the program
Satrio Wicaksono
2020 年 9 月 11 日
Tamir Suliman
2020 年 9 月 12 日
there are different data sources on simulink please pick the one that more aligned with what you trying to do please accept the answer if you feel its helpful
回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Modeling についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!