
% This is function funiaepid.m
% Minimizes IAE


function funiaepid = f(x)
global Tid y ys Kc taui taud

Kc=x(1)
taui=x(2)
taud=x(3)
    
  sim('tunepid');
  funiaepid = iae(Tid,y-ys)


