nonlinear fuzzy pid control

18
Nonlinear Fuzzy PID Control Jan Jantzen [email protected] www.inference.dk 2013

Upload: xanthe

Post on 22-Feb-2016

89 views

Category:

Documents


6 download

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 Presentation

TRANSCRIPT

Page 1: Nonlinear  Fuzzy  PID  Control

Nonlinear Fuzzy PID Control

Jan [email protected]

www.inference.dk2013

Page 2: Nonlinear  Fuzzy  PID  Control

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).

Page 3: Nonlinear  Fuzzy  PID  Control

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.

Page 4: Nonlinear  Fuzzy  PID  Control

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.

Page 5: Nonlinear  Fuzzy  PID  Control

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

Page 6: Nonlinear  Fuzzy  PID  Control

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.

Page 7: Nonlinear  Fuzzy  PID  Control

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.

Page 8: Nonlinear  Fuzzy  PID  Control

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.

Page 9: Nonlinear  Fuzzy  PID  Control

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

Page 10: Nonlinear  Fuzzy  PID  Control

10

Linear FPD

Same performance as the PD controller. The PD controller was hand-tuned.

Page 11: Nonlinear  Fuzzy  PID  Control

11

Saturation surface FPD

The saturation surface provides tighter control around the centre of the surface. The response is more damped.

Page 12: Nonlinear  Fuzzy  PID  Control

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.

Page 13: Nonlinear  Fuzzy  PID  Control

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

Page 14: Nonlinear  Fuzzy  PID  Control

14

Example: motor actuator with limits

The control signal saturates, and the integrator in PI winds up. The response is poor.

11ss

PISaturation

MotorActuator

Page 15: Nonlinear  Fuzzy  PID  Control

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

Page 16: Nonlinear  Fuzzy  PID  Control

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).

Page 17: Nonlinear  Fuzzy  PID  Control

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.

Page 18: Nonlinear  Fuzzy  PID  Control

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.