Next Article in Journal
A Ball-Contacting Dynamic Vibration Absorber with Adjustable Stiffness and Nonlinear Characteristics
Next Article in Special Issue
Physical Modeling and Simulation of Reusable Rockets for GNC Verification and Validation
Previous Article in Journal
Approach and Landing Energy Prediction Based on a Long Short-Term Memory Model
Previous Article in Special Issue
Autonomous and Earth-Independent Orbit Determination for a Lunar Navigation Satellite System
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Learning Fuel-Optimal Trajectories for Space Applications via Pontryagin Neural Networks

by
Andrea D’Ambrosio
1 and
Roberto Furfaro
1,2,*
1
Systems & Industrial Engineering, University of Arizona, Tucson, AZ 85721, USA
2
Aerospace & Mechanical Engineering, University of Arizona, Tucson, AZ 85721, USA
*
Author to whom correspondence should be addressed.
Aerospace 2024, 11(3), 228; https://doi.org/10.3390/aerospace11030228
Submission received: 29 January 2024 / Revised: 4 March 2024 / Accepted: 11 March 2024 / Published: 14 March 2024
(This article belongs to the Special Issue GNC for the Moon, Mars, and Beyond)

Abstract

:
This paper demonstrates the utilization of Pontryagin Neural Networks (PoNNs) to acquire control strategies for achieving fuel-optimal trajectories. PoNNs, a subtype of Physics-Informed Neural Networks (PINNs), are tailored for solving optimal control problems through indirect methods. Specifically, PoNNs learn to solve the Two-Point Boundary Value Problem derived from the application of the Pontryagin Minimum Principle to the problem’s Hamiltonian. Within PoNNs, the Extreme Theory of Functional Connections (X-TFC) is leveraged to approximate states and costates using constrained expressions (CEs). These CEs comprise a free function, modeled by a shallow neural network trained via Extreme Learning Machine, and a functional component that consistently satisfies boundary conditions analytically. Addressing discontinuous control, a smoothing technique is employed, substituting the sign function with a hyperbolic tangent function and implementing a continuation procedure on the smoothing parameter. The proposed methodology is applied to scenarios involving fuel-optimal Earth−Mars interplanetary transfers and Mars landing trajectories. Remarkably, PoNNs exhibit convergence to solutions even with randomly initialized parameters, determining the number and timing of control switches without prior information. Additionally, an analytical approximation of the solution allows for optimal control computation at unencountered points during training. Comparative analysis reveals the efficacy of the proposed approach, which rivals state-of-the-art methods such as the shooting technique and the adaptive Gaussian quadrature collocation method.

1. Introduction

Addressing optimal control problems (OCPs) stands as a critical endeavor in crafting precise and efficient maneuvers for space missions. Traditionally, OCPs are approached through either direct or indirect methods. The direct method entails discretizing the problem to transform it into a Non-Linear Programming (NLP) problem, which is subsequently solvable via established optimization techniques like the trust region method, Nelder–Mead method, or interior point method [1]. However, a significant concern with direct methods arises from the fact that general NLP problems are deemed NP-hard, implying indeterminate polynomial time complexity. This characteristic entails that the computational effort required to attain the optimal solution lacks a predefined bound, with no assurance of optimality or convergence, thereby casting doubt on the reliability of these approaches. Conversely, the indirect method harnesses the calculus of variation and the Pontryagin Minimum Principle (PMP) [2]. Consequently, first-order necessary conditions for optimality are derived from the problem’s Hamiltonian in terms of states and costates. This leads to the formulation of Ordinary Differential Equations (ODEs), constituting the Two-Point Boundary Value Problem (TPBVP), typically tackled through single and multiple shooting methods [3,4], orthogonal collocation [5], or pseudo-spectral methods [6]. However, a notable drawback of the indirect optimization lies in its narrow convergence window, which is heavily reliant on the initial guess of unknown initial costates. Furthermore, costates often lack direct physical interpretation, exacerbating the challenge of estimating an initial guess. Consequently, despite the theoretical guarantees of optimality, obtaining optimal control via the indirect method can prove arduous.
Among the OCPs employed for space exploration missions, minimum time trajectories and fuel optimal trajectories, which are also considered in this paper, play a key role especially during the orbit transfer phases and the proximity maneuvers around a target body. Applications of such optimal trajectories already studied in the literature include cislunar trajectories [7,8,9,10,11], low−thrust orbit transfer around the Earth [12], interplanetary trajectories [13], and solar sail optimal trajectories [14]. Specifically, the primary problem centers on reducing propellant consumption (or maximizing final mass), whereas the secondary objective is to minimize the time of flight. The common aspect between those two types of problem is that a discontinuous control is usually involved when traditional thrusters are employed. This occurs because the control input, often represented by the throttle factor (or engine thrust ratio), appears linearly in the Hamiltonian of the problem, thus leading to a bang−off−bang or bang−bang type of control. In particular, two major difficulties arise when dealing with fuel optimal problems tackled via an indirect method. First, an estimate for initializing the costates is necessary, and at times, it can be challenging to provide such an estimate due to the lack of direct physical interpretation for the costates. Secondly, the number of switches of the control and their temporal location are usually unknown. To deal with that, a very accurate and extensive study is presented by Taheri and Junkins [15] with the goal of generating minimum-fuel switching surfaces and computing the solution of N-impulse fuel optimal interplanetary rendezvous and Earth orbit transfers. Moreover, the link between impulsive and continuous-thrust trajectories is also proved via optimal switching surfaces. Due to the strong importance of fuel-optimal (and minimum time) trajectories, many other works in the literature have been dedicated to the study of those trajectories and how to mitigate the difficulties arising when dealing with discontinuous control. In particular, three main techniques can be highlighted (eventually used in combination): the homotopic continuation procedure, the convexification technique, and the smoothing function technique.
The homotopic continuation procedure is widely employed and effective in solving fuel or time-optimal problems [10,11,12,13,14]. It consists of linking the original (difficult) OCP with easier problems to solve. This technique is based on a homotopic continuation parameter whose value is usually equal to one to represent the easier OCP. Thus, this problem is first solved, and then more difficult OCPs are solved step by step by slowly decreasing the continuation parameter to low values (close to zero). This continuation procedure allows for obtaining an accurate solution of the original OCP. Within homotopy continuation, three perturbing functions are introduced by Bertrand and Epenoy [16]: the quadratic, logarithmic and extended logarithmic functions. Considering different types of perturbing functions actually leads to having different formulations of the optimal throttle input, while the optimal thrust unit direction always remains the same. Regarding the quadratic perturbing function, it serves as a bridge connecting an energy-optimal problem to a fuel-optimal problem and has been utilized in numerous studies. To cite some examples, it was employed in [17] to derive low−thrust fuel−optimal trajectories, in [18] to calculate fuel−optimal low−thrust Earth−orbit transfers, accounting for shadow eclipses, and in [19] to study fuel optimal soft landing trajectories on asteroids. As an example of the logarithmic perturbing function, it is exploited by Izzo and Öztürk [20] to obtain the fuel−optimal trajectories required to build a dataset and train a Deep Neural Network (DNN) in a supervised fashion. The resulting model appears to hold promise for the potential real−time onboard implementation of an optimal guidance and control system for a spacecraft. Even in the case of a homotopic continuation procedure, an initial guess of the initial costates is still required. A methodology to approximate the initial costates for a fuel−optimal descent trajectory on asteroids is proposed in Ref. [21], where a two−impulse descent trajectory computed via an irregular gravitational Lambert solver is used for the costates initialization, thus removing the issue and showing feasible results in low computational times. Continuation procedures are also employed in [22,23]. The initial paper achieves fuel−optimal orbital transfers by employing Lawden’s primer vector theory and implementing a continuation procedure on the thrust amplitude. Additionally, the proposed strategy enables the development of an automated algorithm, offering the benefit of not necessitating any initial guess for the costate variables. In the subsequent study, a novel homotopy continuation technique is introduced, connecting the original fuel−optimal low−thrust trajectory with the time−optimal problem. Moreover, the dynamical model introduces new variables to reduce the number of unknown initial costates, allowing the mass costate to be expressed analytically in logarithmic form.
Another important methodology to rapidly and accurately solve OCPs is the convexification technique, which allows for transforming nonconvex problems into convex problems. In fact, convex problems are easier to solve, and theoretical guarantees about the solutions convergence and the computational efficiency are generally available. Convexification has been exploited widely within the aerospace community for fuel−optimal problems, involving (but not limited to) the landing on Mars [24] and asteroids [25], transfer trajectories between periodic orbits in the cislunar space [26], cooperative rendezvous [27], and interplanetary low−thrust trajectories using a subsequent optimization process [28]. Finally, fuel−optimal and minimum time trajectories are linked and computed via convex optimization in [29], where the authors first solve fuel−optimal trajectories in order to compute accurate minimum time trajectories. However, for further details about convex optimization for aerospace applications, the reader can refer to Ref. [30].
Finally, smoothing techniques are based on the approximation of the sign function involved in the discontinuous control with smooth functions. Even in this case, there is the presence of a smoothing parameter which is slowly decreased with a continuation procedure to accurately obtain the discontinuous control. Many smoothing techniques have been proposed in the literature. As an example, a trigonometric−based regularization is employed in [31] to study fuel−optimal trajectories including also path constraints. The same kind of problem is faced in Refs. [32,33,34], where a hyperbolic tangent smoothing function is employed. This last smoothing function is actually the smoothing technique exploited in this paper to approximate the discontinuous control.
This work delves into fuel−optimal trajectories with fixed time of flight, tackled through the combination of indirect methods and a machine learning approach known as Pontryagin Neural Networks (PoNNs), which is a specialized framework within Physics-Informed Neural Networks (PINNs). As defined in [35], PoNNs are a subset of PINNs specifically trained to learn optimal control actions conforming to the Pontryagin Minimum Principle (PMP). By leveraging PoNNs, solutions to the Two−Point Boundary Value Problems (TPBVPs) associated with fuel−optimal scenarios are learned in terms of states and costates. Notably, the PINN framework utilized in PoNNs is the Extreme Theory of Functional Connections (X−TFC), which combines the functional interpolation technique known as the Theory of Functional Connections (TFC), pioneered by Mortari [36], and the Extreme Learning Machine (ELM) [37]. According to TFC, latent solutions are represented by constrained expressions (CEs), comprising a free function and a functional component that consistently satisfies boundary conditions analytically. The analytical fulfillment of these boundary constraints offers a significant advantage in solving TPBVPs.
Within X−TFC, the free function is represented by a shallow neural network (NN) trained via Extreme Learning Machine (ELM). Notably, ELM is a training algorithm wherein input weights and biases are randomly sampled from continuous distributions and remain untuned throughout training. Consequently, the only parameters adjusted during training are the output weights. Typically, least−square (LS) methods are employed within ELM for training, with proofs of convergence provided in [37]. In this work, Chebyshev Neural Networks (ChNN) are utilized as the free−function [38]. X−TFC emerges as a versatile tool applicable to various domains, ranging from data−driven parameter discovery of Ordinary Differential Equations (ODEs) [39] to solving zero−finding problems by identifying promising homotopy paths [40]. Furthermore, owing to their efficacy in solving Two−Point Boundary Value Problems (TPBVPs), both frameworks have been employed in solving optimal control problems (OCPs) within aerospace applications. For instance, they have been utilized in energy−optimal landing problems on small and large planetary bodies [41,42], energy−optimal circumnavigation trajectories around asteroids with collision avoidance [43], energy−optimal relative motion problems [44], optimal planar orbit transfers [45], and intercept problems [35]. However, in a previous work addressing fuel−optimal landing on large planetary bodies with constant gravity through TFC [46], the number of control switches was known in advance, allowing for the problem to be simplified by explicitly segmenting the time domain into three parts. Conversely, in the present study, the number of switches for discontinuous control is not assumed to be known a priori. To the best of the authors’ knowledge, this study marks the first instance where PoNNs are employed to learn solutions of OCPs featuring discontinuous control in aerospace applications. Specifically, two distinct fuel−optimal problems are tackled to evaluate the proposed approach: a low−thrust interplanetary transfer from Earth to Mars orbit and a landing trajectory on Mars. For both scenarios, the obtained solutions are compared with other state−of−the−art methods, such as the shooting method and adaptive Gaussian quadrature collocation method.
Finally, the main contributions of this paper include the following: (1) the extension of the PoNN framework to generate solutions of OCPs with discontinuous control thanks to the combination with the smoothing hyperbolic tangent and the continuation procedure; (2) the proposed framework autonomously detects the number of switches in the control as well as their temporal location without any a priori knowledge; (3) the solution convergence is obtained with random initial guesses of the output weights of the PoNN; (4) the utilization of the X−TFC constrained expressions (CEs) facilitates the availability of an analytical approximation for the optimal trajectory and control, obviating the need for interpolation to compute solutions at points not encountered during training and mitigating potential accuracy degradation.
This paper is organized as follows. Section 1 is dedicated to a brief recall of the indirect method and the presentation of the proposed strategy to solve OCPs via PoNNs. Afterwards, fuel−optimal problems are formulated for both the interplanetary transfer and the landing trajectory, and the latent solutions approximation via CEs is provided. Section 3 and Section 4 report the obtained results and related discussions, respectively. Section 6 provides concluding remarks.

2. Pontryagin Neural Networks

This section offers a concise overview of tackling optimal control problems (OCPs) using the indirect method. Initially, we outline the derivation of the Two−Point Boundary Value Problem (TPBVP) from the application of the Pontryagin Minimum Principle (PMP) and the calculus of variations. Subsequently, we delve into the design and training process of Pontryagin Neural Networks (PoNNs), focusing on their ability to learn the state−costate pair, which constitutes the solution to the TPBVP.

2.1. Optimal Control Problems via Indirect Method

Optimal control problems (OCPs) typically entail a system of differential equations governing the evolution of state and control variables while also adhering to an optimal criterion expressed through the minimization or maximization of a cost function. Broadly, this cost function is contingent upon both state and control variables, which are represented as follows:
J = Φ ( x ( t 0 ) , t 0 , x ( t f ) , t f ) + t 0 t f L ( x ( t ) , u ( t ) , t ) d t
subject to the dynamic constraints, expressed as
x ˙ = f ( x ( t ) , u ( t ) , t )
and the boundary conditions
Φ ( x ( t 0 ) , t 0 ) = Φ 0
Φ ( x ( t f ) , t f ) = Φ f
In the previous equations, x ( t ) represents the state vector, u ( t ) signifies the control vector, and t denotes the independent variable, which is typically time. The parameters t 0 and t f correspond to the initial and final time instants, respectively. Within Equation (1), Φ denotes the end−point cost, often referred to as the Meyer cost, while L represents the running cost, alternatively known as the Lagrangian cost [1]. As mentioned earlier, optimal control problems can be addressed using either direct or indirect methods. The methodology proposed in this study relies on the indirect approach. Consequently, the optimal control problems are tackled by employing the Pontryagin Maximum (or Minimum) Principle (PMP) [47]. Utilizing the PMP necessitates the formulation of the Hamiltonian, which entails
H = L + λ T f
where λ represent the costate (or adjoint variables). Following the first−order optimality conditions of the Pontryagin Maximum (or Minimum) Principle (PMP), the optimal control can be obtained by differentiating the Hamiltonian with respect to the control vector and equating it to zero:
H u = 0
Furthermore, by applying the first−order necessary conditions for the state and costate variables, we derive the following system of ODEs:
x ˙ = H λ
λ ˙ = H x
Lastly, transversality conditions on the costates and the Hamiltonian, if applicable (e.g., when the corresponding state variable is unconstrained), must be enforced. To provide comprehensive coverage, the potential transversality conditions (excluding any constraints) are listed below:
λ ( t 0 ) = J x 0
H ( t 0 ) = J t 0
λ ( t f ) = J x f
H ( t f ) = J t f
Equations (6)–(8), coupled with the transversality conditions on the Hamiltonian, constitute a BVP whose solutions will be acquired using PoNNs. It is worth noting that with the proposed approach, the transversality conditions for the costate are inherently satisfied a priori, as elucidated later. Therefore, they do not explicitly feature in the BVP.

2.2. X−TFC for TPBVPs

In the PoNNs framework, the X−TFC framework is utilized to tackle a generic TPBVP in the time domain. The implicit form of the vector differential equation for a generic TPBVP in the time domain is expressed as follows:
F i t , y j ( t ) , y ˙ j ( t ) , y ¨ j ( t ) = 0 subject to : y j ( t 0 ) = y 0 j y j ( t f ) = y f j y ˙ j ( t 0 ) = y ˙ j 0 y ˙ j ( t f ) = y ˙ f j
In the previous equation, i denotes the number of differential equations constituting the ODEs system, while j represents the number of unknown functions y j ( t ) , which serve as the solutions of the system. The independent variable is time t, belonging to the interval [ t 0 , t f ] . The initial phase of the X−TFC method involves deriving constrained expressions and their derivatives, akin to the process developed in the original TFC [36],
y j ( ) ( t ) = g j ( ) ( t ) + k = 1 n j η k j s k ( ) ( t )
In the given expression, the superscript denotes the th derivative with respect to the independent variable. n j represents the number of constraints for the jth unknown function and/or its derivatives, η k j denotes coefficients, and g j ( t ) signifies the free function. As outlined in [36], the functions s k ( t ) , termed support functions, can be chosen as follows:
s k ( t ) = t k 1
After defining the constrained expression, enforcing the constraints on y j ( t ) and/or its derivatives at the boundary time instances (e.g., t 0 and t f ) within the constrained expression yields a system of linear algebraic equations. This system is subsequently solved to determine the coefficients η k j .
Once the η k j coefficients are computed, the boundary constraints from Equation (13) are analytically embedded into the constrained expression. Subsequently, inserting the constrained expressions into the F i differential equations transforms them into a revised set of equations denoted as F ˜ i . This revised set of equations solely depends on the independent variable t, the free function g j ( t ) , and their derivatives. Specifically,
F ˜ i t , g j ( t ) , g ˙ j ( t ) , g ¨ j ( t ) = 0
The original constrained vector differential equation undergoes a transformation into an unconstrained vector differential equation. This occurs because the boundary conditions are embedded within it through the derived η k j values. To address Equation (16), X−TFC employs a single−layer neural network (NN) as the free function, denoted as g j ( t ) , which is trained using the Extreme Learning Machine (ELM) algorithm [37]. That is,
g j ( z ) = q = 1 L β j , q σ j , q w q z + b q = σ j , 1 σ j , L T β j = σ j T ( z ) β j
Here, L represents the number of hidden neurons. w q R denotes the input weight connecting the qth hidden neuron to the input nodes, while β j , q R , with q = 1 , , L , represents the output weight connecting the qth hidden neuron to the output node. Additionally, b q stands for the bias of the qth hidden neuron. The function σ j , q ( · ) signifies the activation functions chosen for the free function g j ( z ) with the same activation function typically selected for all neurons and free functions. The reader should note that while the symbol σ j , q ( · ) represents only the activation function, the bold symbol σ j defines the entire hidden layer matrix.
Equation (17) delineates the crucial disparity between X−TFC and the standard TFC, underscoring why the X−TFC framework is classified within the family of Physics-Informed Neural Networks (PINNs). By employing a neural network (NN) as a free function, instead of orthogonal polynomials as in the standard TFC, the X−TFC approach achieves two significant advantages: (1) it substantially diminishes the curse of dimensionality in ODE and PDE problems compared to the standard TFC; (2) it can be categorized as a PINN method, aligning with the broader paradigm of utilizing neural networks to incorporate physics−based constraints into machine learning models.
Given that we employ the ELM algorithm to train the neural network (NN) [37], the only unknowns to compute are the output weights β j = β j , 1 , , β j , L T . The attentive reader may observe the utilization of a different independent variable, z, rather than the original time variable. This deviation arises because the domains of the activation functions and the problem typically do not align. Consequently, we must map the domain t into the domain z, and vice versa, to ensure compatibility:
z = z 0 + c ( t t 0 ) t = t 0 + 1 c ( z z 0 )
where c is a mapping coefficient, that is,
c = b 2 = z f z 0 t f t 0
Given that c is always a positive number, it is advantageous to express it as c = b 2 . Due to the mapping, all subsequent derivatives of g j ( t ) are defined as follows:
d n g j d t n = β j T d n σ j ( z ) d z n d z d t n = β T d n σ j ( z ) d z n ( b 2 ) n
It is noteworthy that for optimal control problems where the final time is free, the mapping coefficient becomes an unknown quantity that must be determined alongside all the β j output weights. The transformation of the free function and its derivatives from the t domain to the z domain can be summarized as follows:
g j ( t ) = σ j T ( z ) β j g ˙ j ( t ) = b 2 σ j T ( z ) β j g ¨ j ( t ) = b 4 σ j T ( z ) β j
where σ j ( z ) is the abbreviation for d σ j ( z ) d z . Equation (16) in the z domain then becomes
F ˜ i ( z , β j ) = 0
To numerically address this TPBVP, we need to partition the z domain into n points. In this study, we discretize z using evenly spaced points, although alternative quadrature schemes can also be utilized. Subsequently, the unconstrained set of differential equations in Equation (22) can be represented as loss functions evaluated at each discretization point:
L i ( β j ) = F ˜ i ( z 0 , β j ) F ˜ i ( z d , β j ) F ˜ i ( z n , β j )
By combining the differential equation for each dimension, an augmented loss function is formulated as follows:
L = L 1 T , . . . , L i T , . . . , L N eq T T
and enforcing it to be a true solution, this vector should ideally be equivalent to 0 . This enables the determination of the β j coefficients through various optimization techniques, such as least−square (LS) for linear problems [48] and iterative least−square (ILS) for non−linear problems [49].
If the iterative least−square method is necessary, the update of the estimations for the unknowns occurs at each iteration as follows:
β k + 1 = β k + Δ β k
where β represents the augmented vector containing all the vectors β j (and potentially the square root of the mapping coefficient b, if the final time is unknown), with the subscript k denoting the current iteration. In general, the term Δ β k can be determined by executing the conventional linear least−square method at each iteration of the iterative least−square procedure:
Δ β k = J ( β k ) T J ( β k ) 1 J ( β k ) T L ( β k )
where J represents the Jacobian matrix, encompassing the derivatives of the losses concerning all the unknowns. One may opt to compute the Jacobian manually or utilize computational tools like Symbolic or Automatic Differentiation routines. The iterative process persists until the following condition is satisfied:
L 2 [ L ( β k ) ] < ϵ
where ϵ denotes a user−defined tolerance, and L 2 signifies the L 2 norm.
Once we are sure that the convergence is achieved by meeting the criterion L 2 [ L ( β k ) ] < ϵ , we can continue to solve the non−linear ODE until the following criterion L 2 [ L ( β k + 1 ) ] > L 2 [ L ( β k ) ] is met. Doing so, the convergence is at least satisfied for the imposed prescribed tolerance and it is pushed to achieve the best accuracy until the round−off error appears. Consequently, the solution accuracy is maximized, allowing for the attainment of the best possible solution accuracy tailored to the specific ODE. Nevertheless, for highly non−linear problems, alternative algorithms can be leveraged to enhance the efficiency of the solution search. Examples include the Levenberg−Marquardt and the trust−region−reflective algorithms. Both of these algorithms are incorporated in the “lsqnonlin” function of MatLab, and they are indeed utilized in this study.
For the reader’s convenience, Figure 1 provides a schematic illustrating how the proposed PoNN−based framework operates for solving generic OCPs. Summarizing, once the OCP is transformed into a TPBVP (step 1), each latent solution required for the TPBVP is approximated via the X−TFC CEs taking into account the ICs and BCs (steps 2, 3 and 4). At this point, also transversality conditions on the costates are eventually considered, since they represent ICs or BCs that are analytically satisfied via the CEs. Afterwards, the CEs are substituted into the set of the ODEs building the unconstrained TPBVP (step 5), which are then written in their implicit forms to build the loss functions and the augmented loss vector (step 6). Algorithms to minimize the loss vector, such as LS or ILS, are then employed to update the output coefficients β and train X−TFC (step 7) to learn the optimal solution (step 8).

3. Fuel−Optimal Control Problems

Typically, in a fuel−optimal control problem, the objective is to either maximize the final mass or minimize the fuel consumption. In this study, the latter approach is pursued. Hence, the cost function to be minimized is expressed as shown below [17]:
min J = 1 I s p g 0 t 0 t f T d t
where T and I s p denote the thrust magnitude supplied by the spacecraft engine and its specific impulse, respectively. Here, g 0 = 9.80665 m/s2, and t 0 and t f represent the initial and final times (in this study, t 0 = 0 ). Traditionally, in such problems, the thrust vector is expressed as T = T α ^ = T m a x δ α ^ , where T m a x denotes the maximum available thrust, δ [ 0 , 1 ] signifies the throttle factor (also referred to as the engine thrust ratio), and α ^ (hereafter simply denoted as α ) represents the direction of the thrust (unit vector). Consequently, Equation (28) is transformed into the following:
min J = T m a x I s p g 0 t 0 t f δ d t
In this study, the final time t f is presumed to be fixed and determined by the user. For rendezvous and landing trajectory scenarios, the boundary constraints are defined by fixed initial and final states, thus
r ( t 0 ) = r 0 ; v ( t 0 ) = v 0 ; m ( t 0 ) = m 0
r ( t f ) = r f ; v ( t f ) = v f
The following subsections will derive the TPBVPs associated to interplanetary and landing trajectories, respectively.

3.1. Interplanetary Trajectories

In the scenario of an interplanetary trajectory, where only the gravitational attraction of the Sun is considered, the equations of motion for a spacecraft, expressed in the heliocentric frame, are provided as follows [17]:
r ˙ = v
v ˙ = μ r 3 r + T m a x δ m α
m ˙ = T m a x δ I s p g 0
where μ = 1.32712440018 × 10 11 km3/s2 represents the Sun’s gravitational constant, r and v stand for the spacecraft’s position and velocity vectors, r denotes the norm of the position vector, and m indicates the mass of the spacecraft. Using Equations (32)–(34), the Hamiltonian of the system can be written as
H = T m a x δ I s p g 0 + λ r T v + λ v T [ μ r 3 r + T m a x δ m α ] λ m T m a x δ I s p g 0 = = T m a x I s p g 0 I s p g 0 λ v T α m + λ m 1 δ + λ r T v + λ v T μ r 3 r
where λ r , λ v and λ m represent the costates of position, velocity, and mass, respectively. By applying Pontryagin’s Minimum Principle (PMP), the optimal thrust direction and magnitude are
α * = λ v | | λ v | |
δ * ( S ) = δ = 0 if S < 0 δ = 1 if S > 0 δ [ 0 , 1 ] if S = 0
where S is the switching function associated to the fuel−optimal problem, and it is defined as the term in parenthesis in Equation (35) that multiplies the control δ :
S = I s p g 0 | | λ v | | m + λ m 1
Please note that Equation (38) has been obtained by substituting the optimal thrust direction α * of Equation (36) into Equation (35). The third case in Equation (37) seldom occurs, since S is zero only at finite isolated points [17]. The additional first−order necessary conditions for optimality related to the costates are
λ r ˙ = μ r 3 λ v 3 μ r · λ v r 5 r
λ v ˙ = λ r
λ m ˙ = T m a x δ m 2 | | λ v | |
Since the final mass is free, the transversality condition on the mass costate has to be imposed. Thus,
λ m ( t f ) = 0
Finally, Equations (32)–(34) and (39)–(42), together with the boundary conditions expressed by Equations (30) and (31), represent the set of equations that build the TPBVP associated to the fuel−optimal control problem. Traditionally, this TPBVP can be solved via a shooting method which provides the initial costates [ λ r ( t 0 ) ; λ v ( t 0 ) ; λ m ( t 0 ) ] that satisfy the equality constraints given by the following terminal conditions:
Ψ = [ r ( t f ) r f , v ( t f ) v f , λ m ( t f ) ] T = 0
However, initiating the shooting technique necessitates an initial estimation for the initial costates. This requirement poses a drawback to the shooting method, as the solution to many problems is highly dependent on the initial guess. Moreover, challenges in solving fueloptimal problems emerge due to the discontinuities present in the optimal throttle function, as outlined in Equations (33), (34) and (41). Numerous numerical methods have been proposed to address this discontinuity and enhance solution accuracy. Among these methods, the smoothing technique is particularly appealing, involving the approximation of the discontinuous function δ * ( S ) with a smooth function. In this study, the hyperbolic tangent function is adopted [31,32]. Consequently, if only the first two conditions of Equation (37) are considered, the following equation can be formulated [31,32]:
δ * ( S ) = 1 2 [ 1 + sign ( S ) ] δ * ( S , ρ ) = 1 2 1 + tanh S ρ
where ρ denotes the smoothing level, which is also known as the smoothing parameter. It is notable that the approximation given by Equation (44) remains valid as ρ 0 . This is why a common practice involves implementing a continuation procedure on the parameter ρ , gradually reducing its value toward 0 while maintaining solution accuracy. For ρ values nearing 1, the hyperbolic tangent function offers a smooth approximation of δ * ( S ) . However, as ρ diminishes, the slope of the hyperbolic tangent increases, approximating the discontinuous behavior of the sign function. It is important to note that the smoothing approximation of Equation (44) is specifically applicable to control bounded within the range [ 0 , 1 ] . For the general bounded control input, the hyperbolic tangent approximation is represented as
δ * ( S , ρ ) = 1 2 ( δ l + δ u ) + ( δ u δ l ) tanh S S c ρ
where δ l and δ u denote the lower and upper bounds of the control input, respectively, while S c signifies the switching point. It is noteworthy that in all the problems addressed in this study, the switching points consistently correspond to instances when the switching function crosses zero, indicating S c = 0 . Introducing the general approximation of Equation (45) allows to introduce also a minimum value of the control which is different from zero. Moreover, it is easy to see that for δ u = 1 and δ l = 0 , Equation (45) provides Equation (44).

3.2. Landing Trajectories

In the context of landing trajectories, the dynamics equations delineated by Equations (32)–(34) remain applicable with an exception concerning the first term on the right−hand side of Equation (33). Typically, this term is replaced by a constant for landing on large planetary bodies, where g ( r ) = g = [ 0 , 0 , g ] , with g representing the constant gravitational acceleration along the vertical axis. However, for the more intricate scenario of landing on small planetary bodies, like asteroids and comets, where the gravitational field is highly irregular and the rotation period cannot be disregarded, this term is substituted with the following:
a g = g ( r ) 2 ω × v ω × ( ω × r ) = g ( r ) + M v + N r
where M and N are defined as
M : = 0 2 ω 0 2 ω 0 0 0 0 0 ; N : = ω 2 0 0 0 ω 2 0 0 0 0 ,
One can note that the Coriolis and centrifugal accelerations have been added to take into account the rotation of the body having an angular velocity ω . This means that in the case of landing on small planetary bodies, the equations of motion are considered to be written in a rotating reference frame, which is usually fixed with the body. There are many different ways to express the term g ( r ) , such as via spherical harmonics, the mass dipole model [50], and the polyhedron model [51]. Another option that can simplify the problem, by removing the dependency on r , is to consider a linearization of the gravitational acceleration as follows:
g ( r ) = g ( r 0 ) + G ( r 0 ) · ( r r 0 )
where r 0 is the initial position, g ( r 0 ) = g 0 and G ( r 0 ) = G are the gravitational acceleration and the gravity gradient matrix computed at the initial time instant. Thus, the generic Hamiltonian of the problem becomes
H = T m a x δ I s p g 0 + λ r T v + λ v T g ( r ) + T m a x δ m α λ m T m a x δ I s p g 0
If the linearized gravity is employed, the mass costate equation remains the same as Equation (41), whereas the position and velocity costates equations become
λ ˙ r = ( N + G ) T λ v
λ ˙ v = λ r M T λ v
In this work, where a constant gravitational acceleration is considered (i.e., when large planetary bodies are taken into account for the landing), the position and velocity costates equations become
λ ˙ r = 0
λ ˙ v = λ r
Generally, the TPBVP to solve for the landing is here represented by Equations (32) and (33) with the modification of Equations (34), (41), (48), (50) and (51), together with the boundary conditions expressed by Equations (30) and (31) and the transversality condition of Equation (42).

3.3. X−TFC Approximation of States/Costates

For both the interplanetary trajectories and landing problems, the PINN X−TFC is used within the PoNNs framework to learn the solution of the TPBVP. Therefore, the states and costates are approximated by using the constrained expressions, which are here derived for the boundary conditions r ( t 0 ) = r 0 , v ( t 0 ) = v 0 , m ( t 0 ) = m 0 , r ( t f ) = r f , and v ( t f ) = v f as follows
r i = σ Ω 1 σ 0 Ω 2 σ f Ω 3 σ 0 Ω 4 σ f T β i + Ω 1 r 0 i + Ω 2 r f i + Ω 3 v 0 i + Ω 4 v f i b 2
v i = b 2 σ Ω 1 σ 0 Ω 2 σ f Ω 3 σ 0 Ω 4 σ f T β i + Ω 1 r 0 i + Ω 2 r f i + Ω 3 v 0 i + Ω 4 v f i b 2
a i = b 4 σ Ω 1 σ 0 Ω 2 σ f Ω 3 σ 0 Ω 4 σ f T β i + Ω 1 r 0 i + Ω 2 r f i + Ω 3 v 0 i + Ω 4 v f i b 2
m = σ Ω 1 σ 0 T β m + Ω 1 m 0
m ˙ = b 2 σ Ω 1 σ 0 T β m + Ω 1 m 0
where i = 1 , 2 , 3 and we define the notation r f i = r i ( t f ) and v f i = v i ( t f ) as the position and velocity components evaluated at the final time t f , while the Ω k ( z ) terms are called switching functions and are defined in Appendix A, and b is defined according to the same procedure previously explained (the reader has to consider that the CEs switching functions, Ω k ( z ) , are different from the switching function S defined before within the fuel−optimal problem). The constrained expressions for the costates are
λ r i = σ r T β r i
λ ˙ r i = b 2 σ r T β r i
λ v i = σ v T β v i
λ ˙ v i = b 2 σ v T β v i
λ ¨ v i = b 4 σ v T β v i
λ m = σ Ω 1 σ f T β λ m + Ω 1 λ m f
λ m ˙ = b 2 σ Ω 1 σ f T β λ m + Ω 1 λ m f
It is important to notice that the expressions of the CEs switching functions Ω k ( z ) are not always the same for all the constrained expressions above, but they change according to the constraints imposed on the corresponding variable. Indeed, for r i , v i and a i , the Ω k ( z ) reported in Table A6 of Appendix A must be used. For m, m ˙ , λ m and λ ˙ m , the Ω k ( z ) reported in Table A1 of Appendix A must be used. One can note that the equality constraints appearing in the shooting function of Equation (43) are already satisfied a priori by the constrained expressions, thus simplifying the problem to be solved. Once the constrained expressions have been built, the loss functions have to be retrieved. These are obtained simply by writing the set of differential equations describing the TPBVP in their implicit form. One should consider that the whole problem can be eased (for both interplanetary and landing trajectories), since Equation (32) is implicitly satisfied by the constrained expression approximating r i and v i . In addition, the transversality condition on the mass costate represented by Equation (42) can also be removed, since the boundary condition is satisfied by the constrained expressions associated to λ m . Finally, if the interplanetary trajectory problem is taken into account, Equation (40) can also be removed from the losses, since it is satisfied by the constrained expression of λ v i . In fact, from the constrained expression of λ v i , λ r i can be directly computed from the opposite of its first time derivative ( λ r = λ v ˙ ) and Equation (39) can be written as a function of λ v ¨ . This also means that the constrained expressions for λ r i and λ ˙ r i can actually be removed, reducing the number of unknowns of the problem. To summarize, the unknowns for each problem are shown below:
  • Interplanetary trajectory: Ξ = β 1 β 2 β 3 β m β λ v 1 β λ v 2 β λ v 3 β λ m T ;
  • Landing: Ξ = β 1 β 2 β 3 β m β λ r 1 β λ r 2 β λ r 3 β λ v 1 β λ v 2 β λ v 3 β λ m T .

4. Results

The methodology elucidated in the preceding sections is employed herein to address two distinct problems: a fuel−optimal interplanetary rendezvous trajectory from Earth to Mars, employing low−thrust maneuvers, and a fuel−optimal landing on Mars. In particular, in the landing problem on a large planetary body under the assumption of a constant gravity (i.e., short times of flight), the number of control switches is known a priori and follows the structure T m a x T m i n T m a x . This happens because the time derivative of the switching function S ˙ is proved to change sign at most once, leading to at most two changes of sign of S. Therefore, the control profile presents at most three subarcs with two switches. On the other hand, in case of a central gravity field assumption (e.g., the interplanetary transfer), S ˙ can change sign more than once, leading to possibly more than three subarcs in the control profile. For more information and detailed theoretical proofs, the reader can refer to Ref. [52]. For both the problems, the time of flight is considered fixed. The initial and final conditions of the two problems, together with the parameters associated with the spacecraft engine, are reported in Table 1. For the interplanetary problem, the same values used in Ref. [31] are employed, while for the landing, the same parameters of Ref. [46] are exploited. Furthermore, Table 1 also reports the values employed to make the problem dimensionless: R ¯ for distance, t ¯ for time, and m ¯ for mass. All the other quantities can be made dimensionless according to a combination of the three mentioned parameters. Finally, the X−TFC parameters are shown in Table 2. One can note that if Chebyshev Neural Networks are employed as activation functions, the input weights and bias ( w q and b q , respectively) are constant values set equal to one and zero, respectively. All the simulations have been implemented in Matlab R2023b and ran with an Intel Core i7−9700 CPU PC with 64 GB of RAM.

4.1. Interplanetary Trajectory

In tackling this problem, the smoothing parameter ρ has been progressively decreased from 1 to 10 10 over 20 iterations, employing a logarithmically spaced vector. Regarding the initial guesses for the unknown coefficients of the constrained expressions, they have been randomly set from a standard uniform distribution U ( 0 , 1 ) for [ β 1 , β 2 , β 3 , β λ v 1 , β λ v 2 , β λ v 3 ]. For the mass and mass costate, β m and β λ m have been computed so that the first guess solutions are a constant value equal to m 0 for m and equal to one for λ m . The algorithm employed for the training of PoNNs is the Levenberg−Marquardt. The results regarding the switching function S and the throttle function are shown in Figure 2 together with a comparison carried out via the shooting method. As can be seen, the PoNNs are able to compute the time location of the switching points well enough. However, the solution for the control stills appears different from the one obtained via the shooting technique, especially in the discontinuities of the control. In order to increase the accuracy, a last step is carried out to better refine the solution and eventually increase the accuracy. Therefore, once the switch intervals are identified, 100 discretization points per switch interval are added to n, and the number of neurons L has been increased to 80. Hence, the X−TFC framework has been run again, and the results after the refinement of the solution are shown in Figure 3, Figure 4 and Figure 5. In particular, the interplanetary transfer and the direction of the thrust are illustrated in Figure 3 and Figure 4, respectively. The switching function S, the control, the mass and mass costate are shown in Figure 5 together with the comparison with the shooting method. The new refined solution is now very close to the one obtained via the shooting method despite a little difference in the last switch of the control thrust. In particular, the fuel consumption computed via PoNNs is 396.85 kg, which differs by 0.79 kg from the minimum solution obtained via the shooting method (396.06 kg). This value is also compliant with the one reported in Ref. [31]. The results obtained with the current simulation are very promising, since the PINN is able to learn the solution together with the correct number of control switches and the switching times without any previous knowledge. Moreover, this is carried out without splitting the time domain into multiple segments as it was shown for a fuel−optimal landing on Mars solved via TFC in a previous work [46].

4.2. Landing Trajectory

For this problem, the smoothing parameter ρ has been decreased from 1 to 10 10 with 20 iterations using a logarithmically spaced vector. For what concerns the initial guesses of the unknown coefficients of the constrained expressions, they have been set randomly for [ β 1 , β 2 , β 3 , β λ r 1 , β λ r 2 , β λ r 3 , β λ v 1 , β λ v 2 , β λ v 3 ]. For the mass and mass costate, β m and β λ m have been computed so that the first−guess solutions are a constant value equal to m 0 for m and equal to 1 for λ m . The algorithm employed is the trust−region−reflective algorithm. The result regarding the time history of the control thrust is shown in Figure 6 together with a comparison carried out via the adaptive Gaussian quadrature collocation method, as implemented in GPOPS−II [53]. Even in this case, PoNNs are able to compute the time location of the switching points well enough. In order to increase the accuracy, the refinement of the solution is carried out. Therefore, once the switch intervals are identified, 100 discretization points per switch interval are added to n, whereas the number of neurons L has not been increased. Hence, the PoNNs framework has been run again, and the results after the refinement of the solution are shown in Figure 7, Figure 8 and Figure 9. In particular, the landing trajectory and the direction of the thrust are illustrated in Figure 7 and Figure 8, respectively. The switching function S, the control, the mass and mass costate are shown in Figure 9, together with the comparison with GPOPS−II. The new refined solution is now very close to the one obtained via GPOPS−II, despite there being a little difference in the switching points. In particular, the fuel consumption computed via PoNNs is 268.30 kg, which differs by 0.37 kg from the minimum solution obtained via GPOPS−II (267.93 kg). This value is also similar to the one reported in Ref. [46], where the fuel consumption is shown to be 275.205 kg. Nevertheless, the approach pursued in this work avoids the a priori knowledge of the number of switches and also the necessity to split the domain to handle discontinuities in the control, as shown in [46]. Another advantage of the proposed approach with respect to Ref. [46] is that an additional optimizer to obtain the switching times, represented by an outer loop on top of the TFC solver, is not required anymore, since the entire solution is computed with the only PoNN framework. However, the method based on the split domain is useful to increase the accuracy of the loss functions in correspondence of the switches. In fact, with the proposed approach, the loss functions present some jumps when the discontinuities are present. This indicates that the two methods can actually be used in combination: the current one to detect the first guess solution with the number of switches and their time location, and the one based on the domain splitting to improve accuracy and performances.

5. Discussion

The following advantages can be highlighted when using PoNNs to solve OCPs similar to the ones proposed in this paper:
  • In the examined scenarios, the framework demonstrates convergence to the solution even with random initialization of the unknowns. This capability stands as a notable advantage, considering the well−known impact of initial guesses on the results of optimization when employing traditional deterministic algorithms.
  • Following the learning process of the optimal control on the training points, an analytical representation via CEs is derived. Consequently, this representation enables the evaluation of the control at points unseen during the training, such as test points, without necessitating interpolation techniques or additional computational efforts.
  • Another notable advantage of the proposed framework lies in its potential for future extensions. Specifically, the network training can be conducted in a data−physics−driven manner. In this study, the PoNNs are utilized solely to learn the solution of the ODE system, employing a physics−driven training approach where the loss function solely considers the residual of the ODEs. Consequently, no labeled data from a dataset are utilized during the training process. However, in future endeavors, data can be integrated into the training process by incorporating an additional term in the loss function, which relates to the mean−square error between the NN predictions and the labeled data. This distinctive feature holds the potential to enhance the robustness of the proposed novel approach in solving challenging OCPs. Moreover, optimal trajectories generated using alternative techniques for solving OCPs can be sampled to generate data, which can then be included as additional terms within the PoNNs loss function. This approach can effectively bolster and streamline the learning process with data. Furthermore, this methodology can be extended to incorporate real−world data, which inherently contains information about perturbations and/or unmodeled terms of the actual dynamics. These elements may not be fully captured in the simulated dynamics modeled via differential equations.

6. Conclusions

In this work, Pontryagin Neural Networks (PoNNs) are utilized to learn the optimal control in fuel−optimal problems with a focus on employing the innovative Extreme Theory of Functional Connections (X−TFC) within the PINN framework. One key advantage of employing X−TFC lies in the a priori satisfaction of boundary constraints through constrained expressions, which is a feature inherited from the original Theory of Functional Connections (TFC). Furthermore, the methodology introduced in this work incorporates the hyperbolic tangent function to approximate the sign function emerging from the optimality conditions of the PMP concerning the thrust magnitude. This strategic utilization enhances the framework’s capability to handle discontinuities in the optimal control, contributing to its efficacy in solving complex optimization problems. A continuation procedure on the smoothing parameter, appearing in the hyperbolic tangent function, is carried out to slowly and accurately approach the discontinuous solution for the control. This smoothing technique allows for accurately learning the states−costates solution of the associated TPBVP. The proposed approach has been applied to a fixed time fuel−optimal trajectory from Earth to Mars with low−thrust propulsion, where the number of switches is not known a priori, and a landing trajectory on Mars. The results show good accuracy and the feasibility of PoNN to catch discontinuities in those problems where the control appears linearly in the Hamiltonian, thus leading to a discontinuous control. Moreover, the proposed approach has been compared with state−of−the−art techniques to solve optimal control problems, such as the shooting method and adaptive Gaussian quadrature collocation technique (as implemented in GPOPS−II), achieving comparable results. With respect to the past works related to the original TFC [46], the fuel−optimal problem is here solved without splitting the time domain in multiple segments according to the switching points. In fact, even though with this last approach, more accurate performances can be obtained in terms of the precision of the dynamics and the optimality of the results, one should known a priori the number of switches, which is usually unknown for most of the problems.
For future research, in order to achieve better and more accurate results, the proposed method can be used in combination with the approach employing the split domain. Indeed, the current methodology can be used to first discover the number of switches and where they are located in the time domain, and then the split domain technique can be carried out to refine the solution and improve its accuracy. Furthermore, more complex OCPs, involving several control switches and multiple revolutions, should be considered. As seen in this paper and other works in the literature, it is worth carrying out further investigations about solving OCPs via NNs (in this case PoNNs), because they seem to be effective and helpful also for the real−time onboard generation of optimal trajectories.

Author Contributions

Conceptualization: A.D. and R.F.; methodology: A.D.; software: A.D.; validation: A.D.; formal analysis: A.D.; investigation: A.D.; resources: A.D. and R.F.; writing—original draft preparation: A.D.; writing—review and editing: A.D. and R.F.; visualization: A.D.; supervision: R.F. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

Data sharing is not applicable to this article.

Acknowledgments

The authors would like to acknowledge Kristopher Drozd for providing useful advice regarding the code implementation of the X-TFC algorithm.

Conflicts of Interest

The authors declare no conflicts of interest.

Appendix A. Switching Functions

The detailed derivation of the switching functions can be found in Ref. [46]. Here, for clarity, we provide the switching functions for different cases. By defining Δ z = z f z 0 and z * = z z 0 , the switching functions for a constrained expression with one constraint on f are provided in Table A1. The switching functions for a constrained expression with one constraint on f are given in Table A2. The switching functions for a constrained expression with two constraints on f are presented in Table A3. The switching functions for a constrained expression with two constraints, one on f and one on f , are given in Table A4. The switching functions for a three−constraints−constrained expression, with two constraints on f and one on f , are provided in Table A5. The switching functions for a four−constraints−constrained expression, with two constraints on f and two constraints on f , are outlined in Table A6.
Table A1. Switching functions for a constrained expression with one constraint, with the constraint of f, defined on the domain of z [ z 0 , z f ] .
Table A1. Switching functions for a constrained expression with one constraint, with the constraint of f, defined on the domain of z [ z 0 , z f ] .
Initial/Final Value
Ω 1 ( z )
( · ) 1
d d z ( · ) 0
Table A2. Switching functions for a constrained expression with one constraint, with the constraint of f , defined on the domain of z [ z 0 , z f ] .
Table A2. Switching functions for a constrained expression with one constraint, with the constraint of f , defined on the domain of z [ z 0 , z f ] .
Initial/Final Value
Ω 1 ( z )
( · ) z
d d z ( · ) 1
Table A3. Switching functions for a constrained expression with two constraints, with both constrains on f, defined on the domain of z [ z 0 , z f ] .
Table A3. Switching functions for a constrained expression with two constraints, with both constrains on f, defined on the domain of z [ z 0 , z f ] .
Initial Value
Ω 1 ( z )
Final Value
Ω 2 ( z )
( · ) z f z Δ z z z 0 Δ z
d d z ( · ) 1 Δ z 1 Δ z
d 2 d z 2 ( · ) 00
Table A4. Switching functions for a constrained expression with two constraints, with one constraint on f and one on f , defined on the domain of z [ z 0 , z f ] .
Table A4. Switching functions for a constrained expression with two constraints, with one constraint on f and one on f , defined on the domain of z [ z 0 , z f ] .
Initial Value
Ω 1 ( z )
Initial Derivative Value
Ω 2 ( z )
( · ) 1 z z 0
d d z ( · ) 01
d 2 d z 2 ( · ) 00
Table A5. Switching functions for a constrained expression with three constraints, with two constraints on f and one on f , defined on the domain of z [ z 0 , z f ] .
Table A5. Switching functions for a constrained expression with three constraints, with two constraints on f and one on f , defined on the domain of z [ z 0 , z f ] .
Initial Value
Ω 1 ( z )
Final Value
Ω 2 ( z )
Initial Derivative
Ω 3 ( z )
( · ) ( z f z ) ( z 2 z 0 + z f ) Δ z 2 ( z z 0 ) 2 Δ z 2 ( z z 0 ) ( z f z ) Δ z
d d z ( · ) 2 ( z z 0 ) Δ z 2 2 ( z z 0 ) Δ z 2 2 z + z 0 + z f Δ z
d 2 d z 2 ( · ) 2 Δ z 2 2 Δ z 2 2 Δ z
Table A6. Switching functions for a constrained expression with four constraints, with two constraints on f and two constraints on f , defined on the domain of z [ z 0 , z f ] .
Table A6. Switching functions for a constrained expression with four constraints, with two constraints on f and two constraints on f , defined on the domain of z [ z 0 , z f ] .
Initial Value
Ω 1 ( z )
Final Value
Ω 2 ( z )
Initial Derivative
Ω 3 ( z )
Final Derivative
Ω 4 ( z )
( · ) 1 + 2 z * 3 Δ z 3 3 z * 2 Δ z 2 2 z * 3 Δ z 3 + 3 z * 2 Δ z 2 z * + z * 3 Δ z 2 2 z * 2 Δ z z * 3 Δ z 2 z * 2 Δ z
d d z ( · ) 6 z * 2 Δ z 3 6 z * Δ z 2 6 z * 2 Δ z 3 + 6 z * Δ z 2 1 + 3 z * 2 Δ z 2 4 z * Δ z 3 z * 2 Δ z 2 2 z * Δ z
d 2 d z 2 ( · ) 12 z * Δ z 3 6 Δ z 2 12 z * Δ z 3 + 6 Δ z 2 6 z * Δ z 2 4 Δ z 6 z * Δ z 2 2 Δ z
References yes

References

  1. Poe, W.A.; Mokhatab, S. Modeling, Control, and Optimization of Natural Gas Processing Plants; Gulf Professional Publishing: Oxford, UK, 2016. [Google Scholar]
  2. Bryson, A.E.; Ho, Y.C. Applied Optimal Control: Optimization, Estimation and Control; Routledge: London, UK, 2018. [Google Scholar]
  3. Keller, H.B. Numerical Solution of Two Point Boundary Value Problems; SIaM: Philadelphia, PA, USA, 1976; Volume 24. [Google Scholar]
  4. Stoer, J.; Bulirsch, R. Introduction to Numerical Analysis; Springer Science & Business Media: Berlin/Heidelberg, Germany, 2013; Volume 12. [Google Scholar]
  5. Oh, S.; Luus, R. Use of orthogonal collocation method in optimal control problems. Int. J. Control 1977, 26, 657–673. [Google Scholar] [CrossRef]
  6. Fahroo, F.; Ross, I. Trajectory optimization by indirect spectral collocation methods. In Proceedings of the Astrodynamics Specialist Conference, Denver, CO, USA, 14–17 August 2000; p. 4028. [Google Scholar]
  7. Vellutini, E.; Avanzini, G. Shape-based design of low-thrust trajectories to cislunar Lagrangian point. J. Guid. Control Dyn. 2014, 37, 1329–1335. [Google Scholar] [CrossRef]
  8. Qu, Q.; Xu, M.; Peng, K. The cislunar low-thrust trajectories via the libration point. Astrophys. Space Sci. 2017, 362, 96. [Google Scholar] [CrossRef]
  9. Singh, S.K.; Anderson, B.D.; Taheri, E.; Junkins, J.L. Low-thrust transfers to southern L 2 near-rectilinear halo orbits facilitated by invariant manifolds. J. Optim. Theory Appl. 2021, 191, 517–544. [Google Scholar] [CrossRef]
  10. Pan, X.; Pan, B. Practical homotopy methods for finding the best minimum-fuel transfer in the circular restricted three-body problem. IEEE Access 2020, 8, 47845–47862. [Google Scholar] [CrossRef]
  11. Singh, S.; Junkins, J.; Anderson, B.; Taheri, E. Eclipse-conscious transfer to lunar gateway using ephemeris-driven terminal coast arcs. J. Guid. Control Dyn. 2021, 44, 1972–1988. [Google Scholar] [CrossRef]
  12. Pan, B.; Pan, X.; Zhang, S. A new probability-one homotopy method for solving minimum-time low-thrust orbital transfer problems. Astrophys. Space Sci. 2018, 363, 198. [Google Scholar] [CrossRef]
  13. Li, T.; Wang, Z.; Zhang, Y. Double-homotopy technique for fuel optimization of power-limited interplanetary trajectories. Astrophys. Space Sci. 2019, 364, 144. [Google Scholar] [CrossRef]
  14. Sullo, N.; Peloni, A.; Ceriotti, M. Low-thrust to solar-sail trajectories: A homotopic approach. J. Guid. Control Dyn. 2017, 40, 2796–2806. [Google Scholar] [CrossRef]
  15. Taheri, E.; Junkins, J.L. How many impulses redux. J. Astronaut. Sci. 2020, 67, 257–334. [Google Scholar] [CrossRef]
  16. Bertrand, R.; Epenoy, R. New smoothing techniques for solving bang–bang optimal control problems—numerical results and statistical interpretation. Optim. Control Appl. Methods 2002, 23, 171–197. [Google Scholar] [CrossRef]
  17. Jiang, F.; Baoyin, H.; Li, J. Practical techniques for low-thrust trajectory optimization with homotopic approach. J. Guid. Control Dyn. 2012, 35, 245–258. [Google Scholar] [CrossRef]
  18. Wang, Y.; Topputo, F. Indirect Optimization for Low-Thrust Transfers with Earth-Shadow Eclipses. In Proceedings of the 31st AAS/AIAA Space Flight Mechanics Meeting, Virtual, 1–3 February 2021. [Google Scholar]
  19. Yang, H.; Baoyin, H. Fuel-optimal control for soft landing on an irregular asteroid. IEEE Trans. Aerosp. Electron. Syst. 2015, 51, 1688–1697. [Google Scholar] [CrossRef]
  20. Izzo, D.; Öztürk, E. Real-Time Optimal Guidance and Control for Interplanetary Transfers Using Deep Networks. arXiv 2020, arXiv:2002.09063. [Google Scholar]
  21. Yang, H.; Li, S. Fuel-optimal asteroid descent trajectory planning using a Lambert solution-based costate initialization. IEEE Trans. Aerosp. Electron. Syst. 2020, 56, 4338–4352. [Google Scholar] [CrossRef]
  22. Zhu, Z.; Gan, Q.; Yang, X.; Gao, Y. Solving fuel-optimal low-thrust orbital transfers with bang-bang control using a novel continuation technique. Acta Astronaut. 2017, 137, 98–113. [Google Scholar] [CrossRef]
  23. Li, T.; Wang, Z.; Zhang, Y. A homotopy approach connecting time-optimal with fuel-optimal trajectories. Astrophys. Space Sci. 2021, 366, 11. [Google Scholar] [CrossRef]
  24. Acikmese, B.; Ploen, S.R. Convex programming approach to powered descent guidance for mars landing. J. Guid. Control Dyn. 2007, 30, 1353–1366. [Google Scholar] [CrossRef]
  25. Pinson, R.M.; Lu, P. Trajectory design employing convex optimization for landing on irregularly shaped asteroids. J. Guid. Control Dyn. 2018, 41, 1243–1256. [Google Scholar] [CrossRef]
  26. Kayama, Y.; Howell, K.; Bando, M.; Hokamoto, S. Low-Thrust Trajectory Design with Convex Optimization for Libration Point Orbits. In Proceedings of the 31st AAS/AIAA Space Flight Mechanics Meeting, Virtual, 1–3 February 2021. [Google Scholar]
  27. Benedikter, B.; Zavoli, A.; Colasurdo, G. A Convex Optimization Approach for Finite-Thrust Time-Constrained Cooperative Rendezvous. Adv. Astronaut. Sci. 2019, 171, 1483–1498. [Google Scholar]
  28. Hofmann, C.; Topputo, F. Toward On-Board Guidance of Low-Thrust Spacecraft in Deep Space Using Sequential Convex Programming. In Proceedings of the 31st AAS/AIAA Space Flight Mechanics Meeting, Virtual, 1–3 February 2021. [Google Scholar]
  29. Yang, H.; Bai, X.; Baoyin, H. Rapid generation of time-optimal trajectories for asteroid landing via convex optimization. J. Guid. Control Dyn. 2017, 40, 628–641. [Google Scholar] [CrossRef]
  30. Liu, X.; Lu, P.; Pan, B. Survey of convex optimization for aerospace applications. Astrodynamics 2017, 1, 23–40. [Google Scholar] [CrossRef]
  31. Taheri, E.; Mall, K. Minimum-fuel low-thrust trajectory optimization using trigonometric-based regularization. In Proceedings of the 2020 AAS/AIAA Astrodynamics Specialist Conference, Virtually, 9–13 August 2020. [Google Scholar]
  32. Taheri, E.; Junkins, J. A generic approach for optimal bang-off-bang spacecraft maneuvers. In Proceedings of the 41st Annual AAS Guidance & Control Conference, Breckenridge, CO, USA, 1–7 February 2018; pp. 18–088. [Google Scholar]
  33. Taheri, E.; Junkins, J.L. Generic smoothing for optimal bang-off-bang spacecraft maneuvers. J. Guid. Control Dyn. 2018, 41, 2470–2475. [Google Scholar] [CrossRef]
  34. Ayyanathan, P.J.; Taheri, E. Comparison of Costate Initialization Techniques for Fuel-Optimal Low-Thrust Trajectory Design. In Proceedings of the 31st AAS/AIAA Space Flight Mechanics Meeting, Virtual, 1–3 February 2021. [Google Scholar]
  35. D’Ambrosio, A.; Schiassi, E.; Curti, F.; Furfaro, R. Pontryagin Neural Networks with Functional Interpolation for Optimal Intercept Problems. Mathematics 2021, 9, 996. [Google Scholar] [CrossRef]
  36. Mortari, D. The Theory of Connections: Connecting Points. Mathematics 2017, 5, 57. [Google Scholar] [CrossRef]
  37. Huang, G.B.; Zhu, Q.Y.; Siew, C.K. Extreme learning machine: Theory and applications. Neurocomputing 2006, 70, 489–501. [Google Scholar] [CrossRef]
  38. Liu, M.; Hou, M.; Wang, J.; Cheng, Y. Solving two-dimensional linear partial differential equations based on Chebyshev neural network with extreme learning machine algorithm. Eng. Comput. 2021, 38, 874–894. [Google Scholar] [CrossRef]
  39. Schiassi, E.; De Florio, M.; D’ambrosio, A.; Mortari, D.; Furfaro, R. Physics-informed neural networks and functional interpolation for data-driven parameters discovery of epidemiological compartmental models. Mathematics 2021, 9, 2069. [Google Scholar] [CrossRef]
  40. Wang, Y.; Topputo, F. A TFC-based homotopy continuation algorithm with application to dynamics and control problems. J. Comput. Appl. Math. 2022, 401, 113777. [Google Scholar] [CrossRef]
  41. Furfaro, R.; Mortari, D. Least-squares solution of a class of optimal space guidance problems via Theory of Connections. Acta Astronaut. 2020, 168, 92–103. [Google Scholar] [CrossRef]
  42. Schiassi, E.; D’Ambrosio, A.; Johnston, H.; Furfaro, R.; Curti, F.; Mortari, D. Complete Energy Optimal Landing on Small and Large Planetary Bodies Via Theory of Functional Connections. In Proceedings of the 2020 AAS/AIAA Astrodynamics Specialist Conference, Virtually, 9–13 August 2020. [Google Scholar]
  43. D’Ambrosio, A.; Schiassi, E.; Curti, F.; Furfaro, R. Physics-Informed Neural Networks for Optimal Proximity Maneuvers with Collision Avoidance around Asteroids. In Proceedings of the 2021 AAS/AIAA Astrodynamics Specialist Conference, Virtual, 9–11 August 2021. [Google Scholar]
  44. Drozd, K.; Furfaro, R.; Schiassi, E.; Johnston, H.; Mortari, D. Energy-optimal trajectory problems in relative motion solved via Theory of Functional Connections. Acta Astronaut. 2021, 182, 361–382. [Google Scholar] [CrossRef]
  45. Schiassi, E.; D’Ambrosio, A.; Johnston, H.; De Florio, M.; Drozd, K.; Furfaro, R.; Curti, F.; Mortari, D. Physics-Informed Extreme Theory of Functional Connections Applied to Optimal Orbit Transfer. In Proceedings of the 2020 AAS/AIAA Astrodynamics Specialist Conference, Virtually, 9–13 August 2020. [Google Scholar]
  46. Johnston, H.; Schiassi, E.; Furfaro, R.; Mortari, D. Fuel-efficient powered descent guidance on large planetary bodies via theory of functional connections. J. Astronaut. Sci. 2020, 67, 1521–1552. [Google Scholar] [CrossRef] [PubMed]
  47. Ross, I.M. A primer on Pontryagin’s Principle in Optimal Control; Collegiate Publications: Boston, MA, USA, 2009. [Google Scholar]
  48. Mortari, D. Least-Squares Solution of Linear Differential Equations. Mathematics 2017, 5, 48. [Google Scholar] [CrossRef]
  49. Mortari, D.; Johnston, H.; Smith, L. High accuracy least-squares solutions of nonlinear differential equations. J. Comput. Appl. Math. 2019, 352, 293–307. [Google Scholar] [CrossRef] [PubMed]
  50. Zeng, X.; Jiang, F.; Li, J.; Baoyin, H. Study on the connection between the rotating mass dipole and natural elongated bodies. Astrophys. Space Sci. 2015, 356, 29–42. [Google Scholar] [CrossRef]
  51. Werner, R.A.; Scheeres, D.J. Exterior gravitation of a polyhedron derived and compared with harmonic and mascon gravitation representations of asteroid 4769 Castalia. Celest. Mech. Dyn. Astron. 1996, 65, 313–344. [Google Scholar] [CrossRef]
  52. Lu, P. Propellant-optimal powered descent guidance. J. Guid. Control Dyn. 2018, 41, 813–826. [Google Scholar] [CrossRef]
  53. Patterson, M.A.; Rao, A.V. GPOPS-II: A MATLAB software for solving multiple-phase optimal control problems using hp-adaptive Gaussian quadrature collocation methods and sparse nonlinear programming. ACM Trans. Math. Softw. (TOMS) 2014, 41, 1–37. [Google Scholar] [CrossRef]
Figure 1. Schematic summarizing how PoNNs work for learning the solution of generic OCPs. The red font in step 7 indicates the optimization procedure to retrieve the optimal weights β j * .
Figure 1. Schematic summarizing how PoNNs work for learning the solution of generic OCPs. The red font in step 7 indicates the optimization procedure to retrieve the optimal weights β j * .
Aerospace 11 00228 g001
Figure 2. Solution for the Earth−Mars interplanetary transfer without solution refinement.
Figure 2. Solution for the Earth−Mars interplanetary transfer without solution refinement.
Aerospace 11 00228 g002
Figure 3. Earth−Mars interplanetary transfer trajectory after solution refinement. The purple arrows indicates the direction of the thrust.
Figure 3. Earth−Mars interplanetary transfer trajectory after solution refinement. The purple arrows indicates the direction of the thrust.
Aerospace 11 00228 g003
Figure 4. Thrust direction for the Earth−Mars interplanetary transfer after solution refinement.
Figure 4. Thrust direction for the Earth−Mars interplanetary transfer after solution refinement.
Aerospace 11 00228 g004
Figure 5. Solution for the Earth−Mars interplanetary transfer after solution refinement.
Figure 5. Solution for the Earth−Mars interplanetary transfer after solution refinement.
Aerospace 11 00228 g005
Figure 6. Solution for the the Mars landing before the solution refinement.
Figure 6. Solution for the the Mars landing before the solution refinement.
Aerospace 11 00228 g006
Figure 7. Mars landing trajectory after solution refinement.
Figure 7. Mars landing trajectory after solution refinement.
Aerospace 11 00228 g007
Figure 8. Thrust direction for the Mars landing after solution refinement.
Figure 8. Thrust direction for the Mars landing after solution refinement.
Aerospace 11 00228 g008
Figure 9. Solution for the Mars landing after solution refinement.
Figure 9. Solution for the Mars landing after solution refinement.
Aerospace 11 00228 g009
Table 1. Parameters employed for the simulations.
Table 1. Parameters employed for the simulations.
ProblemInterplanetary TrajectoryLanding
r 0 [−140,699,693, −51,614,428, 980] km[−200, 100, 1500] m
v 0 [9.774596, −28.07828, 4.337725 × 10 4 ] km/s[85, −50, −65] m/s
m 0 1000 kg1905 kg
r f [−172,682,023, 176,959,469, 7,948,912] km[0, 0, 0] m
v f [−16.427384, −14.860506, 9.21486 × 10 2 ] km/s[0, 0, 0] m/s
t f 348.795 days44.823 s
T m a x 0.5 N13,258.18 N
T m i n 0 N4971.81 N
I s p 2000 s225 s
R ¯ 149.59787 × 10 6 km1516.57 m
t ¯ 58.132 days44.823 s
m ¯ 1000 kg1905 kg
Table 2. X−TFC parameters used within PoNNs.
Table 2. X−TFC parameters used within PoNNs.
ProblemnLActivation Function ( σ )Range for w q Range for b q
Interplanetary14070Chebyshev Polynomials1 (constant)0 (constant)
Landing12030Chebyshev Polynomials1 (constant)0 (constant)
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

D’Ambrosio, A.; Furfaro, R. Learning Fuel-Optimal Trajectories for Space Applications via Pontryagin Neural Networks. Aerospace 2024, 11, 228. https://doi.org/10.3390/aerospace11030228

AMA Style

D’Ambrosio A, Furfaro R. Learning Fuel-Optimal Trajectories for Space Applications via Pontryagin Neural Networks. Aerospace. 2024; 11(3):228. https://doi.org/10.3390/aerospace11030228

Chicago/Turabian Style

D’Ambrosio, Andrea, and Roberto Furfaro. 2024. "Learning Fuel-Optimal Trajectories for Space Applications via Pontryagin Neural Networks" Aerospace 11, no. 3: 228. https://doi.org/10.3390/aerospace11030228

APA Style

D’Ambrosio, A., & Furfaro, R. (2024). Learning Fuel-Optimal Trajectories for Space Applications via Pontryagin Neural Networks. Aerospace, 11(3), 228. https://doi.org/10.3390/aerospace11030228

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop