代写49275 NEURAL NETWORKS AND FUZZY LOGIC (Autumn 2025) ASSIGNMENT 1帮做Python语言

49275 NEURAL NETWORKS AND FUZZY LOGIC (Autumn 2025)

ASSIGNMENT 1

QUESTION ONE [50 marks]

Two perceptron classifiers are trained to recognise the following classification of eight patterns x with known class membership d.

Q1.1 [Discrete Perceptron Training] [25 marks]

The first classifier is a discrete perceptron as shown in Figure Q1.1. Assign “+1” to all augmented inputs. For the training task of this classifier, the learning constant is η =0.05 and the discrete perceptron learning rule is used. The initial weight vector

Assuming that the above training set may need to be recycled if necessary,

i) Calculate the final weight vector w81 after 10 cycles. (A simulation code needs to be included)

ii) Demonstrate that the final weight vector in (i) correctly classifies the entire training set.

iii) Plot the pattern error curve and the cycle error curve for 10 cycles (80 steps). Comments both curves.

iv) Change the learning constant to 0.2 (η =0.2) and create a plot of the cycle error curve. Compare this curve with the one presented in (iii), and provide a discussion on the differences observed.

Note: The following formulae may be used to calculate the pattern error curve and the cycle error curve. There are 8 patterns in this question, i.e. P=8.

Pattern error:

Cycle error:

Figure Q1.1 Discrete Perceptron Classifier Training

Q1.2 [Continuous Perceptron Training] [25 marks]

The second classifier is a continuous perceptron with a bipolar logistic activation function

as shown in Figure Q1.2. Assign “−1” to all augmented inputs. For the training task of this classifier, the delta learning rule is used with an arbitrary selection of learning constant η = 0.2 with the same initial weight vector w1 in Question 1.1.

Assuming that the above training set may need to be recycled if necessary,

i) Calculate the weight vector w9 after one cycle and the weight vector w161 after 20 cycles. (A simulation code needs to be included)

ii) Obtain the cycle error at the end of each cycle and plot the cycle error curve. How would the weight vectors w9 and w161 classify the entire training set? Discuss your results.

iii) Change the learning constant to 0.6 (η =0.6) and create a plot of the cycle error curve. Compare this curve with the one presented in (ii), and provide a discussion on the differences observed.

iv) Provide a solution that can be implemented to achieve a classification error of zero after training.

Figure Q1.2 Continuous Perceptron Classifier Training

QUESTION TWO [50 marks]

Inverted Pendulum System

The inverted pendulum system shown in Figure Q2.1 consists of a pole and a trolley on which the pole is hinged. The trolley moves on the rail tracks to its right or left, depending on the force exerted on the trolley. The control goal is to balance the pole starting from nonzero conditions by applying appropriate force to the trolley.

Our control goal here is to balance the pole without regard to the trolley position and velocity, with x1 = θ and x2 = θ as the angular displacement and angular velocity of the pole. The relevant equation of motion is given by

Assume that trolley mass mc = 1.0 kg, pole mass m = 0.1 kg, half-length of pole l = 0.5 m, gravity acceleration g = 9.81m/s and F is the applied force in Newtons. From the above equation of motion, the state equations of this inverted pendulum system can be derived as

where

Assuming that the sampling time T = 0.02 sec, and using backward difference discretisation, the dynamics of the inverted pendulum system can be approximated by

The task here is to design a control system, whose inputs are x1∈[−0.2,0.2] rad, x2∈[−1.0, 1.0] rad/s, and whose output is F∈[−10, 10] N such that the final states will be x1=0 and x2=0.

Fuzzy logic is required for the control of this inverted pendulum system. In this simple fuzzy logic controller, a set of linguistic variables is chosen to represent 5 degrees of angular position x1 [−0.2, −0.1, 0, 0.1, 0.2], 5 degrees of angular velocity x2 [−1.0, −0.5, 0, 0.5, 1.0], and 5 degrees of control force F [−10, −5, 0, 5, 10] as shown in Figure Q2.2. The generic rule set in the form. of “Fuzzy Associate Memories” is shown in Figure Q2.3.

The initial states of this inverted pendulum system are given to

x1(1) = -0.05 rad and x2(1) = 0.4 rad/s.

2.1 If the Centre of Area (COA) defuzzification strategy is used with the fire strength αi of the i-th rule calculated from

i ) Determine the defuzzified control force F(1) and next state vectors [x1(2), x2(2)].

ii) Use the results of i), determine the next defuzzified control force F(2) and next state vectors [x1(3), x2(3)].    [35 marks]

2.2 If Mean of Maximum (MOM) defuzzification strategy is used with the fire strength αi of the i-th rule calculated from

Determine the defuzzified control force F(1) and the next state vector [x1(2), x2(2)]          [15 marks]

Figure Q2.1 An inverted pendulum system

Figure Q2.2 Membership functions of an inverted pendulum system

Figure Q2.3 Generic Fuzzy Associative Memories




热门主题

课程名

mktg2509 csci 2600 38170 lng302 csse3010 phas3226 77938 arch1162 engn4536/engn6536 acx5903 comp151101 phl245 cse12 comp9312 stat3016/6016 phas0038 comp2140 6qqmb312 xjco3011 rest0005 ematm0051 5qqmn219 lubs5062m eee8155 cege0100 eap033 artd1109 mat246 etc3430 ecmm462 mis102 inft6800 ddes9903 comp6521 comp9517 comp3331/9331 comp4337 comp6008 comp9414 bu.231.790.81 man00150m csb352h math1041 eengm4100 isys1002 08 6057cem mktg3504 mthm036 mtrx1701 mth3241 eeee3086 cmp-7038b cmp-7000a ints4010 econ2151 infs5710 fins5516 fin3309 fins5510 gsoe9340 math2007 math2036 soee5010 mark3088 infs3605 elec9714 comp2271 ma214 comp2211 infs3604 600426 sit254 acct3091 bbt405 msin0116 com107/com113 mark5826 sit120 comp9021 eco2101 eeen40700 cs253 ece3114 ecmm447 chns3000 math377 itd102 comp9444 comp(2041|9044) econ0060 econ7230 mgt001371 ecs-323 cs6250 mgdi60012 mdia2012 comm221001 comm5000 ma1008 engl642 econ241 com333 math367 mis201 nbs-7041x meek16104 econ2003 comm1190 mbas902 comp-1027 dpst1091 comp7315 eppd1033 m06 ee3025 msci231 bb113/bbs1063 fc709 comp3425 comp9417 econ42915 cb9101 math1102e chme0017 fc307 mkt60104 5522usst litr1-uc6201.200 ee1102 cosc2803 math39512 omp9727 int2067/int5051 bsb151 mgt253 fc021 babs2202 mis2002s phya21 18-213 cege0012 mdia1002 math38032 mech5125 07 cisc102 mgx3110 cs240 11175 fin3020s eco3420 ictten622 comp9727 cpt111 de114102d mgm320h5s bafi1019 math21112 efim20036 mn-3503 fins5568 110.807 bcpm000028 info6030 bma0092 bcpm0054 math20212 ce335 cs365 cenv6141 ftec5580 math2010 ec3450 comm1170 ecmt1010 csci-ua.0480-003 econ12-200 ib3960 ectb60h3f cs247—assignment tk3163 ics3u ib3j80 comp20008 comp9334 eppd1063 acct2343 cct109 isys1055/3412 math350-real math2014 eec180 stat141b econ2101 msinm014/msing014/msing014b fit2004 comp643 bu1002 cm2030
联系我们
EMail: 99515681@qq.com
QQ: 99515681
留学生作业帮-留学生的知心伴侣!
工作时间:08:00-21:00
python代写
微信客服:codinghelp
站长地图