[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN114955007B - Method and device for fast planning of relative motion time optimal trajectory based on convex programming - Google Patents

Method and device for fast planning of relative motion time optimal trajectory based on convex programming Download PDF

Info

Publication number
CN114955007B
CN114955007B CN202210515805.4A CN202210515805A CN114955007B CN 114955007 B CN114955007 B CN 114955007B CN 202210515805 A CN202210515805 A CN 202210515805A CN 114955007 B CN114955007 B CN 114955007B
Authority
CN
China
Prior art keywords
relative motion
time
terminal error
spacecraft
terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210515805.4A
Other languages
Chinese (zh)
Other versions
CN114955007A (en
Inventor
张润德
蔡伟伟
杨乐平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
National University of Defense Technology
Original Assignee
National University of Defense Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by National University of Defense Technology filed Critical National University of Defense Technology
Priority to CN202210515805.4A priority Critical patent/CN114955007B/en
Publication of CN114955007A publication Critical patent/CN114955007A/en
Application granted granted Critical
Publication of CN114955007B publication Critical patent/CN114955007B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B64AIRCRAFT; AVIATION; COSMONAUTICS
    • B64GCOSMONAUTICS; VEHICLES OR EQUIPMENT THEREFOR
    • B64G1/00Cosmonautic vehicles
    • B64G1/22Parts of, or equipment specially adapted for fitting in or to, cosmonautic vehicles
    • B64G1/24Guiding or controlling apparatus, e.g. for attitude control
    • B64G1/242Orbits and trajectories
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/15Vehicle, aircraft or watercraft design

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Geometry (AREA)
  • Remote Sensing (AREA)
  • Aviation & Aerospace Engineering (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Optimization (AREA)
  • Mathematical Analysis (AREA)
  • Pure & Applied Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Evolutionary Computation (AREA)
  • General Engineering & Computer Science (AREA)
  • Computational Mathematics (AREA)
  • Chemical & Material Sciences (AREA)
  • Combustion & Propulsion (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Automation & Control Theory (AREA)
  • Control Of Position, Course, Altitude, Or Attitude Of Moving Bodies (AREA)

Abstract

The application relates to a method, a device, computer equipment and a storage medium for fast planning of a relative motion time optimal track based on convex planning. The method comprises the following steps: establishing a spacecraft relative motion equation under a relative motion coordinate system, and establishing a time optimal track planning problem according to the spacecraft relative motion equation, boundary conditions and constraint conditions; setting a two-norm of the terminal error as an objective function of the minimum terminal error problem, and constructing the minimum terminal error problem according to the boundary condition, the constraint condition and the objective function; performing convex planning on the minimum terminal error problem to obtain a terminal error and a control sequence; constructing performance indexes by using the terminal errors and the control sequences, and converting the time optimal track planning problem into a double-layer optimization problem according to the performance indexes; and solving the double-layer optimization problem by using a hybrid optimization algorithm to obtain the shortest flight time. By adopting the method, the rapid track planning efficiency can be improved.

Description

基于凸规划的相对运动时间最优轨迹快速规划方法及装置Method and device for fast planning of relative motion time optimal trajectory based on convex programming

技术领域Technical Field

本申请涉及航天器制导与控制领域,特别是涉及一种基于凸规划的相对运动时间最优轨迹快速规划方法、装置、计算机设备和存储介质。The present application relates to the field of spacecraft guidance and control, and in particular to a method, device, computer equipment and storage medium for rapid planning of a relative motion time optimal trajectory based on convex programming.

背景技术Background technique

相对运动轨迹规划是航天器实施抵近观测、在轨加注、编队飞行等一系列空间操作的前提和基础。时间最优轨迹规划的目标是寻找从初始状态到目标状态的最短飞行时间轨迹,同时满足动力学、控制等约束条件。最短飞行时间对空间任务设计具有重要的参考意义,如果给定的飞行时间小于最短飞行时间,则没有可行的飞行轨迹。针对相对运动轨迹规划问题,通常基于直接法或间接法两者策略进行处理。但由于相对运动具有复杂的非线性动力学特性和各种约束条件,一阶最优性必要条件往往难以构建,限制了间接法的进一步应用。直接法将控制空间和状态空间离散化,将最优控制问题转化为非线性优化问题,主要包括伪谱法、混合整数线性规划和二次规划算法,但这些算法通过对初值较为敏感。近年来,凸规划算法因其具有较高的计算效率而被学者们广泛的研究,并应用于轨道转移、多无人机协同规划、大气捕获轨迹和航天器着陆等方面,其中文献表明该方法与伪谱法相比具有更高的计算效率。然而,时间最优问题的目标函数是非凸形式,难以直接利用凸规划算法求解。Relative motion trajectory planning is the premise and basis for a series of space operations such as close-in observation, on-orbit refueling, and formation flying. The goal of time-optimal trajectory planning is to find the shortest flight time trajectory from the initial state to the target state, while satisfying the constraints of dynamics, control, etc. The shortest flight time is of great reference significance for space mission design. If the given flight time is less than the shortest flight time, there is no feasible flight trajectory. For the relative motion trajectory planning problem, it is usually handled based on direct or indirect methods. However, due to the complex nonlinear dynamic characteristics and various constraints of relative motion, the first-order optimality necessary conditions are often difficult to construct, which limits the further application of the indirect method. The direct method discretizes the control space and state space and transforms the optimal control problem into a nonlinear optimization problem. It mainly includes pseudo-spectral method, mixed integer linear programming and quadratic programming algorithm, but these algorithms are sensitive to initial values. In recent years, convex programming algorithms have been widely studied by scholars due to their high computational efficiency, and have been applied to orbit transfer, multi-UAV collaborative planning, atmospheric capture trajectory and spacecraft landing. The literature shows that this method has higher computational efficiency than pseudo-spectral method. However, the objective function of the time optimization problem is non-convex and difficult to solve directly using convex programming algorithms.

然而,传统的非线性优化算法求解效率较低,难以满足快速轨迹规划的需求。However, traditional nonlinear optimization algorithms have low solution efficiency and cannot meet the needs of fast trajectory planning.

发明内容Summary of the invention

基于此,有必要针对上述技术问题,提供一种能够提高快速轨迹规划效率的基于凸规划的相对运动时间最优轨迹快速规划方法、装置、计算机设备和存储介质。Based on this, it is necessary to provide a method, device, computer equipment and storage medium for rapid planning of relative motion time optimal trajectory based on convex programming, which can improve the efficiency of rapid trajectory planning, in order to address the above technical problems.

一种基于凸规划的相对运动时间最优轨迹快速规划方法,所述方法包括:A method for rapid planning of a relative motion time optimal trajectory based on convex programming, the method comprising:

获取轨迹规划中的边界条件和约束条件;Obtain boundary conditions and constraints in trajectory planning;

在相对运动坐标系下建立航天器相对运动方程,根据航天器相对运动方程、边界条件以及约束条件,建立时间最优轨迹规划问题;Establish the spacecraft relative motion equation in the relative motion coordinate system, and establish the time optimal trajectory planning problem based on the spacecraft relative motion equation, boundary conditions and constraints;

将终端误差的二范数设置为最小终端误差问题的目标函数,根据边界条件、约束条件以及目标函数,构建最小终端误差问题;The second norm of the terminal error is set as the objective function of the minimum terminal error problem, and the minimum terminal error problem is constructed according to the boundary conditions, constraints and objective function;

对最小终端误差问题进行凸规划,得到终端误差和控制序列;Convex programming is performed on the minimum terminal error problem to obtain the terminal error and control sequence;

利用终端误差和控制序列构造性能指标,根据性能指标将时间最优轨迹规划问题转化为双层优化问题;双层优化问题的内层为最小终端误差问题,外层为寻根问题;The terminal error and control sequence are used to construct performance indicators. According to the performance indicators, the time optimal trajectory planning problem is transformed into a two-layer optimization problem. The inner layer of the two-layer optimization problem is the minimum terminal error problem, and the outer layer is the root-finding problem.

利用混合优化算法对双层优化问题进行求解,得到最短飞行时间。The hybrid optimization algorithm is used to solve the double-layer optimization problem and obtain the shortest flight time.

在其中一个实施例中,根据航天器相对运动方程、边界条件以及约束条件,建立时间最优轨迹规划问题,包括:In one embodiment, a time optimal trajectory planning problem is established based on the spacecraft relative motion equation, boundary conditions and constraints, including:

对航天器相对运动方程进行离散得到相对运动坐标系中的离散形式相对运动方程;Discretize the spacecraft relative motion equation to obtain the discrete form relative motion equation in the relative motion coordinate system;

根据离散形式相对运动方程、边界条件以及约束条件,建立时间最优轨迹规划问题。According to the discrete relative motion equations, boundary conditions and constraints, the time optimal trajectory planning problem is established.

在其中一个实施例中,边界条件包括初始状态约束和终端状态约束;约束条件包括控制饱和约束;根据离散形式相对运动方程、边界条件以及约束条件,建立时间最优轨迹规划问题,包括:In one embodiment, the boundary conditions include initial state constraints and terminal state constraints; the constraint conditions include control saturation constraints; according to the discrete relative motion equations, the boundary conditions and the constraint conditions, a time optimal trajectory planning problem is established, including:

离散形式相对运动方程为x(i+1)=Adx(i)+BdT(i),其中i=1,…N,N为离散步数,T表示航天器的推力,Ad表示状态系数矩阵,Bd表示控制系数矩阵;The discrete form relative motion equation is x(i+1)=A d x(i)+B d T(i), where i=1,…N, N is the discrete step number, T represents the thrust of the spacecraft, A d represents the state coefficient matrix, and B d represents the control coefficient matrix;

初始状态约束为x(t0)=x0,m(t0)=m0,其中航天器质量Isp为推进器的真空比冲,g0为海平面重力加速度;The initial state constraints are x(t 0 ) = x 0 , m(t 0 ) = m 0 , where the spacecraft mass I sp is the vacuum specific impulse of the thruster, g 0 is the gravitational acceleration at sea level;

终端状态约束为x(tf)=xf。控制饱和约束为||T||2≤Tmax,其中Tmax表示航天器的最大推力;The terminal state constraint is x(t f ) = x f . The control saturation constraint is ||T|| 2 ≤T max , where T max represents the maximum thrust of the spacecraft;

根据离散形式相对运动方程、边界条件以及约束条件,建立时间最优轨迹规划问题为其中t0表示初始时刻,tf表示终端时刻。According to the discrete relative motion equation, boundary conditions and constraints, the time optimal trajectory planning problem is established as follows: Where t0 represents the initial time and tf represents the terminal time.

在其中一个实施例中,将终端误差的二范数设置为最小终端误差问题的目标函数,根据边界条件、约束条件以及目标函数,构建最小终端误差问题,包括:In one embodiment, the second norm of the terminal error is set as the objective function of the minimum terminal error problem, and the minimum terminal error problem is constructed according to the boundary conditions, the constraint conditions and the objective function, including:

将终端误差的二范数设置为最小终端误差问题的目标函数,根据边界条件、约束条件以及目标函数,构建最小终端误差问题为min J2=||x(tf)-xf||2,其中当时,最小终端误差J2随tf的增加而减小,当时,J2始终为零,x(tf)表示实际终端状态,xf表示期望终端状态,表示最短飞行时间。The second norm of the terminal error is set as the objective function of the minimum terminal error problem. According to the boundary conditions, constraints and objective function, the minimum terminal error problem is constructed as min J 2 =||x(t f )-x f || 2 , where When , the minimum terminal error J 2 decreases with the increase of t f . , J 2 is always zero, x(t f ) represents the actual terminal state, x f represents the expected terminal state, Indicates the shortest flight time.

在其中一个实施例中,利用终端误差和控制序列构造性能指标,包括:In one embodiment, the performance indicator is constructed using the terminal error and the control sequence, including:

利用终端误差和控制序列构造性能指标其中当时J3(tf)>0,当时J3(tf)=0,当时J3(tf)<0,Tmax表示航天器的最大推力。Constructing performance indicators using terminal errors and control sequences Among them When J 3 (t f )>0, when When J 3 (t f )=0, when When J 3 (t f ) < 0, T max represents the maximum thrust of the spacecraft.

在其中一个实施例中,利用混合优化算法对双层优化问题进行求解,得到最短飞行时间,包括:In one embodiment, a hybrid optimization algorithm is used to solve the double-layer optimization problem to obtain the shortest flight time, including:

利用二分法缩小解空间的范围,直至上下边界的绝对函数值小于预设值,再将计算结果作为牛顿法的初值进行求解,得到最短飞行时间。The range of the solution space is narrowed down by using the bisection method until the absolute function values of the upper and lower boundaries are less than the preset values. The calculated results are then used as the initial values of the Newton method to solve the problem and obtain the shortest flight time.

在其中一个实施例中,利用二分法缩小解空间的范围,直至上下边界的绝对函数值小于预设值,再将计算结果作为牛顿法的初值进行求解,得到最短飞行时间,包括:In one embodiment, the range of the solution space is narrowed down by using the dichotomy method until the absolute function values of the upper and lower boundaries are less than the preset values, and then the calculation results are used as the initial values of the Newton method to solve the shortest flight time, including:

利用二分法缩小解空间的范围,直至上下边界的绝对函数值小于预设值,再将计算结果作为牛顿法的初值进行求解,得到最短飞行时间的步骤如下:Use the binary search method to narrow the scope of the solution space until the absolute function value of the upper and lower boundaries is less than the preset value, and then use the calculation result as the initial value of Newton's method to solve the problem. The steps to obtain the shortest flight time are as follows:

步骤S1:令二分法的上下边界t1b和tub分别等于tLB和tUB,分别以t1b和tub为飞行时间求解双层优化问题,根据计算结果得到指标J3(t1b)和J3(tub);tLB和tUB表示飞行时间的上下边界;Step S1: Let the upper and lower boundaries t 1b and t ub of the dichotomy be equal to t LB and t UB respectively, solve the double-layer optimization problem with t 1b and t ub as the flight time respectively, and obtain the indicators J 3 (t 1b ) and J 3 (t ub ) according to the calculation results; t LB and t UB represent the upper and lower boundaries of the flight time;

步骤S2:如果J3(t1b)和J3(tub)的绝对值大于预设的参考值执行步骤S4。否者,执行步骤S5;Step S2: If the absolute values of J 3 (t 1b ) and J 3 (t ub ) are greater than the preset reference values Execute step S4. Otherwise, execute step S5;

步骤S3:令t0=(t1b+tub)/2,并以t0为飞行时间计算双层优化问题,得到指标J3(t0),如J3(t1b)·J3(t0)<0,令t1b=t0,否则令tub=t0,重复步骤S1至步骤S3,直至J3(t1b)和J3(tub)的绝对值均小于预设的令t0=t1b,t1=tub,k=0;k表示牛顿法的迭代次数;Step S3: Let t 0 =(t 1b +t ub )/2, and use t 0 as the flight time to calculate the double-layer optimization problem and obtain the index J 3 (t 0 ). If J 3 (t 1b )·J 3 (t 0 )<0, let t 1b =t 0 , otherwise let t ub =t 0 , and repeat steps S1 to S3 until the absolute values of J 3 (t 1b ) and J 3 (t ub ) are both less than the preset Let t 0 = t 1b , t 1 = t ub , k = 0; k represents the number of iterations of Newton's method;

步骤S4:判断t0-t1的绝对值是否大于等于ε且k<M。如是,执行步骤S6,否则执行步骤S7;ε表示算法精度要求;M表示最大迭代次数;Step S4: Determine whether the absolute value of t 0 -t 1 is greater than or equal to ε and k<M. If so, execute step S6, otherwise execute step S7; ε represents the algorithm accuracy requirement; M represents the maximum number of iterations;

步骤S5:令t2=t1-J3(t1)(t1-t0)/(J3(t1)-J3(t0)),以t2为飞行时间求解双层优化问题,计算J3(t2);Step S5: Let t 2 = t 1 - J 3 (t 1 )(t 1 - t 0 )/(J 3 (t 1 ) - J 3 (t 0 )), take t 2 as the flight time, solve the double-layer optimization problem, and calculate J 3 (t 2 );

步骤S6:令t0=t1,J3(t0)=J3(t1),t1=t2,J3(t1)=J3(t2),k=k+1,执行步骤S5;Step S6: Let t 0 = t 1 , J 3 (t 0 ) = J 3 (t 1 ), t 1 = t 2 , J 3 (t 1 ) = J 3 (t 2 ), k = k + 1, and execute step S5;

步骤S7:判断t0-t1的绝对值是否小于ε;如是,输出t1,否则计算失败;t1表示最短飞行时间。Step S7: determine whether the absolute value of t 0 -t 1 is less than ε; if so, output t 1 , otherwise the calculation fails; t 1 represents the shortest flight time.

一种基于凸规划的相对运动时间最优轨迹快速规划装置,所述装置包括:A device for rapidly planning a relative motion time optimal trajectory based on convex programming, the device comprising:

时间最优轨迹规划问题构建模块,用于获取轨迹规划中的边界条件和约束条件;在相对运动坐标系下建立航天器相对运动方程,根据航天器相对运动方程、边界条件以及约束条件,建立时间最优轨迹规划问题;The time optimal trajectory planning problem construction module is used to obtain the boundary conditions and constraints in trajectory planning; the relative motion equation of the spacecraft is established in the relative motion coordinate system, and the time optimal trajectory planning problem is established based on the relative motion equation of the spacecraft, boundary conditions and constraints;

构建最小终端误差问题模块,用于将终端误差的二范数设置为最小终端误差问题的目标函数,根据边界条件、约束条件以及目标函数,构建最小终端误差问题;A minimum terminal error problem construction module is used to set the second norm of the terminal error as the objective function of the minimum terminal error problem, and to construct the minimum terminal error problem according to boundary conditions, constraints and objective function;

问题转化模块,用于对最小终端误差问题进行凸规划,得到终端误差和控制序列;利用终端误差和控制序列构造性能指标,根据性能指标将时间最优轨迹规划问题转化为双层优化问题;双层优化问题的内层为最小终端误差问题,外层为寻根问题;The problem conversion module is used to perform convex programming on the minimum terminal error problem to obtain the terminal error and control sequence; the terminal error and control sequence are used to construct performance indicators, and the time optimal trajectory planning problem is converted into a two-layer optimization problem according to the performance indicators; the inner layer of the two-layer optimization problem is the minimum terminal error problem, and the outer layer is the root-finding problem;

问题求解模块,用于利用混合优化算法对双层优化问题进行求解,得到最短飞行时间。The problem solving module is used to solve the double-layer optimization problem using a hybrid optimization algorithm to obtain the shortest flight time.

一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,所述处理器执行所述计算机程序时实现以下步骤:A computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

获取轨迹规划中的边界条件和约束条件;Obtain boundary conditions and constraints in trajectory planning;

在相对运动坐标系下建立航天器相对运动方程,根据航天器相对运动方程、边界条件以及约束条件,建立时间最优轨迹规划问题;Establish the spacecraft relative motion equation in the relative motion coordinate system, and establish the time optimal trajectory planning problem based on the spacecraft relative motion equation, boundary conditions and constraints;

将终端误差的二范数设置为最小终端误差问题的目标函数,根据边界条件、约束条件以及目标函数,构建最小终端误差问题;The second norm of the terminal error is set as the objective function of the minimum terminal error problem, and the minimum terminal error problem is constructed according to the boundary conditions, constraints and objective function;

对最小终端误差问题进行凸规划,得到终端误差和控制序列;Convex programming is performed on the minimum terminal error problem to obtain the terminal error and control sequence;

利用终端误差和控制序列构造性能指标,根据性能指标将时间最优轨迹规划问题转化为双层优化问题;双层优化问题的内层为最小终端误差问题,外层为寻根问题;The terminal error and control sequence are used to construct performance indicators. According to the performance indicators, the time optimal trajectory planning problem is transformed into a two-layer optimization problem. The inner layer of the two-layer optimization problem is the minimum terminal error problem, and the outer layer is the root-finding problem.

利用混合优化算法对双层优化问题进行求解,得到最短飞行时间。The hybrid optimization algorithm is used to solve the double-layer optimization problem and obtain the shortest flight time.

一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现以下步骤:A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the following steps:

获取轨迹规划中的边界条件和约束条件;Obtain boundary conditions and constraints in trajectory planning;

在相对运动坐标系下建立航天器相对运动方程,根据航天器相对运动方程、边界条件以及约束条件,建立时间最优轨迹规划问题;Establish the spacecraft relative motion equation in the relative motion coordinate system, and establish the time optimal trajectory planning problem based on the spacecraft relative motion equation, boundary conditions and constraints;

将终端误差的二范数设置为最小终端误差问题的目标函数,根据边界条件、约束条件以及目标函数,构建最小终端误差问题;The second norm of the terminal error is set as the objective function of the minimum terminal error problem, and the minimum terminal error problem is constructed according to the boundary conditions, constraints and objective function;

对最小终端误差问题进行凸规划,得到终端误差和控制序列;Convex programming is performed on the minimum terminal error problem to obtain the terminal error and control sequence;

利用终端误差和控制序列构造性能指标,根据性能指标将时间最优轨迹规划问题转化为双层优化问题;双层优化问题的内层为最小终端误差问题,外层为寻根问题;The terminal error and control sequence are used to construct performance indicators. According to the performance indicators, the time optimal trajectory planning problem is transformed into a two-layer optimization problem. The inner layer of the two-layer optimization problem is the minimum terminal error problem, and the outer layer is the root-finding problem.

利用混合优化算法对双层优化问题进行求解,得到最短飞行时间。The hybrid optimization algorithm is used to solve the double-layer optimization problem and obtain the shortest flight time.

上述基于凸规划的相对运动时间最优轨迹快速规划方法、装置、计算机设备和存储介质,本发明将时间最优控制问题转化为双层优化问题,通过成熟的凸规划算法求解内层的最小终端误差问题,从而提升计算效率,将终端误差和控制序列构造新的性能指标,将最短时间搜索问题转化为易于求解寻根问题,然后通过本发明提出的计算效率和鲁棒性更高的混合优化算法对寻根问题进行快速求解,得到最短飞行时间,从而极大地提高轨迹规划效率。The above-mentioned relative motion time optimal trajectory rapid planning method, device, computer equipment and storage medium based on convex programming, the present invention converts the time optimal control problem into a two-layer optimization problem, solves the minimum terminal error problem of the inner layer through a mature convex programming algorithm, thereby improving the calculation efficiency, constructs a new performance indicator with the terminal error and the control sequence, converts the shortest time search problem into an easy-to-solve root-finding problem, and then quickly solves the root-finding problem through the hybrid optimization algorithm with higher calculation efficiency and robustness proposed by the present invention to obtain the shortest flight time, thereby greatly improving the trajectory planning efficiency.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

图1为一个实施例中基于凸规划的相对运动时间最优轨迹快速规划方法的流程示意图;FIG1 is a schematic diagram of a process flow of a method for rapid planning of a relative motion time optimal trajectory based on convex programming in one embodiment;

图2为一个实施例中航天器相对坐标系的示意图;FIG2 is a schematic diagram of a spacecraft relative coordinate system in one embodiment;

图3为一个实施例中性能指标随时间变化的规律的示意图;FIG3 is a schematic diagram of a law of performance indicators changing over time in one embodiment;

图4为另一个实施例中双层优化问题的框架示意图;FIG4 is a schematic diagram of a framework of a two-layer optimization problem in another embodiment;

图5为一个实施例中对本发明进行仿真实验效果图;FIG5 is a diagram showing the effect of a simulation experiment of the present invention in one embodiment;

图6为一个实施例中卫星相对转移轨迹的状态变化曲线示意图;FIG6 is a schematic diagram of a state change curve of a satellite relative transfer trajectory in one embodiment;

图7为一个实施例中卫星相对转移轨迹的推力分量变化曲线示意图;FIG7 is a schematic diagram of a thrust component variation curve of a satellite relative transfer trajectory in one embodiment;

图8为一个实施例中基于凸规划的相对运动时间最优轨迹快速规划装置的结构框图;FIG8 is a structural block diagram of a device for rapidly planning a relative motion time optimal trajectory based on convex programming in one embodiment;

图9为一个实施例中计算机设备的内部结构图。FIG. 9 is a diagram showing the internal structure of a computer device in one embodiment.

具体实施方式Detailed ways

为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处描述的具体实施例仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

在一个实施例中,如图2所示,提供了一种基于凸规划的相对运动时间最优轨迹快速规划方法,包括以下步骤:In one embodiment, as shown in FIG2 , a method for fast planning of a relative motion time optimal trajectory based on convex programming is provided, comprising the following steps:

步骤102,获取轨迹规划中的边界条件和约束条件;在相对运动坐标系下建立航天器相对运动方程,根据航天器相对运动方程、边界条件以及约束条件,建立时间最优轨迹规划问题。Step 102, obtain boundary conditions and constraints in trajectory planning; establish the spacecraft relative motion equation in the relative motion coordinate system, and establish the time optimal trajectory planning problem based on the spacecraft relative motion equation, boundary conditions and constraints.

边界条件包括航天器的初始状态约束和终端状态约束;约束条件包括控制饱和约束,根据航天器相对运动方程、边界条件以及约束条件,可以建立时间最优轨迹规划问题。The boundary conditions include the initial state constraints and terminal state constraints of the spacecraft; the constraint conditions include the control saturation constraint. According to the relative motion equation of the spacecraft, the boundary conditions and the constraint conditions, the time optimal trajectory planning problem can be established.

步骤104,将终端误差的二范数设置为最小终端误差问题的目标函数,根据边界条件、约束条件以及目标函数,构建最小终端误差问题。Step 104, setting the second norm of the terminal error as the objective function of the minimum terminal error problem, and constructing the minimum terminal error problem according to the boundary conditions, constraint conditions and the objective function.

由于时间最优控制问题的目标函数不是凸形式,本发明将航天器的终端误差作为目标函数,从而构造可以转化为凸规划问题的最小误差问题,并证明最优终端误差随时间变化规律和最小误差问题的推力特性。Since the objective function of the time optimal control problem is not in convex form, the present invention takes the terminal error of the spacecraft as the objective function, thereby constructing a minimum error problem that can be transformed into a convex programming problem, and proves the law of change of the optimal terminal error with time and the thrust characteristics of the minimum error problem.

步骤106,对最小终端误差问题进行凸规划,得到终端误差和控制序列;利用终端误差和控制序列构造性能指标,根据性能指标将时间最优轨迹规划问题转化为双层优化问题;双层优化问题的内层为最小终端误差问题,外层为寻根问题。Step 106, convex programming is performed on the minimum terminal error problem to obtain the terminal error and the control sequence; the terminal error and the control sequence are used to construct a performance index, and the time optimal trajectory planning problem is converted into a two-layer optimization problem according to the performance index; the inner layer of the two-layer optimization problem is the minimum terminal error problem, and the outer layer is the root finding problem.

利用凸规划算法求解上述最小终端误差问题的控制序列,将控制序列代入动力学方程可得航天器实际终端状态。对比航天器实际和期望的终端状态,进而得到航天器的终端误差,利用终端误差和控制序列构造新的性能指标,使得当且仅当给定的飞行时间等于最短飞行时间时,该性能指标的值为零。基于上述分析,时间最优问题可转化为双层优化问题,其中内层为最小误差问题,外层为寻根问题。The control sequence of the minimum terminal error problem is solved by the convex programming algorithm. The actual terminal state of the spacecraft can be obtained by substituting the control sequence into the dynamic equation. The terminal error of the spacecraft is obtained by comparing the actual and expected terminal states. The terminal error and the control sequence are used to construct a new performance index, so that the value of the performance index is zero if and only if the given flight time is equal to the shortest flight time. Based on the above analysis, the time optimization problem can be transformed into a two-layer optimization problem, in which the inner layer is the minimum error problem and the outer layer is the root-finding problem.

步骤108,利用混合优化算法对双层优化问题进行求解,得到最短飞行时间。Step 108, using a hybrid optimization algorithm to solve the double-layer optimization problem to obtain the shortest flight time.

混合优化算法是为利用二分法缩小解空间的范围,直至上下边界的绝对函数值小于预设值,再将计算结果作为牛顿法的初值进行求解的方法,兼具二分法鲁棒性强和牛顿法收敛速度快的优点,可以快速对寻根问题进行求解,得出最短飞行时间,从而提高了轨迹规划的效率。The hybrid optimization algorithm uses the bisection method to narrow the scope of the solution space until the absolute function values of the upper and lower boundaries are less than the preset values, and then uses the calculated results as the initial values of the Newton method for solving the problem. It has the advantages of strong robustness of the bisection method and fast convergence speed of the Newton method. It can quickly solve the root-finding problem and obtain the shortest flight time, thereby improving the efficiency of trajectory planning.

上述基于凸规划的相对运动时间最优轨迹快速规划方法中,本发明将时间最优控制问题转化为双层优化问题,通过成熟的凸规划算法求解内层的最小终端误差问题,从而提升计算效率,将终端误差和控制序列构造新的性能指标,将最短时间搜索问题转化为易于求解寻根问题,然后通过本发明提出的计算效率和鲁棒性更高的混合优化算法对寻根问题进行快速求解,得到最短飞行时间,从而极大地提高轨迹规划效率。In the above-mentioned rapid planning method for the optimal trajectory of relative motion time based on convex programming, the present invention transforms the time optimal control problem into a two-layer optimization problem, solves the minimum terminal error problem of the inner layer through a mature convex programming algorithm, thereby improving the computational efficiency, constructs a new performance indicator with the terminal error and the control sequence, transforms the shortest time search problem into an easy-to-solve root-finding problem, and then quickly solves the root-finding problem through the hybrid optimization algorithm with higher computational efficiency and robustness proposed by the present invention to obtain the shortest flight time, thereby greatly improving the trajectory planning efficiency.

在其中一个实施例中,根据航天器相对运动方程、边界条件以及约束条件,建立时间最优轨迹规划问题,包括:In one embodiment, a time optimal trajectory planning problem is established based on the spacecraft relative motion equation, boundary conditions and constraints, including:

对航天器相对运动方程进行离散得到相对运动坐标系中的离散形式相对运动方程;Discretize the spacecraft relative motion equation to obtain the discrete form relative motion equation in the relative motion coordinate system;

根据离散形式相对运动方程、边界条件以及约束条件,建立时间最优轨迹规划问题。According to the discrete relative motion equations, boundary conditions and constraints, the time optimal trajectory planning problem is established.

在其中一个实施例中,边界条件包括初始状态约束和终端状态约束;约束条件包括控制饱和约束;根据离散形式相对运动方程、边界条件以及约束条件,建立时间最优轨迹规划问题,包括:In one embodiment, the boundary conditions include initial state constraints and terminal state constraints; the constraint conditions include control saturation constraints; according to the discrete relative motion equations, the boundary conditions and the constraint conditions, a time optimal trajectory planning problem is established, including:

离散形式相对运动方程为x(i+1)=Adx(i)+BdT(i),其中i=1,…N,N为离散步数,T表示航天器的推力,Ad表示状态系数矩阵,Bd表示控制系数矩阵;The discrete form relative motion equation is x(i+1)=A d x(i)+B d T(i), where i=1,…N, N is the discrete step number, T represents the thrust of the spacecraft, A d represents the state coefficient matrix, and B d represents the control coefficient matrix;

初始状态约束为x(t0)=x0,m(t0)=m0,其中航天器质量Isp为推进器的真空比冲,g0为海平面重力加速度;The initial state constraints are x(t 0 ) = x 0 , m(t 0 ) = m 0 , where the spacecraft mass I sp is the vacuum specific impulse of the thruster, g0 is the gravitational acceleration at sea level;

终端状态约束为x(tf)=xf,控制饱和约束为||T||2≤TmaxThe terminal state constraint is x(t f )=x f , and the control saturation constraint is ||T|| 2 ≤T max .

根据离散形式相对运动方程、边界条件以及约束条件,建立时间最优轨迹规划问题为其中t0表示初始时刻,tf表示终端时刻。According to the discrete relative motion equation, boundary conditions and constraints, the time optimal trajectory planning problem is established as follows: Where t0 represents the initial time and tf represents the terminal time.

航天器相对运动通常是在相对坐标系下描述,如图2所示,rd和rc表示追踪航天器和参考航天器在地心惯性系中的位置矢量。相对坐标系的原点位于参考航天器质心,x轴与rc方向一致,z轴与轨道动量矩方向一致,y轴由右手法则确定。The relative motion of spacecraft is usually described in a relative coordinate system, as shown in Figure 2. r d and r c represent the position vectors of the tracking spacecraft and the reference spacecraft in the geocentric inertial system. The origin of the relative coordinate system is located at the center of mass of the reference spacecraft, the x-axis is in the same direction as r c , the z-axis is in the same direction as the orbital momentum, and the y-axis is determined by the right-hand rule.

卫星在相对坐标系下的动力学方程可表示为The dynamic equation of the satellite in the relative coordinate system can be expressed as

式中r=[x,y,z]T和v=[vx,vy,vz]T表示追踪航天器的相对位置和速度,下标c和d分别表示参考航天器和追踪航天器,ω和ε为参考航天器瞬时角速度和角加速度,T=[Tx,Ty,Tz]T和m为航天器的推力和质量,μ为地球引力常数。假设目标航天器位于近圆轨道上,同时其轨道半径远大于航天器相对距离,则方程(1)可简化为Where r = [x, y, z] T and v = [v x , vy , v z ] T represent the relative position and velocity of the tracking spacecraft, subscripts c and d represent the reference spacecraft and the tracking spacecraft, ω and ε are the instantaneous angular velocity and angular acceleration of the reference spacecraft, T = [T x ,T y ,T z ] T and m are the thrust and mass of the spacecraft, and μ is the Earth's gravitational constant. Assuming that the target spacecraft is in a near-circular orbit and its orbital radius is much larger than the relative distance of the spacecraft, equation (1) can be simplified to

方程(2)的标量形式为The scalar form of equation (2) is

式中n为参考航天器平均轨道角速度。给定离散时间ΔT,可将方程(3)表示为离散形式,Where n is the average orbital angular velocity of the reference spacecraft. Given a discrete time ΔT, equation (3) can be expressed in discrete form:

x(i+1)=Adx(i)+BdT(i) (4)x(i+1)=A d x(i)+B d T(i) (4)

式中x=[r;v]为状态向量,i=1,2,…N为离散步数,Ad和Bd可表示为Where x = [r; v] is the state vector, i = 1, 2, ... N is the discrete step number, and A d and B d can be expressed as

航天器质量变化遵循Spacecraft mass changes follow

式中Isp为推进器的真空比冲,g0=9.80665m/s2为海平面重力加速度。Where I sp is the vacuum specific impulse of the thruster, and g 0 = 9.80665 m/s 2 is the gravitational acceleration at sea level.

航天器相对运动过程需要满足式(8)初始状态约束和式(9)中的终端状态约束,以及式(10)中的控制饱和约束。The relative motion process of the spacecraft needs to satisfy the initial state constraint in equation (8), the terminal state constraint in equation (9), and the control saturation constraint in equation (10).

x(t0)=x0,m(t0)=m0 (8)x(t 0 )=x 0 , m(t 0 )=m 0 (8)

x(tf)=xf (9)x(t f )=x f (9)

||T||2≤Tmax (10)式中Tmax为航天器的最大推力,t0为初始时刻,通常设置为零。tf为待求的终端时刻,x0、m0和xf分别为给定的航天器初始状态、初始质量以及期望终端状态。因此,时间最优轨迹规划问题可以概括为||T|| 2 ≤T max (10) where T max is the maximum thrust of the spacecraft, t 0 is the initial time, which is usually set to zero. t f is the terminal time to be determined, x 0 , m 0 and x f are the given initial state, initial mass and expected terminal state of the spacecraft, respectively. Therefore, the time optimal trajectory planning problem can be summarized as

满足约束(4),(7)~(10)。Satisfy constraints (4), (7) to (10).

当t<tf,时间最优轨迹规划问题的最优推力幅值始终为||T*||2=Tmax,||T*||2≤Tmax仅可能发现在t=tf和速度的终端协态值λv(tf)=0时。When t<t f , the optimal thrust amplitude of the time optimal trajectory planning problem is always ||T * || 2 =T max , and ||T * || 2 ≤T max can only be found when t=t f and the terminal co-state value of the velocity λ v (t f )=0.

在其中一个实施例中,将终端误差的二范数设置为最小终端误差问题的目标函数,根据边界条件、约束条件以及目标函数,构建最小终端误差问题,包括:In one embodiment, the second norm of the terminal error is set as the objective function of the minimum terminal error problem, and the minimum terminal error problem is constructed according to the boundary conditions, the constraint conditions and the objective function, including:

将终端误差的二范数设置为最小终端误差问题的目标函数,根据边界条件、约束条件以及目标函数,构建最小终端误差问题为min J2=||x(tf)-xf||2,其中当时,最小终端误差J2随tf的增加而减小,当时,J2始终为零,x(tf)表示实际终端状态,xf表示期望终端状态,表示最短飞行时间。The second norm of the terminal error is set as the objective function of the minimum terminal error problem. According to the boundary conditions, constraints and objective function, the minimum terminal error problem is constructed as min J 2 =||x(t f )-x f || 2 , where When , the minimum terminal error J2 decreases with the increase of tf . , J 2 is always zero, x(t f ) represents the actual terminal state, x f represents the expected terminal state, Indicates the shortest flight time.

时间最优轨迹规划问题的目标函数是非凸形式,难以直接利用凸规划算法进行求解。本发明以实际状态与期望状态之间的终端误差为目标,构建给定飞行时间tf下的最小终端误差问题,满足约束(4),(7)~(10)。The objective function of the time optimal trajectory planning problem is non-convex and difficult to solve directly using a convex programming algorithm. The present invention takes the terminal error between the actual state and the desired state as the target, constructs the minimum terminal error problem under a given flight time tf , and satisfies constraints (4), (7) to (10).

值得注意的是,最小终端误差问题的目标函数和不等式约束是凸函数,等式约束可表示为仿射函数形式,因此可以转化为凸规划问题。It is worth noting that the objective function and inequality constraints of the minimum terminal error problem are convex functions, and the equality constraints can be expressed in the form of affine functions, so they can be transformed into a convex programming problem.

同时,当时,最小终端误差J2随tf的增加而减小,当时,J2始终为零,因此,最短飞行时间为使J2=0成立的拐点。当时,最小终端误差问题的最优推力的幅值始终最大值。At the same time, when When , the minimum terminal error J2 decreases with the increase of tf . When , J 2 is always zero, so the shortest flight time is the inflection point where J 2 = 0 holds. When , the amplitude of the optimal thrust for the minimum terminal error problem is always the maximum value.

在其中一个实施例中,利用终端误差和控制序列构造性能指标,包括:In one embodiment, the performance indicator is constructed using the terminal error and the control sequence, including:

利用终端误差和控制序列构造性能指标其中当时J3(tf)>0,当时J3(tf)=0,当时J3(tf)<0,Tmax表示航天器的最大推力,如图3所示。Constructing performance indicators using terminal errors and control sequences Among them When J 3 (t f )>0, when When J 3 (t f )=0, when When J 3 (t f ) < 0, T max represents the maximum thrust of the spacecraft, as shown in FIG3 .

值得注意的是,J2表示凸规划的优化目标,而J3只是一个基于推力和终端误差构造的性能指标,用于搜索最短飞行时间。通过上述分析,初始的时间最优问题转化为双层优化问题,内层为凸规划问题,即给定飞行时间的最小终端误差问题。外层为寻根问题,性能指标J3(tf)=0对应的飞行时间tf即为最短飞行时间如图4所示。It is worth noting that J 2 represents the optimization goal of convex programming, while J 3 is just a performance indicator constructed based on thrust and terminal error, which is used to search for the shortest flight time. Through the above analysis, the initial time optimization problem is transformed into a two-layer optimization problem. The inner layer is a convex programming problem, that is, the minimum terminal error problem for a given flight time. The outer layer is a root-finding problem. The flight time t f corresponding to the performance indicator J 3 (t f ) = 0 is the shortest flight time. As shown in Figure 4.

在其中一个实施例中,利用混合优化算法对双层优化问题进行求解,得到最短飞行时间,包括:In one embodiment, a hybrid optimization algorithm is used to solve the double-layer optimization problem to obtain the shortest flight time, including:

利用二分法缩小解空间的范围,直至上下边界的绝对函数值小于预设值,再将计算结果作为牛顿法的初值进行求解,得到最短飞行时间。The range of the solution space is narrowed down by using the bisection method until the absolute function values of the upper and lower boundaries are less than the preset values. The calculated results are then used as the initial values of the Newton method to solve the problem and obtain the shortest flight time.

在其中一个实施例中,利用二分法缩小解空间的范围,直至上下边界的绝对函数值小于预设值,再将计算结果作为牛顿法的初值进行求解,得到最短飞行时间,包括:In one embodiment, the range of the solution space is narrowed down by using the dichotomy method until the absolute function values of the upper and lower boundaries are less than the preset values, and then the calculation results are used as the initial values of the Newton method to solve the shortest flight time, including:

利用二分法缩小解空间的范围,直至上下边界的绝对函数值小于预设值,再将计算结果作为牛顿法的初值进行求解,得到最短飞行时间的步骤如下:Use the binary search method to narrow the scope of the solution space until the absolute function value of the upper and lower boundaries is less than the preset value, and then use the calculation result as the initial value of Newton's method to solve the problem. The steps to obtain the shortest flight time are as follows:

步骤S1:令二分法的上下边界t1b和tub分别等于tLB和tUB,分别以t1b和tub为飞行时间求解双层优化问题,根据计算结果得到指标J3(t1b)和J3(tub);tLB和tUB表示飞行时间的上下边界;Step S1: Let the upper and lower boundaries t 1b and t ub of the dichotomy be equal to t LB and t UB respectively, solve the double-layer optimization problem with t 1b and t ub as the flight time respectively, and obtain the indicators J 3 (t 1b ) and J 3 (t ub ) according to the calculation results; t LB and t UB represent the upper and lower boundaries of the flight time;

步骤S2:如果J3(t1b)和J3(tub)的绝对值大于预设的参考值执行步骤S4。否者,执行步骤S5;Step S2: If the absolute values of J 3 (t 1b ) and J 3 (t ub ) are greater than the preset reference values Execute step S4. Otherwise, execute step S5;

步骤S3:令t0=(t1b+tub)/2,并以t0为飞行时间计算双层优化问题,得到指标J3(t0),如J3(t1b)·J3(t0)<0,令t1b=t0,否则令tub=t0,重复步骤S1至步骤S3,直至J3(t1b)和J3(tub)的绝对值均小于预设的令t0=t1b,t1=tub,k=0;k表示牛顿法的迭代次数;Step S3: Let t 0 =(t 1b +t ub )/2, and use t 0 as the flight time to calculate the double-layer optimization problem and obtain the index J 3 (t 0 ). If J 3 (t 1b )·J 3 (t 0 )<0, let t 1b =t 0 , otherwise let t ub =t 0 , and repeat steps S1 to S3 until the absolute values of J 3 (t 1b ) and J 3 (t ub ) are both less than the preset Let t 0 = t 1b , t 1 = t ub , k = 0; k represents the number of iterations of Newton's method;

步骤S4:判断t0-t1的绝对值是否大于等于ε且k<M。如是,执行步骤S6,否则执行步骤S7;ε表示算法精度要求;M表示最大迭代次数;Step S4: Determine whether the absolute value of t 0 -t 1 is greater than or equal to ε and k<M. If so, execute step S6, otherwise execute step S7; ε represents the algorithm accuracy requirement; M represents the maximum number of iterations;

步骤S5:令t2=t1-J3(t1)(t1-t0)/(J3(t1)-J3(t0)),以t2为飞行时间求解双层优化问题,计算J3(t2);Step S5: Let t 2 = t 1 - J 3 (t 1 )(t 1 - t 0 )/(J 3 (t 1 ) - J 3 (t 0 )), take t 2 as the flight time, solve the double-layer optimization problem, and calculate J 3 (t 2 );

步骤S6:令t0=t1,J3(t0)=J3(t1),t1=t2,J3(t1)=J3(t2),k=k+1,执行步骤S5;Step S6: Let t 0 = t 1 , J 3 (t 0 ) = J 3 (t 1 ), t 1 = t 2 , J 3 (t 1 ) = J 3 (t 2 ), k = k + 1, and execute step S5;

步骤S7:判断t0-t1的绝对值是否小于ε;如是,输出t1,否则计算失败;t1表示最短飞行时间。Step S7: determine whether the absolute value of t 0 -t 1 is less than ε; if so, output t 1 , otherwise the calculation fails; t 1 represents the shortest flight time.

针对双层优化框架中的外层寻根问题,本发明结合牛顿法和二分法的优点,提出一种混合优化算法。本方法首先利用二分法缩小解空间的范围,直至上下边界的绝对函数值小于预设值,再将计算结果作为牛顿法的初值进行求解。通过二分法为牛顿法提供高质量初值,混合优化算法兼具二分法鲁棒性强和牛顿法收敛速度快的优点,可以准确快速的求出最短飞行时间,从而提高了轨迹规划的效率。Aiming at the outer root-finding problem in the two-layer optimization framework, the present invention combines the advantages of Newton's method and bisection method to propose a hybrid optimization algorithm. This method first uses bisection method to narrow the scope of the solution space until the absolute function value of the upper and lower boundaries is less than the preset value, and then uses the calculation result as the initial value of Newton's method for solution. By providing high-quality initial values for Newton's method through bisection method, the hybrid optimization algorithm has the advantages of strong robustness of bisection method and fast convergence speed of Newton's method, and can accurately and quickly calculate the shortest flight time, thereby improving the efficiency of trajectory planning.

在一个实施例中,通过数值仿真的方法验证本发明的性能。In one embodiment, the performance of the present invention is verified by numerical simulation.

参考航天器位于500km高的近圆轨道上运行,卫星的初始质量为1000kg。发动机的最大推力为50N,最大Isp为200s,仿真过程被离散为100步。飞行时间的上下边界值分别为100s和3000s,凸优化问题是基于凸优化工具箱CVX求解,选择SDPT3作为求解器。仿真计算机配备3.0GHz Intel Core i7处理器和16Gb缓存。The reference spacecraft is located in a near-circular orbit at an altitude of 500 km. The initial mass of the satellite is 1000 kg. The maximum thrust of the engine is 50 N, the maximum I sp is 200 s, and the simulation process is discretized into 100 steps. The upper and lower boundary values of the flight time are 100 s and 3000 s, respectively. The convex optimization problem is solved based on the Convex Optimization Toolbox CVX, and SDPT3 is selected as the solver. The simulation computer is equipped with a 3.0GHz Intel Core i7 processor and 16Gb cache.

假设卫星从一个初始椭圆绕飞轨道机动到另一个椭圆绕地相对轨道,在不考虑各种摄动因素的影响下,卫星可以围绕目标飞行且不需要消耗额外的燃料。Assuming that the satellite maneuvers from an initial elliptical orbit to another elliptical orbit relative to the earth, without considering the influence of various perturbation factors, the satellite can fly around the target without consuming additional fuel.

卫星的初态和终态为The initial and final states of the satellite are

X0=[1×103m,1×104m,0m,0m/s,-2.21m/s,2.21m/s]TX 0 =[1×10 3 m,1×10 4 m,0m,0m/s,-2.21m/s,2.21m/s] T ;

Xf=[866.03m,-1×103m,0m,-0.55m/s,-1.92m/s,0m/s]TX f =[866.03m,-1×10 3 m,0m,-0.55m/s,-1.92m/s,0m/s] T ;

首先,为验证上述理论推导的正确性,先给定的飞行时间求解最小终端误差问题。在时间上下边界之间每隔10s采样一次,仿真结果如图5所示,其中J31为终端误差,J32用于测量推力曲线与最大推力的差值,J3为J31和J32的和。由图5可知,当时,最优终端误差J31大于零并随时间减小,当时,最优终端误差J31等于零。,当时,推力幅值保持为Tmax,而当时推力幅值小于Tmax,因此指标J32在第一部分为零,而在第二部分不为零。First, to verify the correctness of the theoretical derivation above, the minimum terminal error problem is solved for a given flight time. Sampling is performed every 10 seconds between the upper and lower boundaries of the time. The simulation results are shown in Figure 5, where J 31 is the terminal error, J 32 is used to measure the difference between the thrust curve and the maximum thrust, and J 3 is the sum of J 31 and J 32. As shown in Figure 5, when When the optimal terminal error J 31 is greater than zero and decreases with time, When , the optimal terminal error J 31 is equal to zero. When the thrust amplitude remains at T max , When the thrust amplitude is less than T max , the index J 32 is therefore zero in the first part but not zero in the second part.

然后,利用本发明提出的双层优化方法对时间最优轨迹规划问题进行求解,其中状态和推力变化曲线如图6-图7所示。从图6可以看出,本发明提出的方法能成功生成卫星相对转移轨迹。如图7所示,虽然推力分量随时间变化,但推力大小保持为TmaxThen, the time optimal trajectory planning problem is solved using the double-layer optimization method proposed in the present invention, where the state and thrust change curves are shown in Figures 6 and 7. As can be seen from Figure 6, the method proposed in the present invention can successfully generate the satellite relative transfer trajectory. As shown in Figure 7, although the thrust component changes with time, the thrust magnitude remains at T max .

为了评价所提出的混合优化算法的性能,采用传统的二分法、牛顿法和序列二次规划方法求解具有相同构型的时间最优问题。SQP方法可以通过直接调用Matlab优化工具箱中的非线性规划函数Fmincon来实现。值得注意的是,前三种方法是基于凸规划优化控制序列,其本身只用于搜索最短飞行时间,而SQP方法直接对控制序列和最小飞行时间同时进行优化。由于SQP方法和传统牛顿法的计算效率和收敛速度受初始值的影响较大,两种方法均以随机初始值执行10次,表1列出了不同方法的性能指标比较。In order to evaluate the performance of the proposed hybrid optimization algorithm, the traditional binary method, Newton method and sequential quadratic programming method are used to solve the time optimal problem with the same configuration. The SQP method can be implemented by directly calling the nonlinear programming function Fmincon in the Matlab optimization toolbox. It is worth noting that the first three methods are based on convex programming to optimize the control sequence, which is only used to search for the shortest flight time, while the SQP method directly optimizes the control sequence and the minimum flight time at the same time. Since the computational efficiency and convergence speed of the SQP method and the traditional Newton method are greatly affected by the initial value, both methods are executed 10 times with random initial values. Table 1 lists the performance index comparison of different methods.

表1不同算法性能对比Table 1 Performance comparison of different algorithms

由表1可以直接看出,上述四种方法得到的最小飞行时间基本相同,验证了本文混合方法的有效性。对于表1中的计算时间准则,虽然会受到计算机配置、程序集成度等多种因素的影响,但前三种方法的计算时间比SQP方法约少两个数量级,证明了凸规划方法在计算效率方面绝对优于非线性优化方法。二分法所花费的时间大约是混合法的两倍,而牛顿法所花费的时间略少于混合法。需要补充的是,传统的牛顿方法只能在10次重复计算中收敛一半。因此,本文提出的混合优化算法在计算效率和鲁棒性方面都具有优越性。It can be directly seen from Table 1 that the minimum flight time obtained by the above four methods is basically the same, which verifies the effectiveness of the hybrid method in this paper. For the calculation time criteria in Table 1, although it will be affected by various factors such as computer configuration and program integration, the calculation time of the first three methods is about two orders of magnitude less than that of the SQP method, proving that the convex programming method is absolutely superior to the nonlinear optimization method in terms of computational efficiency. The time spent by the binary method is about twice that of the hybrid method, while the time spent by the Newton method is slightly less than that of the hybrid method. It should be added that the traditional Newton method can only converge half of the 10 repeated calculations. Therefore, the hybrid optimization algorithm proposed in this paper is superior in both computational efficiency and robustness.

应该理解的是,虽然图1的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,图1中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些子步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that, although the various steps in the flowchart of FIG. 1 are shown in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a portion of the steps in FIG. 1 may include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these sub-steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.

在一个实施例中,如图8所示,提供了一种基于凸规划的相对运动时间最优轨迹快速规划装置,包括:时间最优轨迹规划问题构建模块802、构建最小终端误差问题模块804、问题转化模块806和问题求解模块808,其中:In one embodiment, as shown in FIG8 , a device for rapid planning of a relative motion time optimal trajectory based on convex programming is provided, comprising: a time optimal trajectory planning problem construction module 802, a minimum terminal error problem construction module 804, a problem conversion module 806 and a problem solving module 808, wherein:

时间最优轨迹规划问题构建模块802,用于获取轨迹规划中的边界条件和约束条件;在相对运动坐标系下建立航天器相对运动方程,根据航天器相对运动方程、边界条件以及约束条件,建立时间最优轨迹规划问题;The time optimal trajectory planning problem construction module 802 is used to obtain boundary conditions and constraints in trajectory planning; establish the spacecraft relative motion equation in the relative motion coordinate system, and establish the time optimal trajectory planning problem according to the spacecraft relative motion equation, boundary conditions and constraints;

构建最小终端误差问题模块804,用于将终端误差的二范数设置为最小终端误差问题的目标函数,根据边界条件、约束条件以及目标函数,构建最小终端误差问题;A minimum terminal error problem constructing module 804 is used to set the second norm of the terminal error as the objective function of the minimum terminal error problem, and construct the minimum terminal error problem according to the boundary conditions, the constraint conditions and the objective function;

问题转化模块806,用于对最小终端误差问题进行凸规划,得到终端误差和控制序列;利用终端误差和控制序列构造性能指标,根据性能指标将时间最优轨迹规划问题转化为双层优化问题;双层优化问题的内层为最小终端误差问题,外层为寻根问题;The problem conversion module 806 is used to perform convex programming on the minimum terminal error problem to obtain the terminal error and the control sequence; the performance index is constructed using the terminal error and the control sequence, and the time optimal trajectory planning problem is converted into a two-layer optimization problem according to the performance index; the inner layer of the two-layer optimization problem is the minimum terminal error problem, and the outer layer is the root-finding problem;

问题求解模块808,用于利用混合优化算法对双层优化问题进行求解,得到最短飞行时间。The problem solving module 808 is used to solve the double-layer optimization problem using a hybrid optimization algorithm to obtain the shortest flight time.

在其中一个实施例中,时间最优轨迹规划问题构建模块802还用于根据航天器相对运动方程、边界条件以及约束条件,建立时间最优轨迹规划问题,包括:In one embodiment, the time optimal trajectory planning problem building module 802 is further used to establish the time optimal trajectory planning problem according to the spacecraft relative motion equation, boundary conditions and constraints, including:

对航天器相对运动方程进行离散得到相对运动坐标系中的离散形式相对运动方程;Discretize the spacecraft relative motion equation to obtain the discrete form relative motion equation in the relative motion coordinate system;

根据离散形式相对运动方程、边界条件以及约束条件,建立时间最优轨迹规划问题。According to the discrete relative motion equations, boundary conditions and constraints, the time optimal trajectory planning problem is established.

在其中一个实施例中,边界条件包括初始状态约束和终端状态约束;约束条件包括控制饱和约束;时间最优轨迹规划问题构建模块802还用于根据离散形式相对运动方程、边界条件以及约束条件,建立时间最优轨迹规划问题,包括:In one embodiment, the boundary conditions include initial state constraints and terminal state constraints; the constraint conditions include control saturation constraints; the time optimal trajectory planning problem building module 802 is also used to establish the time optimal trajectory planning problem according to the discrete form relative motion equation, the boundary conditions and the constraint conditions, including:

离散形式相对运动方程为x(i+1)=Adx(i)+BdT(i),其中i表示离散步数,T表示航天器的推力,Ad表示状态系数矩阵,Bd表示控制系数矩阵;The relative motion equation in discrete form is x(i+1)=A d x(i)+B d T(i), where i represents the discrete step number, T represents the thrust of the spacecraft, A d represents the state coefficient matrix, and B d represents the control coefficient matrix;

初始状态约束为x(t0)=x0,m(t0)=m0,其中航天器质量Isp为推进器的真空比冲,g0为海平面重力加速度;The initial state constraints are x(t 0 ) = x 0 , m(t 0 ) = m 0 , where the spacecraft mass I sp is the vacuum specific impulse of the thruster, g0 is the gravitational acceleration at sea level;

终端状态约束为x(tf)=xf。控制饱和约束为||T||2≤Tmax,其中Tmax表示航天器的最大推力;The terminal state constraint is x(t f ) = x f . The control saturation constraint is ||T|| 2 ≤T max , where T max represents the maximum thrust of the spacecraft;

根据离散形式相对运动方程、边界条件以及约束条件,建立时间最优轨迹规划问题为其中t0表示初始时刻,tf表示终端时刻。According to the discrete relative motion equation, boundary conditions and constraints, the time optimal trajectory planning problem is established as follows: Where t0 represents the initial time and tf represents the terminal time.

在其中一个实施例中,构建最小终端误差问题模块804还用于将终端误差的二范数设置为最小终端误差问题的目标函数,根据边界条件、约束条件以及目标函数,构建最小终端误差问题,包括:In one embodiment, the minimum terminal error problem constructing module 804 is further used to set the second norm of the terminal error as the objective function of the minimum terminal error problem, and construct the minimum terminal error problem according to the boundary conditions, the constraint conditions and the objective function, including:

将终端误差的二范数设置为最小终端误差问题的目标函数,根据边界条件、约束条件以及目标函数,构建最小终端误差问题为min J2=||x(tf)-xf||2,其中当时,最小终端误差J2随tf的增加而减小,当时,J2始终为零,x(tf)表示实际终端状态,xf表示期望终端状态。The second norm of the terminal error is set as the objective function of the minimum terminal error problem. According to the boundary conditions, constraints and objective function, the minimum terminal error problem is constructed as min J 2 =||x(t f )-x f || 2 , where When , the minimum terminal error J2 decreases with the increase of tf . , J 2 is always zero, x(t f ) represents the actual terminal state, and x f represents the expected terminal state.

在其中一个实施例中,问题转化模块806还用于利用终端误差和控制序列构造性能指标,包括:In one embodiment, the problem conversion module 806 is further used to construct a performance indicator using the terminal error and the control sequence, including:

利用终端误差和控制序列构造性能指标其中当时J3(tf)>0,当时J3(tf)=0,当时J3(tf)<0。Constructing performance indicators using terminal errors and control sequences Among them When J 3 (t f )>0, when When J 3 (t f )=0, when When J 3 (t f )<0.

在其中一个实施例中,问题求解模块808还用于利用混合优化算法对双层优化问题进行求解,得到最短飞行时间,包括:In one embodiment, the problem solving module 808 is further used to solve the double-layer optimization problem using a hybrid optimization algorithm to obtain the shortest flight time, including:

利用二分法缩小解空间的范围,直至上下边界的绝对函数值小于预设值,再将计算结果作为牛顿法的初值进行求解,得到最短飞行时间。The range of the solution space is narrowed down by using the bisection method until the absolute function values of the upper and lower boundaries are less than the preset values. The calculated results are then used as the initial values of the Newton method to solve the problem and obtain the shortest flight time.

在其中一个实施例中,问题求解模块808还用于利用二分法缩小解空间的范围,直至上下边界的绝对函数值小于预设值,再将计算结果作为牛顿法的初值进行求解,得到最短飞行时间,包括:In one embodiment, the problem solving module 808 is further used to narrow the scope of the solution space by using the dichotomy method until the absolute function value of the upper and lower boundaries is less than a preset value, and then the calculation result is used as the initial value of the Newton method to solve and obtain the shortest flight time, including:

利用二分法缩小解空间的范围,直至上下边界的绝对函数值小于预设值,再将计算结果作为牛顿法的初值进行求解,得到最短飞行时间的步骤如下:Use the binary search method to narrow the scope of the solution space until the absolute function value of the upper and lower boundaries is less than the preset value, and then use the calculation result as the initial value of Newton's method to solve the problem. The steps to obtain the shortest flight time are as follows:

步骤S1:令二分法的上下边界t1b和tub分别等于tLB和tUB,分别以t1b和tub为飞行时间求解双层优化问题,根据计算结果得到指标J3(t1b)和J3(tub);tLB和tUB表示飞行时间的上下边界;Step S1: Let the upper and lower boundaries t 1b and t ub of the dichotomy be equal to t LB and t UB respectively, solve the double-layer optimization problem with t 1b and t ub as the flight time respectively, and obtain the indicators J 3 (t 1b ) and J 3 (t ub ) according to the calculation results; t LB and t UB represent the upper and lower boundaries of the flight time;

步骤S2:如果J3(t1b)和J3(tub)的绝对值大于预设的执行步骤S4。否者,执行步骤S5;Step S2: If the absolute values of J 3 (t 1b ) and J 3 (t ub ) are greater than the preset Execute step S4. Otherwise, execute step S5;

步骤S3:令t0=(t1b+tub)/2,并以t0为飞行时间计算双层优化问题,得到指标J3(t0),如J3(t1b)·J3(t0)<0,令t1b=t0,否则令tub=t0,重复步骤S1至步骤S3,直至J3(t1b)和J3(tub)的绝对值均小于预设的令t0=t1b,t1=tub,k=0;k表示牛顿法的迭代次数;Step S3: Let t 0 =(t 1b +t ub )/2, and use t 0 as the flight time to calculate the double-layer optimization problem and obtain the index J 3 (t 0 ). If J 3 (t 1b )·J 3 (t 0 )<0, let t 1b =t 0 , otherwise let t ub =t 0 , and repeat steps S1 to S3 until the absolute values of J 3 (t 1b ) and J 3 (t ub ) are both less than the preset Let t 0 = t 1b , t 1 = t ub , k = 0; k represents the number of iterations of Newton's method;

步骤S4:判断t0-t1的绝对值是否大于等于ε且k<M。如是,执行步骤S6,否则执行步骤S7;ε表示算法精度要求;M表示最大迭代次数;Step S4: Determine whether the absolute value of t 0 -t 1 is greater than or equal to ε and k<M. If so, execute step S6, otherwise execute step S7; ε represents the algorithm accuracy requirement; M represents the maximum number of iterations;

步骤S5:令t2=t1-J3(t1)(t1-t0)/(J3(t1)-J3(t0)),以t2为飞行时间求解双层优化问题,计算J3(t2);Step S5: Let t 2 = t 1 - J 3 (t 1 )(t 1 - t 0 )/(J 3 (t 1 ) - J 3 (t 0 )), take t 2 as the flight time, solve the double-layer optimization problem, and calculate J 3 (t 2 );

步骤S6:令t0=t1,J3(t0)=J3(t1),t1=t2,J3(t1)=J3(t2),k=k+1,执行步骤S5;Step S6: Let t 0 = t 1 , J 3 (t 0 ) = J 3 (t 1 ), t 1 = t 2 , J 3 (t 1 ) = J 3 (t 2 ), k = k + 1, and execute step S5;

步骤S7:判断t0-t1的绝对值是否小于ε;如是,输出t1,否则计算失败;t1表示最短飞行时间。Step S7: determine whether the absolute value of t 0 -t 1 is less than ε; if so, output t 1 , otherwise the calculation fails; t 1 represents the shortest flight time.

关于基于凸规划的相对运动时间最优轨迹快速规划装置的具体限定可以参见上文中对于基于凸规划的相对运动时间最优轨迹快速规划方法的限定,在此不再赘述。上述基于凸规划的相对运动时间最优轨迹快速规划装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。For the specific definition of the rapid planning device for the optimal trajectory of relative motion time based on convex programming, please refer to the definition of the rapid planning method for the optimal trajectory of relative motion time based on convex programming above, which will not be repeated here. Each module in the above-mentioned rapid planning device for the optimal trajectory of relative motion time based on convex programming can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

在一个实施例中,提供了一种计算机设备,该计算机设备可以是终端,其内部结构图可以如图9所示。该计算机设备包括通过系统总线连接的处理器、存储器、网络接口、显示屏和输入装置。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统和计算机程序。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该计算机设备的网络接口用于与外部的终端通过网络连接通信。该计算机程序被处理器执行时以实现一种基于凸规划的相对运动时间最优轨迹快速规划方法。该计算机设备的显示屏可以是液晶显示屏或者电子墨水显示屏,该计算机设备的输入装置可以是显示屏上覆盖的触摸层,也可以是计算机设备外壳上设置的按键、轨迹球或触控板,还可以是外接的键盘、触控板或鼠标等。In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be shown in FIG9. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected via a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, a relative motion time optimal trajectory rapid planning method based on convex programming is implemented. The display screen of the computer device may be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device may be a touch layer covered on the display screen, or a key, trackball or touchpad provided on the computer device housing, or an external keyboard, touchpad or mouse, etc.

本领域技术人员可以理解,图9中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Those skilled in the art will understand that the structure shown in FIG. 9 is merely a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.

在一个实施例中,提供了一种计算机设备,包括存储器和处理器,该存储器存储有计算机程序,该处理器执行计算机程序时实现上述实施例中方法的步骤。In one embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the method in the above embodiment when executing the computer program.

在一个实施例中,提供了一种计算机存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现上述实施例中方法的步骤。In one embodiment, a computer storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method in the above embodiment are implemented.

本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims (6)

1. The method for rapidly planning the relative movement time optimal track based on convex planning is characterized by comprising the following steps:
acquiring boundary conditions and constraint conditions in track planning;
Establishing a spacecraft relative motion equation under a relative motion coordinate system, and establishing a time optimal track planning problem according to the spacecraft relative motion equation, the boundary condition and the constraint condition;
Setting a two-norm of a terminal error as an objective function of a minimum terminal error problem, and constructing the minimum terminal error problem according to the boundary condition, the constraint condition and the objective function;
Performing convex planning on the minimum terminal error problem to obtain a terminal error and a control sequence;
Constructing a performance index by utilizing the terminal error and the control sequence, and converting the time optimal track planning problem into a double-layer optimization problem according to the performance index; the inner layer of the double-layer optimization problem is the minimum terminal error problem, and the outer layer is the root finding problem;
solving the double-layer optimization problem by utilizing a hybrid optimization algorithm to obtain the shortest flight time;
According to the spacecraft relative motion equation, the boundary condition and the constraint condition, establishing a time optimal track planning problem, wherein the method comprises the following steps:
dispersing the spacecraft relative motion equation to obtain a discrete form relative motion equation in a relative motion coordinate system;
establishing a time optimal track planning problem according to the discrete form relative motion equation, the boundary condition and the constraint condition;
the boundary conditions comprise initial state constraints and terminal state constraints; the constraint conditions include controlling saturation constraints; according to the discrete form relative motion equation, the boundary condition and the constraint condition, establishing a time optimal track planning problem, wherein the method comprises the following steps:
The discrete form relative motion equation is x (i+1) =a dx(i)+Bd T (i), wherein i=1, … N, N is the discrete step number, T represents the thrust of the spacecraft, a d represents the state coefficient matrix, and B d represents the control coefficient matrix;
The initial state constraint is x (t 0)=x0,m(t0)=m0, wherein spacecraft mass I sp is vacuum specific impulse of the propeller, g 0 is sea level gravity acceleration;
The terminal state constraint is x (T f)=xf; the control saturation constraint is ||t| 2≤Tmax, wherein T max represents the maximum thrust of the spacecraft;
According to the discrete form relative motion equation, the boundary condition and the constraint condition, establishing a time optimal track planning problem as Wherein t 0 represents an initial time, and t f represents a terminal time;
Setting the two norms of the terminal error as an objective function of the minimum terminal error problem, and constructing the minimum terminal error problem according to the boundary condition, the constraint condition and the objective function, wherein the method comprises the following steps:
Setting the two norms of the terminal error as an objective function of the minimum terminal error problem, and constructing the minimum terminal error problem as min J 2=||x(tf)-xf||2 according to the boundary condition, the constraint condition and the objective function when At this point, the minimum termination error J 2 decreases with increasing t f, whenWhen J 2 is always zero, x (t f) represents the actual terminal state, x f represents the desired terminal state,Representing the shortest time of flight;
Constructing a performance index using the terminal error and the control sequence, comprising:
Constructing performance index using the terminal error and control sequence Wherein whenJ 3(tf) is greater than 0 whenWhen J 3(tf) =0, whenTime J 3(tf)<0,Tmax represents the maximum thrust of the spacecraft.
2. The method of claim 1, wherein solving the bi-layer optimization problem using a hybrid optimization algorithm results in a minimum time of flight comprising:
And (3) reducing the range of the solution space by using a dichotomy until the absolute function value of the upper boundary and the lower boundary is smaller than a preset value, and solving the calculated result as an initial value of the Newton method to obtain the shortest flight time.
3. The method of claim 2, wherein the narrowing of the solution space by the dichotomy until the absolute function value of the upper and lower boundaries is smaller than a preset value, and solving the calculation result as an initial value of newton's method to obtain the shortest flight time comprises:
and (3) reducing the range of the solution space by using a dichotomy until the absolute function value of the upper boundary and the lower boundary is smaller than a preset value, and solving the calculated result as an initial value of the Newton method to obtain the shortest flight time, wherein the steps are as follows:
Step S1: making the upper and lower boundaries t 1b and t ub of the dichotomy equal to t LB and t UB respectively, solving a double-layer optimization problem by taking t 1b and t ub as flight time respectively, and obtaining indexes J 3(t1b) and J 3(tub according to a calculation result; the t LB and t UB represent the upper and lower boundaries of time of flight;
Step S2: if the absolute values of J 3(t1b) and J 3(tub) are greater than the preset reference value Executing the step S4, if not, executing the step S5;
Step S3: let t 0=(t1b+tub)/2 and calculate double-layer optimization problem with t 0 as flight time to obtain index J 3(t0), if J 3(t1b)·J3(t0) < 0, let t 1b=t0, otherwise let t ub=t0, repeat steps S1 to S3 until absolute values of J 3(t1b) and J 3(tub) are smaller than preset Let t 0=t1b,t1=tub, k=0; k represents the iteration number of newton's method;
Step S4: judging whether the absolute value of t 0-t1 is larger than or equal to epsilon and k is smaller than M, if yes, executing step S6, otherwise, executing step S7; the epsilon represents the algorithm precision requirement; the M represents the maximum iteration number;
Step S5: let t2=t1-J3(t1)(t1-t0)/(J3(t1)-J3(t0)), solve the double-layer optimization problem with t 2 as the flight time, calculate J 3(t2);
step S6: causing t0=t1,J3(t0)=J3(t1),t1=t2,J3(t1)=J3(t2),k=k+1, to perform step S5;
Step S7: judging whether the absolute value of t 0-t1 is smaller than epsilon; if yes, outputting t 1, otherwise, failing to calculate; the t 1 represents the shortest time of flight.
4. A convex programming-based rapid planning apparatus for a relative movement time optimal trajectory, for implementing the convex programming-based rapid planning method for a relative movement time optimal trajectory according to claim 1, characterized in that the apparatus comprises:
The time optimal track planning problem construction module is used for acquiring boundary conditions and constraint conditions in track planning; establishing a spacecraft relative motion equation under a relative motion coordinate system, and establishing a time optimal track planning problem according to the spacecraft relative motion equation, the boundary condition and the constraint condition, wherein the method comprises the following steps: dispersing the spacecraft relative motion equation to obtain a discrete form relative motion equation in a relative motion coordinate system; establishing a time optimal track planning problem according to the discrete form relative motion equation, the boundary condition and the constraint condition, wherein the boundary condition comprises an initial state constraint and a terminal state constraint; the constraint conditions include controlling saturation constraints; according to the discrete form relative motion equation, the boundary condition and the constraint condition, establishing a time optimal track planning problem, wherein the method comprises the following steps: the discrete form relative motion equation is x (i+1) =a dx(i)+Bd T (i), wherein i=1, … N, N is the discrete step number, T represents the thrust of the spacecraft, a d represents the state coefficient matrix, and B d represents the control coefficient matrix;
The initial state constraint is x (t 0)=x0,m(t0)=m0, wherein spacecraft mass I sp is vacuum specific impulse of the propeller, g 0 is sea level gravity acceleration;
The terminal state constraint is x (T f)=xf; the control saturation constraint is ||t| 2≤Tmax, wherein T max represents the maximum thrust of the spacecraft;
According to the discrete form relative motion equation, the boundary condition and the constraint condition, establishing a time optimal track planning problem as Wherein t 0 represents an initial time, and t f represents a terminal time;
the minimum terminal error problem constructing module is configured to set a two-norm of a terminal error as an objective function of a minimum terminal error problem, and construct the minimum terminal error problem according to the boundary condition, the constraint condition and the objective function, and includes:
Setting the two norms of the terminal error as an objective function of the minimum terminal error problem, and constructing the minimum terminal error problem as min J 2=||x(tf)-xf||2 according to the boundary condition, the constraint condition and the objective function when At this point, the minimum termination error J 2 decreases with increasing t f, whenWhen J 2 is always zero, x (t f) represents the actual terminal state, x f represents the desired terminal state,Representing the shortest time of flight;
the problem conversion module is used for carrying out convex planning on the minimum terminal error problem to obtain a terminal error and a control sequence; constructing a performance index by utilizing the terminal error and the control sequence, and converting the time optimal track planning problem into a double-layer optimization problem according to the performance index; the inner layer of the double-layer optimization problem is the minimum terminal error problem, and the outer layer is the root finding problem; constructing a performance index using the terminal error and the control sequence, comprising:
Constructing performance index using the terminal error and control sequence Wherein whenJ 3(tf) is greater than 0 whenWhen J 3(tf) =0, whenTime J 3(tf)<0,Tmax represents the maximum thrust of the spacecraft;
And the problem solving module is used for solving the double-layer optimization problem by utilizing a hybrid optimization algorithm to obtain the shortest flight time.
5. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 3 when the computer program is executed.
6. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 3.
CN202210515805.4A 2022-05-12 2022-05-12 Method and device for fast planning of relative motion time optimal trajectory based on convex programming Active CN114955007B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210515805.4A CN114955007B (en) 2022-05-12 2022-05-12 Method and device for fast planning of relative motion time optimal trajectory based on convex programming

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210515805.4A CN114955007B (en) 2022-05-12 2022-05-12 Method and device for fast planning of relative motion time optimal trajectory based on convex programming

Publications (2)

Publication Number Publication Date
CN114955007A CN114955007A (en) 2022-08-30
CN114955007B true CN114955007B (en) 2024-07-26

Family

ID=82981243

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210515805.4A Active CN114955007B (en) 2022-05-12 2022-05-12 Method and device for fast planning of relative motion time optimal trajectory based on convex programming

Country Status (1)

Country Link
CN (1) CN114955007B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115657461B (en) * 2022-11-07 2024-12-10 中国人民解放军国防科技大学 A fast prediction method for the transfer trajectory fuel of cluster spacecraft based on DNN

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111444603A (en) * 2020-01-17 2020-07-24 北京理工大学 Method for rapidly planning shortest time off-orbit trajectory of recoverable spacecraft

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8489260B2 (en) * 2008-12-16 2013-07-16 California Institute Of Technology Method and apparatus for powered descent guidance
CN111562797B (en) * 2020-07-06 2021-07-30 北京理工大学 An optimal real-time trajectory optimization method for UAV flight time with guaranteed convergence
CN112318505B (en) * 2020-10-28 2021-11-16 江南大学 A variable batch length iterative learning optimization control method for mobile robots
CN113341731B (en) * 2021-06-29 2023-03-24 西北工业大学 Space robot trajectory planning method based on sequence convex optimization
CN113467498B (en) * 2021-07-14 2022-07-01 西北工业大学 A Bezier-convex optimization-based trajectory planning method for the ascent segment of a launch vehicle

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111444603A (en) * 2020-01-17 2020-07-24 北京理工大学 Method for rapidly planning shortest time off-orbit trajectory of recoverable spacecraft

Also Published As

Publication number Publication date
CN114955007A (en) 2022-08-30

Similar Documents

Publication Publication Date Title
Chai et al. Six-DOF spacecraft optimal trajectory planning and real-time attitude control: a deep neural network-based approach
Tang et al. Fuel-optimal low-thrust trajectory optimization using indirect method and successive convex programming
CN109270946B (en) Attitude control method, electronic device and readable storage medium of flexible spacecraft
CN112394645A (en) Neural network backstepping sliding mode control method and system for spacecraft attitude tracking
CN114812569B (en) A relative state estimation method, device and equipment for a maneuverable spacecraft in a pursuit-escape game
Wan et al. Fuel-optimal guidance for end-to-end human-mars entry, powered-descent, and landing mission
CN114253291B (en) Spacecraft formation guidance method and system based on linear pseudospectral model predictive control
CN111562793A (en) Spacecraft Attitude Control Method Considering Mission Time Constraints
Oguri et al. Stochastic sequential convex programming for robust low-thrust trajectory design under uncertainty
Li et al. Multistage linear gauss pseudospectral method for piecewise continuous nonlinear optimal control problems
CN115686048B (en) Dynamic triggering limited time control method for executor limited spacecraft intersection system
Boncoraglio et al. Model reduction framework with a new take on active subspaces for optimization problems with linearized fluid‐structure interaction constraints
Hofmann et al. Toward on-board guidance of low-thrust spacecraft in deep space using sequential convex programming
CN114955007B (en) Method and device for fast planning of relative motion time optimal trajectory based on convex programming
CN108804846A (en) A kind of data-driven attitude controller design method of noncooperative target assembly spacecraft
Chen et al. Model reference resilient control for the helicopter with time‐varying disturbance
Hu et al. Robust model predictive control for hypersonic vehicle with state‐dependent input constraints and parameter uncertainty
CN116484645A (en) Aircraft optimization decision-making method, system, electronic equipment and medium
Khan et al. Analysis and time-delay synchronisation of chaotic satellite systems
Zhang et al. A three-stage sequential convex programming approach for trajectory optimization
Ma et al. Reduced space sequential convex programming for rapid trajectory optimization
CN113467498B (en) A Bezier-convex optimization-based trajectory planning method for the ascent segment of a launch vehicle
He et al. Robust Controller Designing for an Air‐Breathing Hypersonic Vehicle with an HOSVD‐Based LPV Model
Cui et al. Finite‐time trajectory tracking control for autonomous airships with uncertainties and external disturbances
Li et al. Adaptive sequential convex programming for mars ascent vehicle multi-phase trajectory optimization

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant