How to tune the PID parameters using Fuzzy Logic?

Click For Summary
The discussion focuses on tuning PID parameters using fuzzy logic for a robot's position control. The user initially applied the Ziegler method but is now confused about setting fuzzy rules for Kp, Ki, and Kd based on varying error values. It is suggested to start with best guesses for these parameters and refine them gradually, maintaining stability in the PID coefficients rather than making abrupt changes. The system's physical characteristics play a crucial role in determining the appropriate PID values, which should adapt as these characteristics change. Overall, a careful and gradual approach to tuning is emphasized for optimal system response.
MHR-Love
Messages
17
Reaction score
0
I previously used the Ziegler method to tune the parameters of my PID controller to control my robot's position. I then implemented fuzzy logic for self-tuning the parameters. I have two inputs to the fuzzy logic controller; one is the position error and the error rate.

I know that my problem might be due to not understanding the effect of each parameter very well.

The problem is that I am confused in setting up the fuzzy rules. When do I need to use high and low values for Kp, Kd and Ki to achieve the best tuning? Is it that Kp must be very low when the error is almost zero (hence, the robot is at the desired position)? The same question applies for all of the three parameters.
 
Engineering news on Phys.org
Thanks for the post! Sorry you aren't generating responses at the moment. Do you have any further information, come to any new conclusions or is it possible to reword the post?
 
Baluncore said:
Yes, I've seen it. My problem is more into PID than fuzzy logic. I understand the exact mechanism and logic behind fuzzy logic. My problem is in determining the values that are most suitable for Kp, Ki, and Kd for different error values, putting in mind that I can dynamically change their values while the system is running. For example take this scenario, suppose that the system has reached the desired state and, hence, the error is almost zero, am I to reduce the values of these parameters or increase them for better system response? Another scenario would be when the error is so high, am I to increase the values for the parameters?
 
I believe you should start with best guesses for Kp, Ki, and Kd. Then slowly refine those values, possibly using fuzzy logic. Those coefficients should then remain reasonably fixed.

If the difference is high, then the system needs to respond to eliminate that error. It does that by controlling the system through use of stable PID coefficients, not by suddenly changing those coefficients.

The system response is determined by the system's physical characteristics. The PID coefficients are used in the control loop and so in a way characterise the system. If the physical characteristics of the system were to change, such as the mass of a fuel tank, then the fuzzy logic should gradually adapt the PID coefficients to suit the new physical configuration.
 
Baluncore said:
I believe you should start with best guesses for Kp, Ki, and Kd. Then slowly refine those values, ... Those coefficients should then remain reasonably fixed.
Not to go off topic, but this worked for me when implementing Automatic Generation Control (software PID control) for this (X 3) and the other energy center's generators. And slowly is the key word here.

4270195112_56c601d84b.jpg
 
What mathematics software should engineering students use? Is it correct that much of the engineering industry relies on MATLAB, making it the tool many graduates will encounter in professional settings? How does SageMath compare? It is a free package that supports both numerical and symbolic computation and can be installed on various platforms. Could it become more widely used because it is freely available? I am an academic who has taught engineering mathematics, and taught the...

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
Replies
5
Views
16K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 12 ·
Replies
12
Views
3K
Replies
1
Views
3K
  • · Replies 2 ·
Replies
2
Views
5K
Replies
9
Views
2K
  • · Replies 8 ·
Replies
8
Views
8K