nonlinear fuzzy pid control
DESCRIPTION
Nonlinear Fuzzy PID Control. Jan Jantzen [email protected] www.inference.dk 2013. Example : a nonlinear valve. Valve opening between 0 and 1. Nonlinear flow through valve. - PowerPoint PPT PresentationTRANSCRIPT
2
Example: a nonlinear valveValve opening between 0 and 1
Nonlinear flow through valvex
4x 3110s
PI
Three steps up on the reference. The response gets worse and worse. The third response is marginally stable and the valve saturates in the upper limit (fully open).
3
Standard nonlinearities
Nonlinear systems can be mathematically unpredictable. Instead we simulate the behaviour using a number of standard blocks that model nonlinear components. The simulation will be approximate when we cannot solve the equations, but it is often good enough.
4
Standard rule base1. If error is Neg and change in error is Neg then control is NB2. If error is Neg and change in error is Zero then control is NM3. If error is Neg and change in error is Pos then control is Zero4. If error is Zero and change in error is Neg then control is NM5. If error is Zero and change in error is Zero then control is Zero6. If error is Zero and change in error is Pos then control is PM7. If error is Pos and change in error is Neg then control is Zero8. If error is Pos and change in error is Zero then control is PM9. If error is Pos and change in error is Pos then control is PB
With two inputs and three fuzzy terms (Neg, Zero, Pos) for each, we can build nine rules that cover the whole state space. However, just four rules may be sufficient in many cases: rules 1, 3, 7, and 9. These avoid rules with Zero, and in that case Neg and Pos must overlap each other in order to account for mid-range values.
5
Phase plot
Phase plot
Trajectory of the response on the control surface
Phase plane
43
21
Phase plane
We have chosen one point in each quadrant
Step response
6
Linear and saturation surfaceA plane. The values are between -200 and 200.
The 'saturation' surface. The four corners are in the same positions as the linear surface.
The surfaces are built from four rules using these membership functions.
We have constructed four standard control surfaces. The choice of shapes was inspired by the standard nonlinearities presented earlier. We can thus study a variety of standard behaviours.
7
Dead zone and quantizer surfaceThere is a dead zone in the middle with almost zero control signal.
The 'quantizer' surface. The four corners are in the same positions in all four standard surfaces.
The quantizer surface requires three input sets and nine rules.
8
Saturation and limit cycleAn example of saturation in the limit of the universe. The trajectory touches the edge.
An example of a limit cycle. The trajectory cycles round and round for ever.
These are two typical phenomena in nonlinear systems.
9
Example: unstable frictionless vehicle
m FmFa
1. Design a crisp PD controller2. Replace it with a linear fuzzy controller3. Make it nonlinear4. (Fine-tune it)
Linear equation of motion: Newton's 2. law.
Force
Mass Acceleration
10
Linear FPD
Same performance as the PD controller. The PD controller was hand-tuned.
11
Saturation surface FPD
The saturation surface provides tighter control around the centre of the surface. The response is more damped.
12
FPD with squared memberships
Making the surface steeper improves damping even more. In this case, at least.
They are the previous ones squared.
The control signal looks highly nonlinear now.
A very good response.
13
Example: nonlinear valve compensator
Three steps up on the reference. The response is considerably better than without the compensator.
x4x
3110s
PI C
1. If u is Low then x = 4.62u2. If u is High then x = 0.46u + 0.543u
14
Example: motor actuator with limits
The control signal saturates, and the integrator in PI winds up. The response is poor.
11ss
PISaturation
MotorActuator
15
Example: motor actuator with limits
The response is considerably better with the FInc controller. It has an integrator at the end of its signal path, and it is relatively easy to limit it to the same limits as the actuator. It avoids windup.
11ss
FIncSaturation
16
Autopilot example: mass load
A train car is standing on a curved track. At t = 10 the car is loaded with 5 times its own mass. It is taken off again at t = 30. A PI controller attempts to keep the train car in place (we do not consider using the brakes for the sake of the example).
17
Autopilot example: mass load
The PID response has a large dip, and it creeps in towards the setpoint (x = 5).
The FInc response has a smaller dip, a smaller flare, and it avoids creeping.
This membership function is squared using Very in the rule base.
18
Summary
• The linear fuzzy performs as a PID.• We introduced three nonlinear surfaces in
order to standardize.• Fuzzy can cope with some nonlinearities that
PID cannot.• Human beings can read the rule base.