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
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
if I make simulink for the system, do I have to enter data in the script?
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에 대해 자세히 알아보기

질문:

2020년 9월 11일

편집:

2020년 9월 12일

Community Treasure Hunt

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

Start Hunting!

Translated by