Optimizing fuzzy PD+PI Parameters via GA Tool

4 visualizzazioni (ultimi 30 giorni)
Hi guys,
I am currently working on a project that is about Fuzzy Logic. I have formed the model in ANFIS and generate a rule base for FLC. My question is when i try to optimize the parameters of PD + PI GA tool returns with an error as" Optimization running. Error running optimization. Index exceeds matrix dimensions." I need to tune 4 parameters of the controller. Cost function is ITSE and i wrote a simple function as
function z=deneme(x)
global k1
global k2
global k3
global k4
k1=x(1);
k2=x(2);
k3=x(3);
k4=x(4);
sim('fuzzypid');
z= ITSE(1401);
In the configuration parameters, sampling time is 5 sec. and the solver selected as ode4. I really need in help. Any comment will be appreciated.

Risposte (0)

Categorie

Scopri di più su Fuzzy Logic Toolbox in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by