PID controller tuning with GA optimization errer

i used simulink for PID controller with GA
code
function z = pidgam(x)
kp=x(1);
ki=x(2);
kd=x(3);
out = sim('pidga.slx','SrcWorkspace','Current');
iae = sum(abs(out.get('error')));
y = iae;
z = y;
and gatool
para = 3
use optimtool get error
Optimization running. Error running optimization. Undefined function 'abs' for input arguments of type 'timeseries'.
um... help me

回答 (0 件)

カテゴリ

質問済み:

DH
2013 年 10 月 7 日

編集済み:

DH
2013 年 10 月 7 日

Community Treasure Hunt

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

Start Hunting!

Translated by