免费预览已结束,剩余1页可下载查看
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
Chance-Constrained Trajectory Optimization for Non-linear Systems with Unknown Stochastic Dynamics Onur Celik1, Hany Abdulsamad2and Jan Peters2,3 AbstractIterative trajectory optimization techniques for non-linear dynamical systems are among the most powerful and sample-effi cient methods of model-based reinforcement learning and approximate optimal control. By leveraging time-variant local linear-quadratic approximations of system dynamics and reward, such methods can fi nd both a target-optimal trajectory and time-variant optimal feedback controllers. However, the local linear-quadratic assumptions are a major source of opti- mization bias that leads to catastrophic greedy updates, raising the issue of proper regularization. Moreover, the approximate models disregard for any physical state-action limits of the system causes further aggravation of the problem, as the optimization moves towards unreachable areas of the state- action space. In this paper, we address the issue of constrained systems in the scenario of online-fi tted stochastic linear dy- namics. We propose modeling state and action physical limits as probabilistic chance constraints linear in both state and action and introduce a new trajectory optimization technique that integrates these probabilistic constraints by optimizing a relaxed quadratic program. Our empirical evaluations show a signifi cant improvement in learning robustness, which enables our approach to perform more effective updates and avoid premature convergence observed in state-of-the-art algorithms. I. INTRODUCTION Model-based reinforcement learning has played an impor- tant role in the latest surge of popular research interest in learning-control of autonomous systems 1. More specifi - cally, trajectory-centric optimization techniques of non-linear dynamics have proven to be extremely sample effi cient in comparison to model-free policy search approaches 24. With the notable exception of 5, model-based trajec- tory optimization techniques 6, 7 are closely related to differential dynamic programming methods (DDP), initially presented in 8 and further generalized in 9. DDP is a powerful approach for generating optimal trajectories with optimal time-variant feedback controllers. By relying on linear-quadratic approximations of the dynamics and reward around a nominal trajectory, DDP-based methods can lever- age the local approximations to iteratively optimize both the trajectory and tracking feedback controllers in closed-form via dynamic programming 10. This view of control has a computational advantage over direct optimization techniques such as collocation methods, which solve large optimization *This work has received funding from the European Unions Horizon 2020 research and innovation program under grant agreement # 640554. 1Onur Celik is with the Department of Computer Science, Universtit at T ubingen.mevluet-onur.celikuni-tuebingen.de 2Hany Abdulsamad and Jan Peters are with the Department of Computer Science, Intelligent Autonomous Systems, Technische Universtit at Darm- stadt.abdulsamad, petersias.tu-darmstadt.de 3Jan Peters is with the Max Planck Institute for Intelligent Systems. problems directly in the trajectory space and generally result only in open-loop control sequences 11. However, despite the overwhelming success of DDP, it still suffers from multiple shortcomings. On the one hand, the greedy exploitation of poor local approximations of dynam- ics is a major problem that leads to premature convergence. This issue has been effectively addressed in recent research by proposing different schemes of regularization 2, 6, 7. On the other hand, state and action constraints present a serious challenge, as they introduce hard non-linearities, that cannot be straightforwardly incorporated into the dynamic programming framework. The effect of constraints becomes more severe in settings where a global model is not available for automatic differentiation, hence requiring the linear ap- proximation of the dynamics to be fi tted online from samples. We view these issues of DDP as interlocked. The inability of time-variant local linear models to consider state and action constraints results in updates that exploit unreachable parts of the state-actions space, leading to catastrophically poor linear-quadratic approximations in regions subject to hard non-linearities. Moreover, considering constraints be- comes more challenging in scenarios with stochastic dynam- ics, in that the true state of the system is hidden and only available through suffi cient statistics. Another crucial aspect in a stochastic setting is the infi nite support of the noisy measurements, which results in the constraints being active over the whole state-action space. To address these issues, we propose an augmented view of DDP that introduces the physical limits as probabilistic chance constraints linear in state and action. When con- sidering time-variant linear-Gaussian approximations of the dynamic, we can relax the generally non-convex chance constraints by applying Booles inequality. This relaxation allows us to formulate an additional quadratic program that forces the optimized nominal trajectory to stay in a feasible state-action region with high probability, all while considering the feedback gains optimized by DDP. Several approaches to trajectory optimization for non- linear systems address the problem of constrained dynamics on different levels. In the domain of deterministic environ- ments, Tassa et al. considered action box-constraints in 12, while the authors in 13 introduce soft state-action limits via a Lagrange function augmentation. More sophisticated integration of constraints is presented in 14, in which the authors formulate a quadratic program to determine the active set of constraints at every iteration. In a stochastic setting, the work by Van Den Berg et. al 15 introduces probabilistic constraints as direct penalty terms on the cost function. 2019 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS) Macau, China, November 4-8, 2019 978-1-7281-4003-2/19/$31.00 2019 IEEE6828 Furthermore, probabilistic constraints are considered in the context of linear optimal control. In 16 the authors optimally handle probabilistic constraints by ellipsoidal re- laxation for fi nite-horizon open-loop scenarios, while in 17 a similar problem is tackled by applying Booles inequality. In 18 Vitus et al. propose an algorithm to extend the work in 17 and 16 by considering closed-loop uncertainty and optimizing the risk allocation. Finally, in 19 the problem of infeasible initial solutions is addressed by progressively introducing the constraint into the objective. We situate our contribution in the class of differential dy- namic programming for stochastic non-linear systems subject to probabilistic constraints in state and action. We empirically show that our proposed approach can deal with highly non- linear constrained dynamic environments, leading to better overall performance and a robust learning process by virtue of improved online-fi tted local approximations. II. CHANCE-CONSTRAINEDOPTIMIZATION Chance constraints arise naturally in different fi elds of optimization when considering stochastic systems. For an overview, we refer to 20. Dealing with such probabilistic constraints proves to be challenging, as they are often non- convex and hard to evaluate without resolving to compu- tationally expensive sampling techniques. These diffi culties have motivated further research into tractable forms of chance constraints, which led to several convex approxima- tions 21. This work will focus on using Booles inequality for constraint relaxation. A detailed description in the context of trajectories will follow in Section II-B. A. Problem Formulation Consider the constrained optimal control problem with probabilistic state and action constraints and unknown stochastic time-discrete transition dynamics max A J(s,A), s.t.st+1 P(st+1|st,at), Pr(s0:T S) 1 , Pr(a0:T1 A) 1 , where S and A are the feasible state and action spaces respectively. The probability levels , are hyperparameters that infl uence the risk behavior in terms of violating the constraints. The goal of this constrained optimization is to maximize the objective by fi nding the optimal action sequence A. In general, we consider the expected cumulative reward for a trajectory of length T in the quadratic form J(s,A) = E hT1 X t=0 (st sg,t)|Mt(st sg,t) + a| tDtat + (sT sg,T)|MT(sT sg,T) i ,(1) where M and D are positive-defi nite weight matrices of appropriate dimensions and sgis the target state. Note that a quadratic objective is not necessarily required, and non-quadratic objectives can be locally approximated by quadratic forms. B. Relaxation of Chance Constraints Chance constraints can be conservatively relaxed by apply- ing Booles inequality 2224. For the purpose of brevity, only upper-bound state constraints are considered. How- ever, the same relaxation procedure can be straightforwardly applied to obtain a lower-bound and to relax the action constraints. Generally, the state-linear joint chance constraint for a whole trajectory is formulated as Pr(s0:T S) = Pr( T t=0 st S) 1 , = Pr( T t=0 h| tst bt) 1 . (2) where htand bt parameterize the half-plane defi ned by the constraints. Consequently, the probability of a trajectory to be within a feasible set is constrained to be higher than a probability 1 . In the framework of stochastic program- ming, it is usually benefi cial to reformulate Equation (2) into separate inequalities over individual constraints 20, which is achieved by transforming the intersection operator into a union operator according to rules of probability. Pr( T t=0 h| tst bt) = 1 Pr( T t=0 h| tst bt), 1 T X t=0 1 Pr(h| tst bt). (3) The sum in Inequality (3) can now be treated as a collection of single probabilities per time-step T X t=0 1 Pr(h| tst bt) , Pr(h| tst bt) 1 t, (4) where PT t=0t = . By assuming a Gaussian probability density, a common assumption in control applications, Equa- tion (4) is rewritten using the cumulative density function 1 2 1 + erf bt h| tst p2h| tstht !# 1 t, bt h| tst q 2h| tstht erf1(1 2t) 0,(5) where stand stare the state mean and covariance re- spectively. Moreover, due to properties of the error function, the inequality PT t=0t 0.5 is conservatively enforced by setting t= /T and requiring 0.5, as in 24. C. Iterative Linear Quadratic Gaussian Control (iLQG) Webaseourtrajectoryoptimizationtechniqueon DDP/iLQG methods. This section provides a short overview on the principles of DDP 8 and iLQG 2. For any arbitrary time-index reward function Rt, the trajectory optimization objective is the expected cumulative reward J(s,A) = E T1 X t=0 Rt(st,at) + RT(sT) # . 6829 DDP and iLQG leverage the principle of dynamic program- ming to simplify the optimization over a complete sequence of actions a0:T1to an optimization over single actions at for each time-step. For this purpose the time-indexed state- value function is introduced Vt(s)= max at Rt(st,at) + X st+1 Vt+1(st+1)P(st+1|st,at) , over which the dynamic programming backward recur- sion is performed. By assuming linear transitions dynam- ics and a quadratic rewards along a nominal trajectory, optimal feedback controllers can be derived in closed- form. DDP and iLQG consider the perturbed state-action- value function Qt(s,a)=Rt(st+ s,at+ a) Rt(st,at)+Vt+1(P(st+ s,at+ a)Vt+1(P(st,at), resulting from a second order Taylor approximation Qt(s,a) 1 2 1 s a | 0Q| s,t Q| a,t Qs,tQss,tQsa,t Qa,tQas,tQaa,t 1 s a . The subscripts s and a stand for the fi rst and second order approximations. The entries of Qt(s,a) are given as Qs,t= Rs,t+ P| s,tVs,t+1, Qa,t= Ra,t+ P| a,tVs,t+1, Qss,t= Rss,t+ P| s,tVss,t+1Ps,t+ Vs,t+1Pss,t, Qaa,t= Raa,t+ P| a,tVss,t+1Pa,t+ Vs,t+1Paa,t, Qas,t= Ras,t+ P| a,tVss,t+1Ps,t+ Vs,t+1Pas,t. The main difference of iLQG compared to DDP is in neglect- ing the second order derivatives of the dynamics in iLQG. Given these approximations the optimal feedback controller is given as a= Q1 aa,t(Qa+ Qas,ts) = Kts + kt. Inserting ainto Qt(s,a) returns the update equations of the state-value function per time-step Vt= 1 2Qa,tQ 1 aa,tQa,t, Vs,t= Qs,t Qa,tQ1 aa,tQas,t, Vss,t= Qss,t Qsa,tQ1 aa,tQas,t. During the forward pass, new trajectories of the stochastic non-linear dynamics are sampled by propagating the actions through the real system at= ar,t+ kt+ Kt(st sr,t), st+1 P(st+1|st,at),s0= sr,0,(6) where sr,t,ar,tdenote the mean state and action at time t from the last iteration and are also referred to as the nominal or reference trajectory, here denoted by the subscript r. Special care has to be taken during the backward pass of DDP and iLQG to ensure that Qaa,t is negative-defi nite, which has inspired different regularization schemes. In DDP, this regularization is commonly applied to Qaa,tas Qaa,t= Qaa,t I, with 0. However, other regularizations directly affecting the value function have been shown to be more effective 2, and will be used throughout this work. D. Augmented Linearized Closed-Loop System To formulate the chance-constrained optimization prob- lem, we fi rst introduce the notation and system description of the online-fi tted time-variant linear system. Following 19, our approach optimizes the feedforward terms of the control, while satisfying the constraints for the linearized dynamics and maintains the feedback gains computed during the backward pass of DDP/iLQG. Given N trajectories from the non-linear system as de- scribed in Equation (6), we fi t linear-Gaussian models to the sampled data via regularized linear regression. Consequently we obtain the transition and control matrices At,Bt, as well as the bias vector ctfor each time-step. The resulting time- variant linear dynamics st+1= Atst+Btat+ct+wt, with wt N(0,t), and the controller at= Kt(st sr,t) + kt+ar,tare used to formulate the closed-loop linear system st+1= Atst+ Btkt+ dt+ wt, where At= At+ BtKt and dt= ct BtKtsr,t+ Btar,t. To represent the closed-loop system over an entire trajec- tory we use the augmented notation s= s0 s1 . . . sT ,k= k0 k1 . . . kT1 , w= w0 w1 . . . wT1 ,A = I A0 . . . AT1 A0 , B= 00.0 B00.0 A1B0B1.0 . . . . . . . . AT1 A1B0 AT1 A2B1.BT1 , d= d0 d1 . . . dT1 ,G= 00.0 I0.0 A1I.0 . . . . . . . . AT1 A1 AT1 A2I , The augmented weighting matrices for the quadratic ob- jective take the form M = diag(M0,.,MT), D = diag(D0,.,DT1), MC= diag(M0+ K| 0D0K0,., MT1+ K| T1DT1KT1,MT), K = diag(K0,.,KT1), and the closed-loop linearized stochastic dynamics is written in terms of the augmented notation as s = As0+ Bk + G w + Gd,(7) which in turn can be decomposed to the mean and covari- ance of a Gaussian state density s= As0+ Bk + Gd, s= As0 A | + G w G |, where ware the stacked estimates of the covariance for each time-step, taken under the N samples drawn during the 6830 last forward pass. Furthermore, given the feedback gains, we compute the action covariance along the trajectory a= K As0 A | K | + KG w G | K |. E. Augmented Objective and Relaxed Chance Constraints We simplify Objective (1) by using the stacked notation and the closed-loop matrices from Section II-D J( s, a) = E s| MC s + E2 s| g M s E s| g M sg. . + E2 s| r K | DK s E2 a| r DK s E2k | DK s. . E s| r K | DK sr + E2 a| r DK sr + E2k | DK sr. . E a| r D ar E2k | D ar Ek | Dk. Given that the expectations are of linear-quadratic quantities under Gaussian densities, it is possible to evaluate this objective in closed-form. This objective depends only on the forward terms k and can be reformulated as J(k). Following the relaxation presented in Section II-B and using the stacked notation we can write the upper and lower state-linear chance constraints as buh | u s q 2h | u shu? erf1(1 2u) 0,(8) bl+h | l s+ q 2h | l shl? erf1(2l 1) 0,(9) where h and b parameterize the upper and lower half- planes of the state constraints and uand ldenote the probability values per time-step, all stacked and indexed by u and l respectively. Analogously, the action constraints of the closed-loop system can be formulated zu f | u( K( s sr) + ar+k) u 0,(10) zl+ f | l( K( s sr) + ar+k) + l 0,(11) where u= q 2f | u afu? erf1(1 2u) and l= q 2f | l afl?erf1(2l1) , f and z are the stacked half- plane parameters of the action constraints and u,lare the stacked upper and lower bound probabilities per time-step. The operator ? denotes the element-wise multiplication. F. Chance-Constrained Trajectory Optimization Based on the formulations introduced in Section II-D and Section II-E, it is possible to construct an optimization problem around the reference trajectory to fi nd a sequence of feedforward termsk that maintain the Constraints (8-11). The resulting optimization is a quadratic program with linear constraints in k. Thus, the probabilistic problem re- duces to a deterministic one, which can be solved effi ciently with many numerical solvers, for example, qpOASES 25 within the CasADi framework 26. The complete dynamic programming and optimization loop is described in Algo- rithm 1 and is summarized as follows: During an initial forward pass, we obtain N trajectory
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 糖尿病患者压力性损伤的护理
- 新冠防疫员考试试题及答案
- 宪法学期末模拟试题及答案
- 2026年冰川叙事AI音乐警示全球气候变暖危机
- 2026年养老院数字化转型 24小时AI监护机器人提升照护效能
- 2026注安《煤矿安全》真题及答案
- 2026年音乐表演专业人员资格考试试题及答案解析
- 2026年食品酸度糖分检测实操理论题库
- 2026年建筑施工企业合规管理知识竞赛试题及答案详解
- 2026年高级统计师资格考试(高级统计实务与案例分析)试题库及答案南充
- 2025年通信中级工程师(互联网技术)实务试卷及答案
- 医用供气工专业技能考核试卷及答案
- 食管支架植入术护理配合
- 2024-2025学年福建省厦门市思明区五年级(下)期末数学试卷
- GJB763.5A-2020舰船噪声限值和测量方法第5部分舰船设备空气噪声测量
- 严肃财经纪律培训班课件
- 排污许可证审核及环境应急管理服务方案投标文件(技术方案)
- 中层管理人员能力培训
- 培训机构教材管理制度
- 果园产品购销合同
- 入党申请书专用纸-A4单面打印
评论
0/150
提交评论