最优控制的LQR案例

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

1OptimalControl:LQRCase2OptimalControlFormulation•Thesystem•Performancecostfunction00,,,xxuxfxttTmdttlJTtxux0,,3TheControlProblemFindthecontrolu=u*that:•minimizes(ormaximizes)theperformanceindexJ•subjecttotheconstraintofthesystemdynamicsf(x,u,t)4ApplyingOptimalityPrinciple11*,*,,,min,11tJdttltJttttxuxxuthispartisoptimalfor[t1,T]ifthewholetrajectoryisoptimalu*(t)tt1T5ApplyingOptimalityPrinciple11*,*,,,min,11tJdttltJttttxuxxuNote:11*????**,,,tJtJtJxxx6TheHamiltonian,HtJtltH,,,,,,*uxfxuxux7Hamilton-Jacobi-BellmanEq.tHtJ,,min*uxu8Optimalsolutionu*satisfiesHamilton-Jacobi-BellmanEq.tHtJ,,min*uxu0HuTmTTJ**,xx9Today'sFocusOptimalcontrolforthelineardynamicsystem00xxuBxAxttt10QuadraticCostFunction•Qpos.semi-definite,symmetric•Rpositivedefinite,symmetric–guaranteeseveryelementofuisconstrainedTTdtJTTtxQxRuuQxxTTT02111BuAxxRuuQxx*TT21JHHamiltonian:LinearCase12BuAxxRuuQxx*TT21JH0*TBxRuuJHGradientofH13TheOptimalControlu*Remember:RissymmetricT*T1*JxBRu14TheOptimalControlu*Remember:RissymmetricQ:WhatisXJ*?…T*T1*JxBRu15WhatisXJ*?TryacostsolutionJ*=1/2(xTPx)–quadraticinthestatex–P(t)isnn–Takeasymmetricmatrix–SolutionsatisfiesH-J-Bequation,socompute(J*/t)andXJ*…16WhatisXJ*?TryacostsolutionJ*=1/2(xTPx)–quadraticinthestatex–P(t)isnn–TakeasymmetricmatrixtJttJPxxxPxT*T*,2117Substituteu*intoH-J-B…T*T1**T***2121,,JJJtHtJxBBRxAxxQxxux18Substitute(J*/t),XJ*PxBPBRxPAxxQxxxPxT1TTTT21212119Substitute(J*/t),XJ*NotethatSinceH-J-Beq.istrueforallx…PxBPBRxPAxxQxxxPxT1TTTT212121PA12ATPPA20Substitute(J*/t),XJ*NotethatSinceH-J-Beq.istrueforallx…PxBPBRxPAxxQxxxPxT1TTTT212121PA12ATPPA21TheRiccatiEquationPBPBRPAPAQPT1T22TheRiccatiEquationAsolutionmustsatisfytheboundarycondition:PBPBRPAPAQPT1TTTTmTTJQPxx**,23SummaryLQRoptimalcontrolu*isgivenby:wherePsatisfiestheRiccatieqn:PBPBRPAPAQPT1TTTQPPxBRuT1*24NotesontheLQRsolution…•astatefeedbacksolutionK=R-1BTP•n(n+1)/2termsinPtosolve•Doesnotrequirex(t0)tosolvethisproblem!Optimalsolutionisindependentofinitialstate!25InfiniteHorizonCase,T=0021=,TT0TTRRQQRuuQxxCxyBuAxxdtJ26InfiniteHorizonRegulatorNotesSinceT=,additionalconditions:1.(A,B)stabilizable;preventsu*frombeingunstable2.(A,C)detectable;letQ=CTCsounstablemodesmustcontributetocostJ27AlgebraicRiccatiEquationInfinitetimehorizonmeansRiccatiequationbecomesalgebraic:QPBPBRPAPAT1T28TheoremforT=caseIf1)and2)hold,thenu*=–R-1BTPxisastabilizingfeedbackcontrolthatminimizesJ,wherePistheuniquesymmetricpositivedefinitesolutionoftheAlgebraicRiccatiEquation.29NoteonTheorem•Toproveasymptoticstability,trytheLyapunovfunctionV(x)=(1/2)xTPx–NotethatPisconstant•Therearen(n+1)/2equationstosolveintheA.R.E.30UsefulMatlabCommand[K,P,E]=LQR(A,B,Q,R)•K:optimalfeedbackgainforu=-Kx•P:steady-statesolutiontotheassociatedalgebraicRiccatiequationATP+PA–PBR-1BTP=–Q•E:closed-loopeigenvalues(A-B*K)31Example(simplemagneticlevitationmodel)•A=[01;10]•B=[0;1]•Q=eye(2,2)•R=1•[K,P,E]=LQR(A,B,Q,R)32MatlabSolutionK=2.41422.4142P=3.41422.41422.41422.4142E=-1.4142-1.000033Comparetoapoleplacement•A=[01;10]•B=[0;1]•Po=[–1+j–1–j]•K=PLACE(A,B,Po)K=[32]34poleplacedLQR0246810-0.200.20.40.60.81time(s)35Comments•TrysolvingtheAREfortheexampleproblembyhand!•RememberthatLQRisoptimalwithrespecttothecostfunctionJ.•ThereexistsQandRthatyieldpoleplacementresults!•Otheroptimalitycriteriaabound!

1 / 35
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功