11
Application of Fuzzy Logic in Control Design and simulate a Fuzzy system that will control a missile to follow/track a flying airplane

Application of Fuzzy Logic in Control - Lane Department of

  • Upload
    others

  • View
    3

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Application of Fuzzy Logic in Control - Lane Department of

Application of Fuzzy Logic inControl

• Design and simulate a Fuzzy system that willcontrol a missile to follow/track a flying airplane

Page 2: Application of Fuzzy Logic in Control - Lane Department of

Application of Fuzzy Logic inControl (Cont.)

• Keep the missile pointed at the Aircraft at alltime!

Missile’s position

Aircraft’s Position

Tracking angle

Tracking error

Missile Azimuth

Page 3: Application of Fuzzy Logic in Control - Lane Department of

Build a Fuzzy System• Step 1

– Pick the nouns or variables• TrackingError Fuzzy set as an input• AzimuthAdjust Fuzzy set as control output

*Fuzzy Thinking:The new Science of Fuzzy Logic, Bart Kosko

Page 4: Application of Fuzzy Logic in Control - Lane Department of

Build a Fuzzy System• Step 2

– Define fuzzy subsets of the nounsTrackingError and Azimuth Adjust

• Assume that the airplane fly on the twodimension plane, X-Y plane, and that it can beany where on the horizon. TrackingError maytakes any value between -180 and +180 degrees

• Assume that the missile can not turn on thedime. ThusAzimuth adjust is limited to -45 and45 degrees

*Fuzzy Thinking:The new Science of Fuzzy Logic, Bart Kosko

Page 5: Application of Fuzzy Logic in Control - Lane Department of

Build a Fuzzy System• Step 2 {Cont.]

– TrackingError• Define 5 fuzzy subset

– LargePositive– SmallPositive– NearZero– SmallPositive– LargePositive

*Fuzzy Thinking:The new Science of Fuzzy Logic, Bart Kosko

Page 6: Application of Fuzzy Logic in Control - Lane Department of

Build a Fuzzy System• Step 2 {Cont.]

– AzimuthAdjust• Define 5 fuzzy subset

– LargePositive– SmallPositive– NearZero– SmallPositive– LargePositive

*Fuzzy Thinking:The new Science of Fuzzy Logic, Bart Kosko

Page 7: Application of Fuzzy Logic in Control - Lane Department of

Build a Fuzzy System• Step 3• Define the fuzzy rules

– If TrackingError is LargePositive then AzimuthAdjust LargePositive;– If TrackingError is SmallPositive then AzimuthAdjust SmallPositive– If TrackingError is NearZero then AzimuthAdjust NearZero– If TrackingError is SmallNegative then AzimuthAdjust SmallNegative;– If TrackingError is LargeNegative then AzimuthAdjust LargeNegative;

*Fuzzy Thinking:The new Science of Fuzzy Logic, Bart Kosko

Page 8: Application of Fuzzy Logic in Control - Lane Department of

Parameters

• Additional Information required– Airplane location, Plane_X and Plane_Y,– Airplane Speed,– Missile location, Missile_X and Missile_Y,– Missile Speed.

Page 9: Application of Fuzzy Logic in Control - Lane Department of

PreProcessing

• Compute tracking error as an input to theFuzzy system

IF (Plane_X = Missile_X) then IF (Plane_Y > Missile_Y) then TrackingError = 90; Else IF (Plane_Y < Missile_Y) then TrackingError = -90; Else TrackingError = 0;Else TrackingError = atand( (Plane_Y - Missile_Y) / (Plane_X - Missile_X) ) + if ( Plane_X < Missile_X, 180, 0);TrackingError = angle180(TrackingError - MissileAzimuth);

*CubiCalc:The Third Wave in Intelligent Software, HyperLogic Corporatiom

Page 10: Application of Fuzzy Logic in Control - Lane Department of

Simulation

• Once the Fuzzy System suggests theAzimuthAdjust, the new position of the aircraftand missile must be updatedMissileAzimuth = MissileAzimuth + AzimuthAdjust;MissileAzimuth = angle180(MissileAzimuth);# Update Missile and Plane positions.# Plane moves horizontally (no change in Plane_Y).# Missile chases plane.Plane_X = Plane_X + PlaneSpeed;#Plane_Y = Plane_Y;Missile_X = Missile_X + MissileSpeed * cosd(MissileAzimuth);Missile_Y = Missile_Y + MissileSpeed * sind(MissileAzimuth);

*CubiCalc:The Third Wave in Intelligent Software, HyperLogic Corporatiom

Page 11: Application of Fuzzy Logic in Control - Lane Department of

Simulation Result

*CubiCalc:The Third Wave in Intelligent Software, HyperLogic Corporatiom