#### Abstract

Due to the need for numerical calculation and mathematical modelling, this paper focuses on the stability of optimal trajectories for optimal control problems. The basic ideas and techniques are based on the compactness of the optimal trajectory set and set-valued mapping theorem. Through lack of optimal control stability, the result of generic stability for optimal trajectories is obtained under the perturbations of the right-hand side functions of the state equations; in the sense of Baire category, the right-hand side functions of the state equations of optimal control can be approximated by other functions.

#### 1. Introduction

Due to the need for numerical calculation and mathematical modelling, we will consider the influence of optimal trajectory with the changing right-hand side functions of the state equations on the approximate functions. There are many experts who have done much work on the stability of the optimal control problem [1–4], and especially in the case of the disturbance of the right-hand side function, the stability of the optimal control is discussed [5–7]. However, in the actual problem, the real decisive factor for the optimal control problem is the stability of the optimal trajectory, and sometimes, the optimal control does not necessarily converge; that is, when the trajectory converges, the corresponding control does not necessarily converge. Therefore, this paper discusses the stability in these cases, focusing on two problems: First, the compactness of the feasible trajectories corresponding to the perturbations of right-hand side functions of the state equations is discussed, and then, the compactness of the optimal trajectories is discussed. Second, the stability of the optimal trajectories set corresponding to the perturbations of the right-hand side functions is discussed.

Consider Bolza problem, Problem P, as follows:

Find an optimal pair such that the cost functionalreaches its minimum at , where the admissible pair are solutions of the following nonlinear controlled system:

Here, and is the set of all admissible pair, and the set of admissible controls is defined bywhere is a metric space.

In order to discuss the optimal control problem (P), let us start with some basic assumptions: (H1) The terminal time is fixed, and the metric space is compact. (H2) The function is measurable w.r.t. , continuous concerning . There exist such that (H3) The function satisfies the following Filippov–Roxin condition: The set is convex and closed for almost all and all (H4) The function is Borel measurable concerning and continuous concerning , and is continuous.

Under the assumptions and from [8], equation (2) has a unique solution. Also, the solution of equation (2) depends continuously on the right-hand side function and is differentiable concerning initial data.

This paper is organized as follows. In part one, we construct the complete metric space of *f* satisfied the conditions of (H2-H3) and discuss the compactness of the feasible trajectories set. In part two, we consider the stability of optimal trajectory in sense of Baire category. In the last section, we give an example and conclusion.

#### 2. Compactness of Optimal Trajectory

For the aim to consider the stability of optimal trajectory, first, we need some notions.

Let

For each , definethen we know that space is a complete metric space easily.

SetThen, the correspondence is a set-valued mapping; for convenience to discuss with the next, we expand the scope of into , where is the set of all feasible trajectories of optimal control problems (P) for each , and we denote the set-valued mapping by .

Now, we consider the properties of feasible trajectories set ; we have the following theorem.

Theorem 1. *Suppose assumptions (H1) and (H2) hold, then the feasible trajectories set is relatively compact in .*

*Proof. *By the assumptions of (H1) and (H2), equation (2) has a unique solution for each , and the solution is denoted by . Thanks to the assumption (H2), it follows thatNamely,This means that the feasible trajectories set is uniformly bounded.

Furthermore, we obtainHence,That is, the feasible trajectories set is equicontinuous.

From (7)–(11), by the Arzela–Ascoli theorem, we prove this theorem.

Theorem 2. *If assumptions (H1), (H2), (H3), and (H4) are satisfied, the feasible trajectories set is compact in .*

*Proof. *Let and be the solution of the following equations:under the assumptions (H1)–(H4) and . Let and assume thatNext, we need to show that .

Assume thatwhere , and we have . By the Mazur theorem, there exist convex combinations with , such thatBy (H2) and (13), we haveConsiderBy the Filippov’s Lemma, there exists such that (17) is satisfied, namely,holds.

#### 3. Stability of Optimal Trajectory

In this section, we discuss the stability of optimal trajectory based Baire category.

Theorem 3. *Let (H1)–(H4) hold and for each .*

*Proof. *For any fixed , let , and we have ; by the compactness of , there exists , such that .

By assumption of (H4), we haveNamely, , so is continuous concerning ; since is a compact set, the minimum value of exists. Then, for each .

Theorem 4. *Let (H1)–(H4) hold, and is closed for each .*

*Proof. *By the compactness of , next we show that is closed. Take with and with ; first, we need to show .

Due to , for all , we haveand by (H4), we see thatFor any fixed in controlled system, we obtainFrom the abovementioned equations, for all , the inequalityholds. Namely, and is closed.

Since is closed and is a compact set, we have the following theorem.

Theorem 5. *Let (H1)–(H4) hold, and is compact for each .*

Theorem 6. *Let (H1)–(H4) hold, and then, is upper semicontinuous at each .*

*Proof. *Suppose is not upper semicontinuous; then, there exists open sets , , and , such that some , but ; in fact, by compactness, there exists a subsequence of such that . Since is an open set and , then ; we have that , but , and this contradicts . We proved this theorem.

Hence, the set-valued mapping is compact upper semicontinuous, from the Lemma 4.2 of [6], Definition 3.1 of [5], and Theorem 4.7 of [7], and therefore, we can obtain the theorem of stability.

Theorem 7. *There exists a dense residual subset of , such that for any , is stable in the sense of Hausdorff metric.*

*Remark 1. *By Theorem 7, if , the optimal control problem can be approximated in sense of Baire category.

*Remark 2. *We consider that the cost functional contains implicitly. Namely, the cost functional is , and we need to letThen, we can transform cost functional into , and the discussion of stability is similar to the problem (P).

#### 4. Example

Consider the optimal problemsubject to the systemwhere andwhereand .

One can easily show that satisfies hypothesis .(1) Let . Then, for any , We have . That is, where the optimal trajectory(2)Let , for every ; we have , whereand .

Then,where the optimal trajectory

Obviously, as and .

#### 5. Conclusions

In this paper, under the condition of the lack of good properties of optimal control, we discuss the compactness of the feasible trajectories set when the right-hand side function of the controlled system is disturbed and give a suitable metric for the space of the right-hand side function. Combined with the given assumptions, the space is a complete metric space. Then, according to the compact upper semicontinuous set-valued mapping, the continuous dependence of the optimal trajectory on the right-hand function and the stability of the cost functional on the right-hand function are obtained in the sense of Baire category.

#### Data Availability

No data were used to support this study.

#### Conflicts of Interest

The authors declare no conflicts of interest.

#### Authors’ Contributions

Conceptualization, methodology, formal analysis, supervision, and original draft preparation were performed by Hongyong Deng. Validation, reviewing, and editing were carried out by Hongyong Deng, Wei Zhang, and Changchun Shen.

#### Acknowledgments

The authors thank Professor Wei Wei for a benefit discussion on this problem. This work was supported by the Science and Technology Program of Guizhou Province under grant no. [2016]1074; Fund Project of Guizhou University under grant no. YJRCXM[2018]019; and Science and Technology Foundation of Guizhou Province under grant nos. LKM[2013]21 and J[2015]2074.