首页
网站开发
桌面应用
管理软件
微信开发
App开发
嵌入式软件
工具软件
数据采集与分析
其他
首页
>
> 详细
代写Python编程|代做Processing|代做Web开发|代写R语言编程
项目预算:
开发周期:
发布时间:
要求地区:
Fuzzy Controller for the Inverted Pendulum Problem
Maximum number of members per group: 3 students
Deadline for submission: October 10
Instructions
Your task is mainly to design and implement a fuzzy controller (Zero-order Sugeno Fuzzy Inference System) for balancing an inverted pendulum system. A written report detailing your system design and characterisation of its performance must accompany your program submission.
A start-up program using second-order derivative physics equations and simple graphics library are provided, simulating the complete dynamics of the cart-pendulum system. In addition, it also includes a function for collecting data points for plotting a control surface, and a fuzzy logic engine that you can utilise to implement a complete fuzzy controller. A tutorial on how to use the engine is provided in the lecture slides (Lecture - Fuzzy Logic Engine.pptx – we discussed this in the lectures).
Details of the requirements:
Part 1: Fuzzy System Design
1.Use the following inputs (combine the inputs together, as suggested in Yamakawa’s paper):
Combined inputs (Yamakawa)
X = (A * theta) + (B * theta_dot)
Y = (C*x) + (D * x_dot)
Definition of inputs:
x – position of the cart
x_dot – horizontal velocity of the cart
theta – angle of the pole with respect to the vertical
theta_dot – angular velocity of the pole
A, B, C and D are positive constants; they are empirically defined
2.Use the fuzzy control rules defined by Yamakawa.
Reference: Takeshi Yamakawa’s paper, titled “A Fuzzy Inference Engine in Nonlinear Analog Mode and Its Application to a Fuzzy Logic Control”. Refer to page 517 of his paper to see what inputs were used in his design. This research paper is available for download in our Stream website.
Yamakawa defined 13 rules to solves the control problem. Optionally, you may extend Yamakawa’s rules to 25 rules.
3.Define the rule outputs associated with each of the fuzzy rules (e.g. NL = -100, PL = 100, etc.). Note that we are implementing a Zero-Order Sugeno Fuzzy Inference System, and so the rule outputs are constants.
4.Define the fuzzy sets corresponding to the linguistic terms in your fuzzy rules.
The fuzzy sets need to be defined according to the range of possible values for the input variables.
Example: Input range of input variables:
oX: [-4.0 – 4.0]
oY: [-4.0 – 4.0]
5.Implement the fuzzy sets as membership functions in your program. You may use any of the membership functions we discussed in class. (The fuzzy engine contains the implementation of trapezoidal membership functions, if you want to use it.)
6.Define the defuzzification method for your system. (The fuzzy engine contains a centroid defuzzification method.)
7.Incorporate your fuzzy controller into the start-up program provided. (Tips on where to insert codes are provided in the start-up codes)
8.Note that in the start-up codes, there are blocks of statements that should not be modified as they are part of the implementation of the dynamics of the system. There are comments in the codes that identify these blocks of codes.
9.It is up to you to write and add any functions, classes or data structures that you may require to complete the system.
10.Your simulation system should demonstrate that the fuzzy controller is able to balance the inverted pendulum, given an initial pole angle and position.
Part 2: System Calibration
11.Calibrate your fuzzy controller by modifying the rules, shape of membership functions, etc. until it is able to balance the pendulum without exceeding the boundaries of the platform. Aim for a control solution that can balance the pendulum in a smooth fashion and can bring the cart-pole system at the centre of the platform at zero-degree angle with respect to the vertical axis.
Part 3: Results and Analysis
12.Generate the control surface data points using void generateControlSurface().
The control surface comes with the following dimensions: angle of pole, angular velocity of pole, and Force calculated by the fuzzy controller.
Calling generateControlSurface() will apply all the necessary physics equations to update the state of the world. It will also store the data points into a text file (data_angle_vs_angle_dot.txt) that you can use later for 3D surface plotting using MS-Excel.
Note that a statement calling generateControlSurface() is already in place inside the main function
13.Plot the control surface using MS-Excel. Include the Excel file in your assignment submission.
MS-Excel requires a specific format for the tabulation of data points for 3D surface generation. Therefore, to plot a 3D surface, make sure that you delete the first zero value on the first row (upper-left corner) of the data points in the worksheet. The zero value is only there to align the columns properly, as required by the tabulation of data points by Excel.
14.Test the fuzzy controller system by setting the initial angle of the pole with different values. The bigger the initial angle is, the more challenging the problem becomes for the controller. Record the biggest angle magnitude that your system can successfully handle.
1.Characterise your control system by answering the following questions:
oAt x=1, what is the largest initial angle (most positive) and smallest (most negative) angle that your fuzzy controller can handle, without causing the cart-pole system to exceed the boundaries of the platform [-2.4m, 2.4m], and without dropping the pole on the ground?
You can find the answer to this question by typing the initial angle of the pole on the command prompt window, then pressing the
key (this is already in place in the start-up codes). The inverted pendulum simulation will run afterwards.
Note that the program automatically converts the input angle to radians.
oFor how long can your fuzzy controller successfully balance the pendulum?
Part 4: Documentation
Fuzzy Logic Controller: Discuss the complete fuzzy system that you have designed
oSystem Design:
Show details of the inputs, fuzzy rules, fuzzy sets, rule outputs and defuzzification method
Follow the algorithm documentation guide provided.
oController Performance:
At x=1, specify the smallest (most negative) and biggest (most positive) initial angles that your fuzzy controller can successfully handle.
Specify the maximum time your fuzzy controller can successfully balance the pendulum, and at what initial pole angle and cart position.
Write all these observed values as part of the checklist.
oSubmit this as a type-written report (e.g. MS-Word/ OpenOffice/pdf file).
Control Surface: Show the plot of the (3D) control surface (angle vs. angular velocity)
oSubmit the actual MS-Excel file.
Criteria for marking
Documentation – 15%
Fuzzy Logic system implementation and calibration – 85%
Submission Requirements Checklist:
1.Complete source code of your fuzzy controller and simulation system (*.cpp, *.h, makefile, visual studio solution, etc.)
2.Documentation: (MS-Word/OpenOffice/pdf) and MS-Excel files
References
1.Journal article: T. Yamakawa, A Fuzzy Inference Engine in Nonlinear Analog Mode and Its Application to a Fuzzy Logic Controller, IEEE Transaction on Neural Networks, vol. 4, no. 3, pp. 496-522, 1993
2.Lectures from the paper’s Stream website
3.Neural Network and Fuzzy Logic Applications in C/C++ Paperback – August, 1994
by Stephen T. Welstead
Nothing follows.
软件开发、广告设计客服
QQ:99515681
邮箱:99515681@qq.com
工作时间:8:00-23:00
微信:codinghelp
热点项目
更多
代做ceng0013 design of a pro...
2024-11-13
代做mech4880 refrigeration a...
2024-11-13
代做mcd1350: media studies a...
2024-11-13
代写fint b338f (autumn 2024)...
2024-11-13
代做engd3000 design of tunab...
2024-11-13
代做n1611 financial economet...
2024-11-13
代做econ 2331: economic and ...
2024-11-13
代做cs770/870 assignment 8代...
2024-11-13
代写amath 481/581 autumn qua...
2024-11-13
代做ccc8013 the process of s...
2024-11-13
代写csit040 – modern comput...
2024-11-13
代写econ 2070: introduc2on t...
2024-11-13
代写cct260, project 2 person...
2024-11-13
热点标签
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
联系我们
- QQ: 9951568
© 2021
www.rj363.com
软件定制开发网!