1. Introduction
A large number of publications (for example, see the review article [
1], books [
2,
3,
4] and extensive references to the literature therein) are devoted to the problems of controlling the orientation maneuver of a spacecraft in various formulations. However, the complexity of this area and the lack of general analytical solutions keep these problems relevant. Under arbitrary boundary conditions, the exact solution is not known even in the case of a spherically symmetric spacecraft; therefore, in general, only approximate solutions of the problem are used. An explicit solution to the problem of optimal control of angular motion of a spacecraft would have not only theoretical but also great applied significance, since it would allow the use of previously obtained expressions for the control and trajectory of a spacecraft in the control system. This applies, for example, to nano-class spacecrafts, which have limitations on computing power.
This article investigates the classical problem of optimal control of angular motion of a spacecraft as a solid body with the energy spent on maneuvering a spacecraft taken as a quadratic functional, and a fixed transition time. The dynamic configuration of a spacecraft and boundary conditions are arbitrary; vector control function is not limited. Using quaternions and the Pontryagin maximum principle, formulas for the boundary value optimization problem are obtained. The numerical solution of this boundary value problem [
5] based on the Levenberg–Marquardt algorithm, which is a combination of the modified Newton method and the gradient descent method, is briefly described. Based on the numerical experiments carried out for various parameters of the problem, it is concluded that the kinematic characteristics of the optimal reorientation of a spacecraft are not significantly dependent on its dynamic parameters. This ensures the closeness of solutions for the classical problem and for the modified problem described below for optimal control of the angular motion of a spacecraft with arbitrary dynamic configuration.
This article provides an explicit solution to the modified problem of energy-optimal control of the angular motion of a spacecraft with arbitrary boundary conditions for the angular velocity and orientation of a spacecraft, brought to the algorithm. Within the bounds of the classical Poinsot concept, which interprets arbitrary angular motion of a solid body in terms of precession cones or other generalized conical motion, a modification of the problem of optimal control of the angular motion of a spacecraft is carried out, and its trajectory is defined in this motion class. At the same time, the generality of the original problem is practically not violated: the known exact solutions of the classical problem of optimal angular motion of a dynamically symmetric spacecraft in cases of flat rotation or regular precession and similar solutions of the modified problem completely coincide; in other cases, in numerical calculations for the classical and modified problems, the relative error between the values of the optimization functional is no more than a few percent, including angular spacecraft maneuvers with large angles. Therefore, the proposed solution of the modified problem can be interpreted as quasioptimal with respect to the classical problem of optimal angular motion of a spacecraft. Explicit expressions are provided for the orientation quaternion and the angular velocity vector of a spacecraft, and the formula of the control moment vector of a spacecraft is obtained based on solving the inverse problem of solid body dynamics.
It should be noted that the very concept of the modified attitude problem of a spacecraft belongs to Yakov G. Sapunkov. Earlier (during the lifetime of Yakov G. Sapunkov), this concept, for example, was successfully applied to the quasioptimal analytical solutions for problems of optimal turns of a spherically symmetric spacecraft under arbitrary boundary conditions [
6,
7]. The method proposed in this article for solving the problem was previously successfully applied to the time-optimal problem of a spacecraft reorientation of an arbitrary dynamic configuration with a modulo-limited control vector [
8] and the problem of rotation of an axisymmetric spacecraft without restrictions with combined functional and non-fixed transition time [
9]. An early version of the quasioptimal solution of the problem of energy-optimal rotation of an arbitrary rigid body with fixed transition time, which does not contain the results of extensive numerical experiments and validation based on these results, was published in [
10]. At the same time, in [
10], rotations of a solid body were considered only by small Eulerian angles
, when
. Difficulties consist of the fact that when the angles of rotation of a spacecraft are 120–180°, the numerical method for solving the classical problem of optimal rotation of the spacecraft is more difficult to converge. This is due to the fact that the Pontryagin maximum principle does not provide boundary conditions for conjugate variables for the boundary value optimization problem, and as initial approximations for these variables, their values are taken from the known exact solution of the optimal rotation problem of a spherically symmetric spacecraft in the class of plane Eulerian rotations (as is customary in these problems). Therefore, difficulties arise in comparing the results of solutions to the classical and modified problems of controlling the angular motion of a spacecraft. When a spacecraft rotates at large angles, the accuracy of the quasi-optimal solution by the value of the optimization functional may decrease too. All these difficulties were not overcome in the early article [
10].
A number of quasioptimal solutions to the problem of spacecraft rotation using the inverse problem of solid-body dynamics are found in the literature, for example, [
11,
12]. In [
11], the solution was obtained using the optimality principle of R. Bellman, and it is based on the solution of the kinematic optimal attitude problem of a spacecraft, where the angular velocity vector of the spacecraft is considered as a control function. The direction of the angular velocity vector of a spacecraft is determined by the initial and final values of the orientation quaternion of a spacecraft. In [
12], the solution of the problem was obtained by representing the orientation quaternion of a spacecraft by polynomials and expressing the angular velocity vector through this quaternion. However, there are no guarantees (mathematical proofs or confirmations based on the postulates of theoretical mechanics) that on the whole variety of angular motions of a spacecraft, under any boundary conditions for an attitude and angular velocity of a spacecraft, these solutions approximate the optimal trajectory of the angular motion of a spacecraft well enough.
It should also be noted that the analytical approximate method for solving the problem proposed in this article is universal for the entire class of problems of optimal attitude control of a spacecraft under arbitrary boundary conditions with various functionals of optimization and possible limitations.
2. Classical Problem Formulation
The angular motion of a spacecraft in a body-fixed basis is provided by systems of differential equations for variables
and
(the attitude quaternion and the angular velocity vector of a spacecraft) [
2]:
where
is the vector of the external moment acting upon a spacecraft,
is the tensor of inertia, where
and
are the main moments of inertia of a solid body; symbols “
”, “[·,·]”mean the quaternion product and vector product, respectively. Phase coordinates
and the control function
meet the criteria of the Pontryagin’s type control problem [
13] (
are continuous functions and
is a piecewise-continuous function); quaternion
has a unit norm, i.e.,
.
Arbitrary boundary conditions are specified for the angular position:
and for the angular velocity of a spacecraft:
It is necessary to find the optimal control
of a spacecraft motion described by (1) and (2) with boundary conditions (3) and (4), which minimizes the functional:
where time
T is fixed.
3. Non-Dimensionalization of Task Variables
We will carry out the non-dimensionalization of task variables according to the formulas:
At the same time, the form of Formulas (1)–(4) will not change, and the functional (5) takes the form that it has at
T = 1.
Next, we will consider the problem (1)–(4) and (6) when T = 1.
4. Boundary Value Optimization Problem
We will apply the Pontryagin maximum principle [
2,
13] to obtain a boundary value optimization problem. Let us construct the Hamilton–Pontryagin function using the conjugate quaternion
and the conjugate vector
:
where “( . , . )” is a scalar product of the vectors. The conjugate system:
where “vect” denotes the vector part of the quaternion and “~” is the quaternion’s conjugation. The equations for variables
and
coincide; therefore, solutions differ by the multiplicative constant
:
Using this and introducing the notation [
2]:
where
, we represent the conjugate system (8) as follows:
The order of the differential system of the boundary value problem, recorded using vector
(10), decreases by four. From the maximum condition of the Hamilton–Pontryagin function (7) follows the continuous structure of the optimal control:
The Hamilton–Pontryagin function (7) with the new variable
(10) can be rewritten as:
5. Suggestive Results of Numerical Experiments
This section of the article describes examples of numerical solutions for the problem of optimal control of angular motion of spacecrafts (solid bodies) of various dynamic configurations and provides conclusions that follow from these examples.
The numerical solution is considered for the boundary value problem obtained on the basis of the maximum principle for the initial problem (1)–(4) and (6):
from which the unknown functions
and constant
are to be determined.
The conditions at the final moment of time (16) must be rewritten in the 7-D spatial form as:
When solving a boundary value problem (14), (15), (17) and (18), an iterative numerical method was used that is based on the Levenberg–Marquardt algorithm, which is a combination of the Runge–Kutta method, Newton method and gradient descent method [
5]. It should be noted that in [
14], an attempt was made to satisfy the equality
, which led to the degeneracy of matrices of partial derivatives of residuals. As initial conditions for conjugate variables
and
, their values were obtained from the exact solution with respect to a spherically symmetric spacecraft in the class of plane Eulerian rotations.
For solid bodies (spacecrafts) with different inertia parameters, let us compare various kinematic characteristics of optimal motion in optimal attitude problems with the same boundary conditions. For example,
Body 1. Spherically symmetric solid body .
Body 2. Arbitrary solid body .
Body 3. Arbitrary solid body .
Body 4. International Space Station (earlier version [
15]) as an arbitrary solid body
(dimensional moments of inertia) or
(dimensionless values).
Body 5. Space Shuttle (the dynamic characteristics of the Space Shuttle are the same as for an almost axisymmetric solid body) , or and .
Body 6. Arbitrary solid body .
Table 1 shows the kinematic characteristics—components of the quaternion of the position of a solid body (spacecraft) and the angular velocity vector—for five of the above bodies at
t = 0.5 (in the middle of the optimal motion time interval) when solving the optimal control problem with boundary conditions (19) and (20) in the classical formulation. The last line of
Table 1 presents, for comparison, the data obtained from solving the modified optimal control problem, which will be discussed in
Section 6,
Section 7 of this article.
For the same bodies under the same boundary conditions,
Table 2 shows the components of the angular acceleration vectors
for the start, middle and end of the optimal control process (
t = 0,
t = 0.5,
t =
T = 1).
We will also present the kinematic characteristics of the optimal motion of various bodies for the case when the initial state of the body is determined by the relation (19) and the final state by the relation:
In
Table 3, the components of the position quaternion and the angular velocity vector are provided at
t = 0.5 for bodies 1, 6, 4, 5.
For the same bodies under the same boundary conditions, components of the angular acceleration vectors at
t = 0,
t = 0.5,
t =
T = 1 are presented in
Table 4.
The same calculations were carried out with other boundary conditions. From
Table 1,
Table 2,
Table 3 and
Table 4 and other calculations, it is evident that the kinematic characteristics of the optimal motion of a body strongly depend on the initial and final state of a body and weakly depend on the mass distribution of a body. It follows that it is possible to calculate the control moments for the motion of an arbitrary body from Euler’s dynamic equations, using the kinematic characteristics of a spherically symmetric body and considering the moments of inertia of an arbitrary body. Such moments can be considered quasioptimal control moments for the rotation of a solid body from the initial state to the final state. Expressions for the angular motion trajectory and angular velocity of a solid body (spacecraft) can be derived analytically in explicit form from the solution of the modified optimal attitude problem, and the control moment can be obtained from the solution of the inverse problem of solid body dynamics. Let us describe this approach.
6. Modified Problem of Optimal Attitude Control
The exact solution for the problem of finding the orientation of a solid body from its known angular velocity, or, in other words, the Darboux problem (1), in a general case is not known. Therefore, we consider the solution of the problem in the class of generalized conical motions and require the angular velocity vector
to be defined by the formula:
where the functions
,
are arbitrary. In this case, Equation (1) has an exact solution [
16] satisfying the initial condition (3):
where “
” is the quaternion exponent [
2].
Expressions (22) and (23) correspond to all known exact solutions of the classical problem of optimal control of angular motion of a spherically symmetric spacecraft when its angular velocity vector maintains a constant direction over the entire time interval of the spacecraft motion or performs a regular precession [
1,
2,
3,
6,
7]. At the same time, using one-to-one substitutions of variables [
16], the Darboux problem can generally be reduced to solving an equation of type (1), where the angular velocity takes the form:
and differs from (23) only by a sign (however, the Darboux problem (1) is still not solvable). That is, the structure of the angular velocity vector (23) correlates well with the Poinsot concept from theoretical mechanics, which states that any arbitrary angular motion of a solid body around a fixed point can be considered as some generalized conical motion [
17].
Formulas (22) and (23) can be generalized by introducing a constant quaternion
,
, into them:
Let us put the second derivatives of functions
f and
g as controls. Considering the notation:
we can construct the controlled system:
where
,
,
,
are the phase coordinates, and
,
are the control functions.
We express the quaternion
K in terms of constants
,
as follows:
Quaternions
and
define the rotation of the vector
(22) around the axes
,
; the rotation around the axis
is already included in the formula (24), given that the additive constant is included in the function. The conjugate quaternion
will be represented as:
Satisfaction of boundary conditions (3) and (4) for
,
(24) and (25), considering (28) and (29), will be represented as:
Then, for the controlled system (27), we can formulate the following optimal control problem. It is required to find optimal control functions
that transfer the controlled system (27) from the initial state:
to the final state:
satisfy the conditions (30)–(32), and provide the minimum to functional:
Relations (30)–(32) can be reformulated as follows:
We will call this optimization problem a modified problem of optimal control of the angular motion of a spacecraft, the exact solution of which can be considered as an approximate or quasioptimal solution of the original problem (1)–(4) and (6). From equation (2), on the basis of the inverse problem of solid body dynamics, the control moment of a spacecraft that satisfies the solution of the modified problem, is derived as follows:
7. Solution of the Modified Problem Using the Maximum Principle
The Hamilton–Pontryagin function for the formulated optimal control problem has the following form:
where
are variables that satisfy the system of equations:
the general solution of which contains arbitrary constants
:
From the maximum condition for the Hamilton–Pontryagin function (40), we determine the optimal control functions:
After substituting (43) into the system of Equations (27), we find a general solution for phase coordinates that contains eight arbitrary constants
:
Due to the fact that the constant
is included additively in the expression for the function
f, it can be seen from (25) that this constant has no effect, and therefore can be ignored. Then, to find the nine unknowns
,
, there are nine Equations (36)–(38) (due to the presence of the condition
in the quaternion Equation (38), only three scalar equations are independent). Substituting formulas (44) into (24) and (25), we derive expressions for the angular velocity vector and the orientation quaternion of a spacecraft. These expressions define the optimal angular maneuver of a spacecraft in the sense of the minimum functional (35), constructed in the class of generalized conical motions. From (24) and (39), the external control moment, applied to the spacecraft, has the following form:
Considering (43) and (44), Formula (45) determines the analytical solution for the control moment corresponding to the solution of the modified problem. The modified problem of the optimal turn of a spacecraft, thereby, is completely solved.
Note that for a spherically symmetric spacecraft, the scalar square of the control moment vector is expressed in terms of variables of the modified problem as follows:
In the case of a plane rotation of a spherically symmetric spacecraft [
2], when vectors
(4) are collinear to
, the solutions of the classical and modified problems are identically equal. This is also true for solving problems of angular motion of a spherically symmetric spacecraft in the class of regular conical motions (regular precession) [
6]. In these cases, the term
in (46) becomes zero, and the functional (35) completely matches the functional (5) (6) of the classical problem. In the problem of rotation of a spherically symmetric spacecraft under arbitrary boundary conditions, assuming that
is small in comparison with
, it is possible to omit the last term in (46). Then, the modified optimal control problem formulated in variables
with functional (35) and expressions (24), (25), (36)–(39), (44) and (45) corresponds to the classical problem of optimal rotation of a spherically symmetric body in the class of generalized conical motions. Based on the reasoning of
Section 5 of this article, the modified problem can be considered as a quasioptimal problem of turning an arbitrary spacecraft under arbitrary boundary conditions. The quasioptimal algorithm for the angular motion of a spacecraft of arbitrary dynamic configuration under arbitrary boundary conditions in non-dimensioned variables has the following form:
Step 1. From boundary conditions (3) and (4) and spacecraft reorientation time (T = 1) with the help of formulas (28) and (29), and from nine equations of the system (36)–(38), nine unknown constants , are obtained, and the functions are defined.
Step 2. Using formula (28), we find the components of the quaternion .
Step 3. According to the Formula (24):
spacecraft’s angular velocity vector is calculated.
Step 4. According to the Formula (25):
spacecraft’s attitude quaternion is constructed.
Step 5. Based on the Formula (45), spacecraft’s control moment is derived.
Step 6. From Formulas (6) and (45), we calculate the value of the dimensionless optimization functional of the optimal rotation problem.
8. Numerical Examples
In this section, comparative results of numerical solutions of classical and modified problems of optimal rotation of a spacecraft (solid body) are considered. For the modified problem, calculations were performed according to the analytical algorithm from paragraph 7 of this article. The values of constants
,
, included in the analytical solution of the modified problem, for angular motion with boundary conditions (19) and (20) are as follows:
The solutions to the classical and modified problem turned out to be close. For example, in
Table 5,
Table 6 and
Table 7, we present the values of the components of vectors
at the start, middle and end points of the time interval of motion of a solid body (spacecraft) in these two solutions for bodies of type 3–5.
Table 8 shows the values of the quality functional of the control process (6) for bodies 1–5, obtained as a result of solving the classical and modified optimal control problems with boundary conditions (19) and (20).
It can be seen from the
Table 8 that with the occurrence of a significant difference between the moments of inertia
, the difference between the control moments obtained from solving the classical and modified problems increases depending on the nature of the change in the moments of inertia. However, at the same time, the difference between the values of the quality functional for the control process (6) that have been calculated when solving classical and modified problems is acceptable. It should be noted that the value of the quality functional of the control process is the critical characteristic of the problem.
Calculations were also carried out to solve the optimal rotation problem for cases when the initial state of a solid body (spacecraft) was determined by the relations (19). The final position of a body was defined by turning the body from the initial position by a certain angle around the Eulerian axis, the unit vector of which was determined by the coordinates:
Table 9 shows the components of quaternions of the final position of a spacecraft for rotations by various values of the Eulerian angle in degrees around the vector with direction (47).
Table 10 shows the values of functionals
of the classical and modified problems that determine the quality of the process of transferring bodies (spacecrafts) 1, 6, 4 from the initial state (19) to the final states according to
Table 9, when the angular velocity is determined by the vector
(20), and also indicates the difference between the values of these functionals
and the percentage discrepancy
.
Table 11 shows similar characteristics when the final angular velocity of bodies is determined by the vector
, i.e., in this case, a spacecraft (solid body) is transferred to a state of rest.
Below, for example, for Body4 (ISS), the graphs show the time variations of the angular velocity components
of the vector part of the orientation quaternion
, and of the components of the control moment
, in the classical optimal rotation problem (
Figure 1) and in the modified control problem (
Figure 2) for the arbitrary given boundary conditions (19) and (20). The curves
in the classical and modified problem for the ISS are similar and differ only for the components
in both solutions.
From a large number of numerical calculations performed to solve the problem of a spacecraft optimal rotation with various boundary conditions and various main inertia moments , the following conclusions can be made:
(1) Kinematic characteristics of the rotation of a spacecraft (attitude quaternion and angular velocity vector () in the classical problem depend weakly on the mass distribution of a spacecraft and are mainly determined by the boundary conditions of the problem. For the modified problem, kinematic characteristics of the reorientation of a spacecraft depend only on the boundary conditions of the problem;
(2) The control moment significantly depends on a spacecraft’s main inertia moments and boundary conditions in both classical and modified formulations of the problem.
The weak dependence of kinematic characteristics of the optimal motion of a spacecraft on its dynamic configuration ensures the closeness of solutions for the modified and classical problems of the optimal rotation of a spacecraft with an arbitrary dynamic configuration. Therefore, the modified problem solution can be considered a quasioptimal solution of the classical spacecraft attitude problem.
Note that the spacecraft’s attitude quaternion
can have two values [
2]:
and
correspond to the same angular position of a spacecraft in space.
9. Conclusions
The analytical quasioptimal algorithm for controlling the angular motion of a spacecraft as a solid body of arbitrary dynamic configuration with arbitrary boundary conditions can be applied in spacecraft control systems. The proposed algorithm has a theoretical basis and solves the problem of optimal reorientation of a spacecraft with good accuracy. At the same time, it does not require a numerical solution of the boundary value problem of the maximum principle or any other complex numerical solution. The obtained results can be generalized to the cases of spacecraft control in the presence of flexible elements of spacecraft’s structure and various perturbations in the formulation of the problem. These results can also be applied to nano-class spacecrafts that have limitations on computing power.