How do you calculate instantaneous output of a transfer function ?

3 views (last 30 days)
I'm currently working on genetic algorithm. for testing the Population of (Kp,Ki,Kd) (which are the PID controller parameters) i usually use the close loop.
ie, 1. I calculate the series transfer function of Plant and PID controller
2. I close the loop using feedback command (negative feedback)
3. I check the result for step input (using step command)
4. and then i calculate ISE/IAE/or whatever is required as cost function.
Now when i want to do same with fuzzy there are following problems
1. I do not know the transfer function of fuzzy system as I know about PID
2. I can calculate the instantaneous fuzzy output at the first sampling instance but I cannot use that output to calculate the output of my plant (Note: _lism command requires atleat two input for calculation of output) )
My Question is does there exist any command to calculate output of filter/transfer_function for just one input sample at a time ?
if not , then is there any way a simulink model (which has ability do calculate it) be incorporated or called in a matlab file ?
or, is there any way to calculate Transfer_function of any Fuzzy controller model ?

Accepted Answer

Arkadiy Turevskiy
Arkadiy Turevskiy on 11 Apr 2013
Your best bet is probably calling a Simulink model that would simulate closed loop response of your fuzzy controller. You can call Simulink model with command sim.
HTH.
Arkadiy

More Answers (0)

Categories

Find more on Fuzzy Logic in Simulink in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!