SlideShare a Scribd company logo
1 of 5
Nonlinear Systems and Control
1. Sliding Mode Control Warm-Up We will work on the system
x˙1 = x2 + ax1 sin(x1)
x˙2 = bx1x2 + u (1)
where a and b are unknown constants, but we know that 0 ≤ |a| ≤
2 and 1 ≤ |b| ≤ 3.
(a) Show that this system is state feedback linearizable. Assume
that aˆ = 1 and ˆb = 1.5 are nominal values of a and b that you
will use for your feedback linearizing controller; furthermore,
assume for now that a = aˆ and b = ˆb. Simulate your controller
by regulating the states to zero.
(b) Now suppose that a 6= aˆ and b 6= ˆb, and that the real
values of a and b are a = −1, b = 2. Using Matlab, plot the phase
portrait of the open-loop system (1), and identify the regions
where the system exhibits different behaviors.
(c) Explain why it is not possible anymore to use your
controller from (a) when a 6= aˆ and b 6= ˆb and guarantee
convergence to zero. In particular pay attention to the
diffeomorphism and the controller itself. Verify by setting a =
−1, b = 2 in your simulation with the same u and
diffeomorphism you got in (a). Hint: be sure to use aˆ = 1 and ˆb
= 1.5 to do your coordinate transformation and to compute your
controller, since you assume not to know the real values for
control design purposes! At the same time, use the real a = −1
and b = 2 values in your simulation.
(d) Instead of feedback linearization, you will now implement a
sliding mode controller. The approach is to figure out what x2
should be if we considered it as an input to the x˙1 equation so
that x1 is driven to zero. Design a linear manifold of the form s
= cx1 +x2 that does the job by considering what happens when s
= 0. Next, analyze the dynamics of s and determine a sliding
mode controller that drives s to zero (and consequently x to
zero).
(e) Simulate your sliding mode design. Note that if you use the
“sign” function in Matlab, ode45 will take a very long time to
run. Instead, it is suggested that you use the approximation ,
where
if y ≥ 1
satif − 1 < y < 1
if y ≤ −1
Tune to understand the trade-off involved.
2. Sliding Mode Control for the van der Pol Equation The
controlled van der Pol system is given by
x˙1 = x2
where and µ are positive constants, and u is the control input.
(a) Pick values for and µ, and verify via simulation that for u =
1 the van der Pol system exhibits a stable limit cycle outside the
surface , and that for u = −1 there exists an unstable limit cycle
outside the same surface.
(b) Define the sliding manifold, where r < 1/µ. Show
analytically that if we restrict the motion of the system to the
surface s = 0 (that is, we force s(t) ≡ 0), then the resulting
behavior is that of the linear harmonic oscillator
x˙1 = x2 x˙2 = −ω2x1,
which exhibits a sinusoidal oscillation of frequency ω and
amplitude r.
(c) Design a sliding mode controller that drives all trajectories
whose initial condition is withinthe region {x ∈ R2 : |x1| < 1/µ}
to the manifold s = 0, and then has the states slide on that
manifold towards the origin. Simulate your controller and verify
that it is able to regulate the state to zero. Show your plots of x
vs time and x2 vs x1 to demonstrate your design.
3. MIMO Control of a Two-Link Planar Arm
The robot arm in Figure 1 consists of two links. The first one
mounted on a rigid base by means of a frictionless hinge and the
second mounted at the end of link one. The joint axes z0 and z1
are normal to the page. We establish the base frame x0y0z0 as
the work space frame, which means the arm moves within the x
− y plane. The inputs to the system are always the torques τ1
and τ2 applied at the joints.
Figure 1: Two-link planar manipulator.
A dynamic model of this system can be derived using
Lagrangian equations and is given by
,
where
H11 = I1 + I2 + m1lc21 + m2[l12 + lc22 + 2l1lc2 cos(θ2)],
H22 = I2 + m2lc22,
H12 = H21 = I2 + m2[lc22 + l1lc2 cos(θ2)], h = m2l1lc2
sin(θ2),
g1 = m1lc1g cos(θ1) + m2g[lc2 cos(θ1 + θ2) + l1 cos(θ1)], g2 =
m2lc2g cos(θ1 + θ2).
In this project, we use the following parameter values: m1 =
1.0kg, mass of link one; m2 = 1.0kg, mass of link two; l1 =
1.0m, length of link one; l2 = 1.0m, length of link two; lc1 =
0.5m, distance from the joint of link one to its center of gravity;
lc2g = 0.5m, distance from the joint of link two to its center of
gravity; I1 = 0.2kgm2, lengthwise centroidal inertia of link one;
I2 = 0.2kgm2, lengthwise centroidal inertia of link two; and g =
9.804m/s2, acceleration of gravity.
(a) First, you will do joint space MIMO control of the arm,
where the inputs are the two torquesand the outputs are the joint
angles θ1 and θ2. Write a MIMO state space representation of
the system dynamics. Then design the MIMO state feedback
controllers (τ1 and τ2) for this system that regulate all the states
to zero, and simulate the closed loop system for the initial
conditions . Make sure you tune well the parameters of
controllers, plot your controllers and all the states versus time,
and provide an interpretation of your plot.
(b) Second, we want to control the end-effector of the arm to
generate a path in x − y plane. The outputs are the position
coordinates x and y (z is always zero) of the end-effector. One
way to approach this problem is to formulate the system directly
into the end-effector coordinates. Let f : Q → R2 be a smooth
and invertible mapping between the joint vector Θ = [θ1,θ2]> ∈
Q and the workspace variables X = [X0,Y0]> ∈ R2. The space
Q is a suitably chosen range of angles for θ1 and θ2, and X =
[X0,Y0]> is the position of the end-effector on the (x0 − y0)
plane. In other words,
X = f(Θ),
so that the position of the end-effector can be computed from
the two joint angles.
The mapping f is known as the arm’s forward kinematics, and it
can lead us directly into so-called work space control, which
you will perform instead of joint space control as done in part
(a). There exists a relationship between the vector of linear
velocities of the end-effector X˙ and the vector of velocities of
joint variables Θ˙ , given by X˙ = JΘ˙ , where J is known as the
Jacobian matrix.
Derive the forward kinematic function f : Q → R2 using
trigonometry, and then show that the Jacobian is given by
.
Next, derive the new MIMO state space representation of the
system dynamics, where now the state vector is X, instead of Θ.
Design the MIMO state feedback controllers (τˆ1 and τˆ2) for
this system that track the reference path below
,
and verify your design with a simulation for the initial
conditions θ1(0) = 0, θ˙1(0) = 0, θ2(0) = 0.2, θ˙2(0) = 0. Plot
your control signals and all the states versus time, and
demonstrate an animation of the arm’s motion (use the example
MATLAB code provided on Isidore).
(c) Finally, consider that normally the two-link arm has two
configurations (i.e., elbow up and elbow down) for a particular
non-singularity position of the end-effector. However, your
closed-loop system always picks one solution from the two
possible solutions. Why is this?
Warning: During your work space MIMO control, there exist
some singularity positions when θ2 = kπ, where k = 0,±1,±2,···.
The Jacobian matrix is not invertible and the controllers will be
infinitely large at such positions. Please avoid these positions
when you try to test your controllers!
General notes and hints:
· The report to be turned in should be typed. I expect a
professional-looking report, technically sound and easy to read.
· Provide plots for all simulations that are requested. Make sure
your plots are clear (do not use jpg files!), with relevant titles
and axes labeled, and using a legend whenever several signals
are plotted together. Any unclear or hard to read plot will cause
you to lose points.
· Keep your report succinct and to the point. Proofread it and
spell check it. Poor English in your report will cause you to lose
points.
· Turn in your report via Isidore as a PDF file (no other format
will be accepted), and upload your code uncompressed.
2
4

More Related Content

Similar to Nonlinear Systems and Control1. Sliding Mode Control Warm-Up W.docx

LAB #2Escape VelocityGoal Determine the initial veloc.docx
LAB #2Escape VelocityGoal Determine the initial veloc.docxLAB #2Escape VelocityGoal Determine the initial veloc.docx
LAB #2Escape VelocityGoal Determine the initial veloc.docxDIPESH30
 
Robotics_Final_Paper_Folza
Robotics_Final_Paper_FolzaRobotics_Final_Paper_Folza
Robotics_Final_Paper_FolzaAlex Folz
 
Reachability Analysis "Control Of Dynamical Non-Linear Systems"
Reachability Analysis "Control Of Dynamical Non-Linear Systems" Reachability Analysis "Control Of Dynamical Non-Linear Systems"
Reachability Analysis "Control Of Dynamical Non-Linear Systems" M Reza Rahmati
 
Reachability Analysis Control of Non-Linear Dynamical Systems
Reachability Analysis Control of Non-Linear Dynamical SystemsReachability Analysis Control of Non-Linear Dynamical Systems
Reachability Analysis Control of Non-Linear Dynamical SystemsM Reza Rahmati
 
Ece 415 control systems, fall 2021 computer project 1
Ece 415 control systems, fall 2021 computer project  1 Ece 415 control systems, fall 2021 computer project  1
Ece 415 control systems, fall 2021 computer project 1 ronak56
 
DSP_FOEHU - MATLAB 01 - Discrete Time Signals and Systems
DSP_FOEHU - MATLAB 01 - Discrete Time Signals and SystemsDSP_FOEHU - MATLAB 01 - Discrete Time Signals and Systems
DSP_FOEHU - MATLAB 01 - Discrete Time Signals and SystemsAmr E. Mohamed
 
Computer Controlled Systems (solutions manual). Astrom. 3rd edition 1997
Computer Controlled Systems (solutions manual). Astrom. 3rd edition 1997Computer Controlled Systems (solutions manual). Astrom. 3rd edition 1997
Computer Controlled Systems (solutions manual). Astrom. 3rd edition 1997JOAQUIN REA
 
Adaptive dynamic programming for control
Adaptive dynamic programming for controlAdaptive dynamic programming for control
Adaptive dynamic programming for controlSpringer
 
Sloshing-aware MPC for upper stage attitude control
Sloshing-aware MPC for upper stage attitude controlSloshing-aware MPC for upper stage attitude control
Sloshing-aware MPC for upper stage attitude controlPantelis Sopasakis
 
ep ppt of it .pptx
ep ppt of it .pptxep ppt of it .pptx
ep ppt of it .pptxbsabjdsv
 
Modelling using differnt metods in matlab2 (2) (2) (2) (4) (1) (1).pptx
Modelling using differnt metods in matlab2 (2) (2) (2) (4) (1) (1).pptxModelling using differnt metods in matlab2 (2) (2) (2) (4) (1) (1).pptx
Modelling using differnt metods in matlab2 (2) (2) (2) (4) (1) (1).pptxKadiriIbrahim2
 

Similar to Nonlinear Systems and Control1. Sliding Mode Control Warm-Up W.docx (20)

Sol75
Sol75Sol75
Sol75
 
LAB #2Escape VelocityGoal Determine the initial veloc.docx
LAB #2Escape VelocityGoal Determine the initial veloc.docxLAB #2Escape VelocityGoal Determine the initial veloc.docx
LAB #2Escape VelocityGoal Determine the initial veloc.docx
 
Networking Assignment Help
Networking Assignment HelpNetworking Assignment Help
Networking Assignment Help
 
Robotics_Final_Paper_Folza
Robotics_Final_Paper_FolzaRobotics_Final_Paper_Folza
Robotics_Final_Paper_Folza
 
Discrete control
Discrete controlDiscrete control
Discrete control
 
Reachability Analysis "Control Of Dynamical Non-Linear Systems"
Reachability Analysis "Control Of Dynamical Non-Linear Systems" Reachability Analysis "Control Of Dynamical Non-Linear Systems"
Reachability Analysis "Control Of Dynamical Non-Linear Systems"
 
Reachability Analysis Control of Non-Linear Dynamical Systems
Reachability Analysis Control of Non-Linear Dynamical SystemsReachability Analysis Control of Non-Linear Dynamical Systems
Reachability Analysis Control of Non-Linear Dynamical Systems
 
Discrete control2
Discrete control2Discrete control2
Discrete control2
 
Ece 415 control systems, fall 2021 computer project 1
Ece 415 control systems, fall 2021 computer project  1 Ece 415 control systems, fall 2021 computer project  1
Ece 415 control systems, fall 2021 computer project 1
 
DSP_FOEHU - MATLAB 01 - Discrete Time Signals and Systems
DSP_FOEHU - MATLAB 01 - Discrete Time Signals and SystemsDSP_FOEHU - MATLAB 01 - Discrete Time Signals and Systems
DSP_FOEHU - MATLAB 01 - Discrete Time Signals and Systems
 
Computer Controlled Systems (solutions manual). Astrom. 3rd edition 1997
Computer Controlled Systems (solutions manual). Astrom. 3rd edition 1997Computer Controlled Systems (solutions manual). Astrom. 3rd edition 1997
Computer Controlled Systems (solutions manual). Astrom. 3rd edition 1997
 
Adaptive dynamic programming for control
Adaptive dynamic programming for controlAdaptive dynamic programming for control
Adaptive dynamic programming for control
 
Modern control 2
Modern control 2Modern control 2
Modern control 2
 
Assignment2 control
Assignment2 controlAssignment2 control
Assignment2 control
 
Sloshing-aware MPC for upper stage attitude control
Sloshing-aware MPC for upper stage attitude controlSloshing-aware MPC for upper stage attitude control
Sloshing-aware MPC for upper stage attitude control
 
ep ppt of it .pptx
ep ppt of it .pptxep ppt of it .pptx
ep ppt of it .pptx
 
Fss
FssFss
Fss
 
Modelling using differnt metods in matlab2 (2) (2) (2) (4) (1) (1).pptx
Modelling using differnt metods in matlab2 (2) (2) (2) (4) (1) (1).pptxModelling using differnt metods in matlab2 (2) (2) (2) (4) (1) (1).pptx
Modelling using differnt metods in matlab2 (2) (2) (2) (4) (1) (1).pptx
 
Proje kt
Proje ktProje kt
Proje kt
 
547 Writeup
547 Writeup547 Writeup
547 Writeup
 

More from henrymartin15260

NT2580 Week 1 Understanding IT Infrastructure Security An.docx
NT2580 Week 1 Understanding IT Infrastructure Security An.docxNT2580 Week 1 Understanding IT Infrastructure Security An.docx
NT2580 Week 1 Understanding IT Infrastructure Security An.docxhenrymartin15260
 
NTC362 Week 3OSI Model, Switching Systems, Network Channel Pr.docx
NTC362   Week 3OSI Model, Switching Systems, Network Channel Pr.docxNTC362   Week 3OSI Model, Switching Systems, Network Channel Pr.docx
NTC362 Week 3OSI Model, Switching Systems, Network Channel Pr.docxhenrymartin15260
 
NT2580 Week 4 Hardening a NetworkAnalysis 4.2Availability, In.docx
NT2580 Week 4 Hardening a NetworkAnalysis 4.2Availability, In.docxNT2580 Week 4 Hardening a NetworkAnalysis 4.2Availability, In.docx
NT2580 Week 4 Hardening a NetworkAnalysis 4.2Availability, In.docxhenrymartin15260
 
NTNU, May 2009 ntnu.nocbm 1 LEARNING AND MEMORY .docx
NTNU, May 2009 ntnu.nocbm 1 LEARNING AND MEMORY .docxNTNU, May 2009 ntnu.nocbm 1 LEARNING AND MEMORY .docx
NTNU, May 2009 ntnu.nocbm 1 LEARNING AND MEMORY .docxhenrymartin15260
 
nowHow to be Army StrongI was 18 years old when I saw my fa.docx
nowHow to be Army StrongI was 18 years old when I saw my fa.docxnowHow to be Army StrongI was 18 years old when I saw my fa.docx
nowHow to be Army StrongI was 18 years old when I saw my fa.docxhenrymartin15260
 
NR-351 Transitions in Professional NursingWebsite Evaluation T.docx
NR-351 Transitions in Professional NursingWebsite Evaluation T.docxNR-351 Transitions in Professional NursingWebsite Evaluation T.docx
NR-351 Transitions in Professional NursingWebsite Evaluation T.docxhenrymartin15260
 
Ntc 362 Week 2, Integrative Network Design Project , Part 1By Alucar.docx
Ntc 362 Week 2, Integrative Network Design Project , Part 1By Alucar.docxNtc 362 Week 2, Integrative Network Design Project , Part 1By Alucar.docx
Ntc 362 Week 2, Integrative Network Design Project , Part 1By Alucar.docxhenrymartin15260
 
NTHEMIND OF GREATCOMPANIESBy Scott BlanchardThe.docx
NTHEMIND OF GREATCOMPANIESBy Scott BlanchardThe.docxNTHEMIND OF GREATCOMPANIESBy Scott BlanchardThe.docx
NTHEMIND OF GREATCOMPANIESBy Scott BlanchardThe.docxhenrymartin15260
 
nR E E 693 5T o c o m p l e t e th i s e x a m y o u n.docx
nR E E 693 5T o c o m p l e t e th i s e x a m y o u n.docxnR E E 693 5T o c o m p l e t e th i s e x a m y o u n.docx
nR E E 693 5T o c o m p l e t e th i s e x a m y o u n.docxhenrymartin15260
 
NSG6001 Advanced Practice Nursing I Page 1 of 5 © 2007 S.docx
NSG6001 Advanced Practice Nursing I Page 1 of 5 © 2007 S.docxNSG6001 Advanced Practice Nursing I Page 1 of 5 © 2007 S.docx
NSG6001 Advanced Practice Nursing I Page 1 of 5 © 2007 S.docxhenrymartin15260
 
NR360 We Can But Dare We.docx Revised 5 ‐ 9 .docx
NR360   We   Can   But   Dare   We.docx   Revised   5 ‐ 9 .docxNR360   We   Can   But   Dare   We.docx   Revised   5 ‐ 9 .docx
NR360 We Can But Dare We.docx Revised 5 ‐ 9 .docxhenrymartin15260
 
ns;,eilrlt.lnterviewing is one HR function.docx
ns;,eilrlt.lnterviewing is one HR function.docxns;,eilrlt.lnterviewing is one HR function.docx
ns;,eilrlt.lnterviewing is one HR function.docxhenrymartin15260
 
NR443 Guidelines for Caring for PopulationsMilestone 2 As.docx
NR443 Guidelines for Caring for PopulationsMilestone 2 As.docxNR443 Guidelines for Caring for PopulationsMilestone 2 As.docx
NR443 Guidelines for Caring for PopulationsMilestone 2 As.docxhenrymartin15260
 
NRB Dec’99 1WHITHER THE EMERGENCY MANAGER 1Neil R Bri.docx
NRB Dec’99 1WHITHER THE EMERGENCY MANAGER 1Neil R Bri.docxNRB Dec’99 1WHITHER THE EMERGENCY MANAGER 1Neil R Bri.docx
NRB Dec’99 1WHITHER THE EMERGENCY MANAGER 1Neil R Bri.docxhenrymartin15260
 
Now, its time to create that treasure map to hide the treasur.docx
Now, its time to create that treasure map to hide the treasur.docxNow, its time to create that treasure map to hide the treasur.docx
Now, its time to create that treasure map to hide the treasur.docxhenrymartin15260
 
NR361 Information Systems in HealthcareInterview with a Nursing.docx
NR361 Information Systems in HealthcareInterview with a Nursing.docxNR361 Information Systems in HealthcareInterview with a Nursing.docx
NR361 Information Systems in HealthcareInterview with a Nursing.docxhenrymartin15260
 
NR360 Information Systems in Healthcare Team Technology Pr.docx
NR360 Information Systems in Healthcare Team Technology Pr.docxNR360 Information Systems in Healthcare Team Technology Pr.docx
NR360 Information Systems in Healthcare Team Technology Pr.docxhenrymartin15260
 
NR443 Guidelines for Caring for PopulationsMilestone 2 Assess.docx
NR443 Guidelines for Caring for PopulationsMilestone 2 Assess.docxNR443 Guidelines for Caring for PopulationsMilestone 2 Assess.docx
NR443 Guidelines for Caring for PopulationsMilestone 2 Assess.docxhenrymartin15260
 
Nowak Aesthetics, was founded by Dr. Eugene Nowak in 1999, in Ch.docx
Nowak Aesthetics, was founded by Dr. Eugene Nowak in 1999, in Ch.docxNowak Aesthetics, was founded by Dr. Eugene Nowak in 1999, in Ch.docx
Nowak Aesthetics, was founded by Dr. Eugene Nowak in 1999, in Ch.docxhenrymartin15260
 
NR305 Health Assessment Course Project Milestone #2 Nursing Di.docx
NR305 Health Assessment Course Project Milestone #2 Nursing Di.docxNR305 Health Assessment Course Project Milestone #2 Nursing Di.docx
NR305 Health Assessment Course Project Milestone #2 Nursing Di.docxhenrymartin15260
 

More from henrymartin15260 (20)

NT2580 Week 1 Understanding IT Infrastructure Security An.docx
NT2580 Week 1 Understanding IT Infrastructure Security An.docxNT2580 Week 1 Understanding IT Infrastructure Security An.docx
NT2580 Week 1 Understanding IT Infrastructure Security An.docx
 
NTC362 Week 3OSI Model, Switching Systems, Network Channel Pr.docx
NTC362   Week 3OSI Model, Switching Systems, Network Channel Pr.docxNTC362   Week 3OSI Model, Switching Systems, Network Channel Pr.docx
NTC362 Week 3OSI Model, Switching Systems, Network Channel Pr.docx
 
NT2580 Week 4 Hardening a NetworkAnalysis 4.2Availability, In.docx
NT2580 Week 4 Hardening a NetworkAnalysis 4.2Availability, In.docxNT2580 Week 4 Hardening a NetworkAnalysis 4.2Availability, In.docx
NT2580 Week 4 Hardening a NetworkAnalysis 4.2Availability, In.docx
 
NTNU, May 2009 ntnu.nocbm 1 LEARNING AND MEMORY .docx
NTNU, May 2009 ntnu.nocbm 1 LEARNING AND MEMORY .docxNTNU, May 2009 ntnu.nocbm 1 LEARNING AND MEMORY .docx
NTNU, May 2009 ntnu.nocbm 1 LEARNING AND MEMORY .docx
 
nowHow to be Army StrongI was 18 years old when I saw my fa.docx
nowHow to be Army StrongI was 18 years old when I saw my fa.docxnowHow to be Army StrongI was 18 years old when I saw my fa.docx
nowHow to be Army StrongI was 18 years old when I saw my fa.docx
 
NR-351 Transitions in Professional NursingWebsite Evaluation T.docx
NR-351 Transitions in Professional NursingWebsite Evaluation T.docxNR-351 Transitions in Professional NursingWebsite Evaluation T.docx
NR-351 Transitions in Professional NursingWebsite Evaluation T.docx
 
Ntc 362 Week 2, Integrative Network Design Project , Part 1By Alucar.docx
Ntc 362 Week 2, Integrative Network Design Project , Part 1By Alucar.docxNtc 362 Week 2, Integrative Network Design Project , Part 1By Alucar.docx
Ntc 362 Week 2, Integrative Network Design Project , Part 1By Alucar.docx
 
NTHEMIND OF GREATCOMPANIESBy Scott BlanchardThe.docx
NTHEMIND OF GREATCOMPANIESBy Scott BlanchardThe.docxNTHEMIND OF GREATCOMPANIESBy Scott BlanchardThe.docx
NTHEMIND OF GREATCOMPANIESBy Scott BlanchardThe.docx
 
nR E E 693 5T o c o m p l e t e th i s e x a m y o u n.docx
nR E E 693 5T o c o m p l e t e th i s e x a m y o u n.docxnR E E 693 5T o c o m p l e t e th i s e x a m y o u n.docx
nR E E 693 5T o c o m p l e t e th i s e x a m y o u n.docx
 
NSG6001 Advanced Practice Nursing I Page 1 of 5 © 2007 S.docx
NSG6001 Advanced Practice Nursing I Page 1 of 5 © 2007 S.docxNSG6001 Advanced Practice Nursing I Page 1 of 5 © 2007 S.docx
NSG6001 Advanced Practice Nursing I Page 1 of 5 © 2007 S.docx
 
NR360 We Can But Dare We.docx Revised 5 ‐ 9 .docx
NR360   We   Can   But   Dare   We.docx   Revised   5 ‐ 9 .docxNR360   We   Can   But   Dare   We.docx   Revised   5 ‐ 9 .docx
NR360 We Can But Dare We.docx Revised 5 ‐ 9 .docx
 
ns;,eilrlt.lnterviewing is one HR function.docx
ns;,eilrlt.lnterviewing is one HR function.docxns;,eilrlt.lnterviewing is one HR function.docx
ns;,eilrlt.lnterviewing is one HR function.docx
 
NR443 Guidelines for Caring for PopulationsMilestone 2 As.docx
NR443 Guidelines for Caring for PopulationsMilestone 2 As.docxNR443 Guidelines for Caring for PopulationsMilestone 2 As.docx
NR443 Guidelines for Caring for PopulationsMilestone 2 As.docx
 
NRB Dec’99 1WHITHER THE EMERGENCY MANAGER 1Neil R Bri.docx
NRB Dec’99 1WHITHER THE EMERGENCY MANAGER 1Neil R Bri.docxNRB Dec’99 1WHITHER THE EMERGENCY MANAGER 1Neil R Bri.docx
NRB Dec’99 1WHITHER THE EMERGENCY MANAGER 1Neil R Bri.docx
 
Now, its time to create that treasure map to hide the treasur.docx
Now, its time to create that treasure map to hide the treasur.docxNow, its time to create that treasure map to hide the treasur.docx
Now, its time to create that treasure map to hide the treasur.docx
 
NR361 Information Systems in HealthcareInterview with a Nursing.docx
NR361 Information Systems in HealthcareInterview with a Nursing.docxNR361 Information Systems in HealthcareInterview with a Nursing.docx
NR361 Information Systems in HealthcareInterview with a Nursing.docx
 
NR360 Information Systems in Healthcare Team Technology Pr.docx
NR360 Information Systems in Healthcare Team Technology Pr.docxNR360 Information Systems in Healthcare Team Technology Pr.docx
NR360 Information Systems in Healthcare Team Technology Pr.docx
 
NR443 Guidelines for Caring for PopulationsMilestone 2 Assess.docx
NR443 Guidelines for Caring for PopulationsMilestone 2 Assess.docxNR443 Guidelines for Caring for PopulationsMilestone 2 Assess.docx
NR443 Guidelines for Caring for PopulationsMilestone 2 Assess.docx
 
Nowak Aesthetics, was founded by Dr. Eugene Nowak in 1999, in Ch.docx
Nowak Aesthetics, was founded by Dr. Eugene Nowak in 1999, in Ch.docxNowak Aesthetics, was founded by Dr. Eugene Nowak in 1999, in Ch.docx
Nowak Aesthetics, was founded by Dr. Eugene Nowak in 1999, in Ch.docx
 
NR305 Health Assessment Course Project Milestone #2 Nursing Di.docx
NR305 Health Assessment Course Project Milestone #2 Nursing Di.docxNR305 Health Assessment Course Project Milestone #2 Nursing Di.docx
NR305 Health Assessment Course Project Milestone #2 Nursing Di.docx
 

Recently uploaded

POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.arsicmarija21
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupJonathanParaisoCruz
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfMahmoud M. Sallam
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaVirag Sontakke
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 

Recently uploaded (20)

POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized Group
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdf
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of India
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 

Nonlinear Systems and Control1. Sliding Mode Control Warm-Up W.docx

  • 1. Nonlinear Systems and Control 1. Sliding Mode Control Warm-Up We will work on the system x˙1 = x2 + ax1 sin(x1) x˙2 = bx1x2 + u (1) where a and b are unknown constants, but we know that 0 ≤ |a| ≤ 2 and 1 ≤ |b| ≤ 3. (a) Show that this system is state feedback linearizable. Assume that aˆ = 1 and ˆb = 1.5 are nominal values of a and b that you will use for your feedback linearizing controller; furthermore, assume for now that a = aˆ and b = ˆb. Simulate your controller by regulating the states to zero. (b) Now suppose that a 6= aˆ and b 6= ˆb, and that the real values of a and b are a = −1, b = 2. Using Matlab, plot the phase portrait of the open-loop system (1), and identify the regions where the system exhibits different behaviors. (c) Explain why it is not possible anymore to use your controller from (a) when a 6= aˆ and b 6= ˆb and guarantee convergence to zero. In particular pay attention to the diffeomorphism and the controller itself. Verify by setting a = −1, b = 2 in your simulation with the same u and diffeomorphism you got in (a). Hint: be sure to use aˆ = 1 and ˆb = 1.5 to do your coordinate transformation and to compute your controller, since you assume not to know the real values for control design purposes! At the same time, use the real a = −1 and b = 2 values in your simulation. (d) Instead of feedback linearization, you will now implement a sliding mode controller. The approach is to figure out what x2 should be if we considered it as an input to the x˙1 equation so that x1 is driven to zero. Design a linear manifold of the form s = cx1 +x2 that does the job by considering what happens when s = 0. Next, analyze the dynamics of s and determine a sliding mode controller that drives s to zero (and consequently x to zero).
  • 2. (e) Simulate your sliding mode design. Note that if you use the “sign” function in Matlab, ode45 will take a very long time to run. Instead, it is suggested that you use the approximation , where if y ≥ 1 satif − 1 < y < 1 if y ≤ −1 Tune to understand the trade-off involved. 2. Sliding Mode Control for the van der Pol Equation The controlled van der Pol system is given by x˙1 = x2 where and µ are positive constants, and u is the control input. (a) Pick values for and µ, and verify via simulation that for u = 1 the van der Pol system exhibits a stable limit cycle outside the surface , and that for u = −1 there exists an unstable limit cycle outside the same surface. (b) Define the sliding manifold, where r < 1/µ. Show analytically that if we restrict the motion of the system to the surface s = 0 (that is, we force s(t) ≡ 0), then the resulting behavior is that of the linear harmonic oscillator x˙1 = x2 x˙2 = −ω2x1, which exhibits a sinusoidal oscillation of frequency ω and amplitude r. (c) Design a sliding mode controller that drives all trajectories whose initial condition is withinthe region {x ∈ R2 : |x1| < 1/µ} to the manifold s = 0, and then has the states slide on that manifold towards the origin. Simulate your controller and verify that it is able to regulate the state to zero. Show your plots of x vs time and x2 vs x1 to demonstrate your design. 3. MIMO Control of a Two-Link Planar Arm The robot arm in Figure 1 consists of two links. The first one mounted on a rigid base by means of a frictionless hinge and the second mounted at the end of link one. The joint axes z0 and z1 are normal to the page. We establish the base frame x0y0z0 as the work space frame, which means the arm moves within the x
  • 3. − y plane. The inputs to the system are always the torques τ1 and τ2 applied at the joints. Figure 1: Two-link planar manipulator. A dynamic model of this system can be derived using Lagrangian equations and is given by , where H11 = I1 + I2 + m1lc21 + m2[l12 + lc22 + 2l1lc2 cos(θ2)], H22 = I2 + m2lc22, H12 = H21 = I2 + m2[lc22 + l1lc2 cos(θ2)], h = m2l1lc2 sin(θ2), g1 = m1lc1g cos(θ1) + m2g[lc2 cos(θ1 + θ2) + l1 cos(θ1)], g2 = m2lc2g cos(θ1 + θ2). In this project, we use the following parameter values: m1 = 1.0kg, mass of link one; m2 = 1.0kg, mass of link two; l1 = 1.0m, length of link one; l2 = 1.0m, length of link two; lc1 = 0.5m, distance from the joint of link one to its center of gravity; lc2g = 0.5m, distance from the joint of link two to its center of gravity; I1 = 0.2kgm2, lengthwise centroidal inertia of link one; I2 = 0.2kgm2, lengthwise centroidal inertia of link two; and g = 9.804m/s2, acceleration of gravity. (a) First, you will do joint space MIMO control of the arm, where the inputs are the two torquesand the outputs are the joint angles θ1 and θ2. Write a MIMO state space representation of the system dynamics. Then design the MIMO state feedback controllers (τ1 and τ2) for this system that regulate all the states to zero, and simulate the closed loop system for the initial conditions . Make sure you tune well the parameters of controllers, plot your controllers and all the states versus time, and provide an interpretation of your plot. (b) Second, we want to control the end-effector of the arm to generate a path in x − y plane. The outputs are the position coordinates x and y (z is always zero) of the end-effector. One way to approach this problem is to formulate the system directly into the end-effector coordinates. Let f : Q → R2 be a smooth
  • 4. and invertible mapping between the joint vector Θ = [θ1,θ2]> ∈ Q and the workspace variables X = [X0,Y0]> ∈ R2. The space Q is a suitably chosen range of angles for θ1 and θ2, and X = [X0,Y0]> is the position of the end-effector on the (x0 − y0) plane. In other words, X = f(Θ), so that the position of the end-effector can be computed from the two joint angles. The mapping f is known as the arm’s forward kinematics, and it can lead us directly into so-called work space control, which you will perform instead of joint space control as done in part (a). There exists a relationship between the vector of linear velocities of the end-effector X˙ and the vector of velocities of joint variables Θ˙ , given by X˙ = JΘ˙ , where J is known as the Jacobian matrix. Derive the forward kinematic function f : Q → R2 using trigonometry, and then show that the Jacobian is given by . Next, derive the new MIMO state space representation of the system dynamics, where now the state vector is X, instead of Θ. Design the MIMO state feedback controllers (τˆ1 and τˆ2) for this system that track the reference path below , and verify your design with a simulation for the initial conditions θ1(0) = 0, θ˙1(0) = 0, θ2(0) = 0.2, θ˙2(0) = 0. Plot your control signals and all the states versus time, and demonstrate an animation of the arm’s motion (use the example MATLAB code provided on Isidore). (c) Finally, consider that normally the two-link arm has two configurations (i.e., elbow up and elbow down) for a particular non-singularity position of the end-effector. However, your closed-loop system always picks one solution from the two possible solutions. Why is this? Warning: During your work space MIMO control, there exist some singularity positions when θ2 = kπ, where k = 0,±1,±2,···. The Jacobian matrix is not invertible and the controllers will be
  • 5. infinitely large at such positions. Please avoid these positions when you try to test your controllers! General notes and hints: · The report to be turned in should be typed. I expect a professional-looking report, technically sound and easy to read. · Provide plots for all simulations that are requested. Make sure your plots are clear (do not use jpg files!), with relevant titles and axes labeled, and using a legend whenever several signals are plotted together. Any unclear or hard to read plot will cause you to lose points. · Keep your report succinct and to the point. Proofread it and spell check it. Poor English in your report will cause you to lose points. · Turn in your report via Isidore as a PDF file (no other format will be accepted), and upload your code uncompressed. 2 4