error in the fuzzy logic controller's Evaluate Rule Consequents Block

6 views (last 30 days)
I tried to design a PD controller with a fuzzy logic controller as a modification to it.
I also implemented Particle swarm Optimization algorithim to tune my controller's static variables.
But when I run my PSO.m file in order to tune my controller , I got a error---------------------------------------------------------------------------------------------
"Error occurred while attempting to call the error callback function 'Stateflow.Translate.translate' of subsystem
'SMG/Subsystem/Subsystem1/Fuzzy Logic Controller/Evaluate Rule Consequents'. The callback function should take a
block handle and error ID as input arguments, and return a character vector that replaces the error produced
within the subsystem. The following error was produced when the error callback function was called: Not enough
input arguments."
  1 Comment
Sam Chak
Sam Chak on 11 Sep 2022
What is the system that you want to regulate with the PSO-tuned fuzzy PD?
Are you able to stabilize the system with a non-fuzzy PD compensator?
If so, does the error occur when attempting to tune only the PD gains?

Sign in to comment.

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!