How to tune the PID parameters using Fuzzy Logic?

Click For Summary

Discussion Overview

The discussion revolves around tuning PID parameters using fuzzy logic, particularly in the context of controlling a robot's position. Participants explore the challenges of setting fuzzy rules for adjusting Kp, Ki, and Kd values based on position error and error rate, with a focus on dynamic adjustments during operation.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant describes their experience using the Ziegler method for initial PID tuning and expresses confusion about setting fuzzy rules for Kp, Ki, and Kd based on error values.
  • Another participant suggests starting with best guesses for the PID parameters and refining them gradually, emphasizing that these coefficients should remain reasonably fixed during operation.
  • A participant questions whether Kp should be low when the error is near zero and how to adjust the parameters when the error is high.
  • There is mention of the system's physical characteristics influencing the PID coefficients and the need for fuzzy logic to adapt these coefficients as conditions change.

Areas of Agreement / Disagreement

Participants express differing views on the best approach to tuning PID parameters with fuzzy logic. There is no consensus on the optimal values or strategies for adjusting Kp, Ki, and Kd based on varying error conditions.

Contextual Notes

Participants highlight the importance of understanding the effects of each PID parameter and the dynamic nature of tuning during system operation. There are unresolved questions regarding the specific conditions under which to adjust the parameters.

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
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 12 ·
Replies
12
Views
4K
Replies
9
Views
2K
  • · Replies 23 ·
Replies
23
Views
2K
Replies
5
Views
16K
Replies
1
Views
1K
  • · Replies 10 ·
Replies
10
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K