#### Abstract

This paper investigates the control problem of magnetic levitation system, in which velocity feedback signal is influenced by stochastic disturbance. Firstly, single-degree-freedom magnetic levitation is regarded as an energy-transform action device. From the view of energy-balance relation, the magnetic levitation system is transformed into port-controlled Hamiltonian system model. Next, based on the Hamiltonian structure, the control law of magnetic levitation system is designed by applying Lyapunov theory. Finally, the simulation verifies the correctness of the proposed results.

#### 1. Introduction

Magnetic levitation system is a class of typical nonlinear system, which is difficult to establish accurate mathematical model for the natural parameter of electromagnetic part dependent times [1, 2]. Normally, a standard magnetic levitation system consists of four parts: the sensors, the controller, the power amplifier, and the electromagnetic drives. This kind of system is a control system and its control objective is to ensure that the soliquoid is in the normal position through a series of feedback and control activities. The general process is as follows: firstly, after comparing the given signal with the feedback signal, they will be passed along regulating circuit to power amplifier circuit; then the control currents flow through the power amplifier; finally, the electromagnet converts it to electromagnetic force to control the suspension position. Shu et al. in [3] introduced the working principle of the magnetic levitation system. Combined with the classical theory of dynamics and electromagnet, the nonlinear equations of motion of the system are derived by the general form of Lagrange equation, and after the linearization processing around the operating point, the state space description of the system is obtained.

In addition, the systems are always affected by stochastic disturbance in many practical control problems, which always lead to system instability [4]. Therefore, more and more scholars and experts pay attention to the research of stability and control of stochastic nonlinear systems and a lot of research achievements have been made that greatly promoted the development of the system research [5–9]. In [9], the nonlinear stochastic control of It-type differential systems with all the state, control input, and external disturbance is studied and a sufficient condition is given for the finite/infinite horizon control of such a system by means of Hamilton-Jacobi inequality. More recently, some progress has been made toward solving the stability analysis and controller design for stochastic Hamiltonian systems [10–12]. Sun and Peng in [12] studied the robust adaptive control problem for a class of time-delay stochastic Hamiltonian systems. An uncertainty-independent adaptive control law is designed to guarantee that the closed-loop Hamiltonian system is robustly asymptotically stable in the mean square.

Due to the highly nonlinear characteristics of the system, the controller design problem will be solved based on Hamiltonian energy theory. In fact, the energy-based Hamiltonian system method has been widely used in practical systems control [11, 13–19]. Based on the Hamiltonian system theory, the port-controlled Hamiltonian dissipative model of magnetic levitation system was established in [19], by using the Hamiltonian function as the storage function and the controller was designed, which is simple and easy to implement. A key feature of the systems, which is useful for stability analysis and stabilization, is that Hamiltonian function in a port-Hamiltonian systems can be used as a Lyapunov function which brings great convenience.

As is known, the controllers and regulators of the systems are always unavoidably affected by stochastic disturbances, and the study of the controlled systems with stochastic disturbance is of practical significance. Different from what have been studied, this present paper deals with the controller design problem of the magnetic levitation system with stochastic disturbances. Current efforts have been made to dispose the control problem of the stochastic magnetic levitation system on the basis of Hamiltonian energy theory. We regard the magnetic suspension as the energy conversion device and then derive a mathematical model of the single degree of freedom stochastic magnetic levitation system from the point of energy balance, which is transformed into a port-controlled Hamiltonian system. Consequently, the controller of the stochastic magnetic levitation system is designed. Finally, a simulation example is given to verify the validity of the results.

The rest of this paper is organised as follows. Section 2 provides the problem formulation, the Hamiltonian modeling process of the stochastic magnetic levitation systems, and some preliminaries. Section 3 gives the main results. A simulation example is worked out in Section 4 to illustrate the results. Section 5 draws the concluding remarks.

*Notations. * stands for either the Euclidean vector norm or the induced matrix 2-norm. A function means that is a twice differentiable continuous function. The notation (resp., ), where and are symmetric matrices, means that the matrix is positive semidefinite (resp., positive definite). () denotes the maximum (minimum) of eigenvalue of a real symmetric matrix . Throughout the paper, the superscript “T” stands for matrix transposition. In addition, for the sake of simplicity, we denote by .

#### 2. Problem Description and Transformation

The physical model of the magnetic levitation train system, which includes the concentrated mass of train carriages (together with the supporting magnet) suspended on the rigid lead rail is shown in Figure 1, where is the quality of train carriage (including the supporting magnet); is gravitational constant; is the gap between the supporting magnet and the guide rail; is the gap between the guide rail and the reference plane; is the distance between the supporting magnet and the reference plane; ; is the self-inductance of magnetic coil, which depends on the gap ; is the current flowing through magnet spool; is the coil resistance; is the voltage at both ends of the magnet spool.

By invoking Kirchoff’s voltage law and Newtons second law, the dynamic equations of the magnetic levitation system can be obtained by taking the vertical upward direction as the positive direction: where is the magnetic flux and is the force created by the electromagnet, which is given by

Here we regard the flux as the independent variable; then (1) can be further transformed into the following forms: where , is the permeability of vacuum, is coil turns, and is the effective pole area of the electromagnetic coil.

To obtain a port-controlled Hamiltonian model, we take a suitable approximation for the inductance is . As is known, the speed of the rigid body will be affected by stochastic disturbances during the operation of the magnetic levitation system. Let ; due to the influence of stochastic disturbance, the magnetic levitation system (3) can be modeled as the following algebraic differential equations: where is an independent standard Wiener process and satisfies and and is the expectation operator.

The objective of this paper is to find a feedback control law as to ensure that the stochastic magnetic levitation system (4) with the controller (5) is asymptotically stable in the mean square.

Obviously, system (4) is a nonlinear system. In order to study the control problems of the stochastic magnetic levitation system in view of the energy balance, we need to convert it into a stochastic Hamiltonian system first. Taking the total of electromagnetic energy and mechanical energy as the Hamiltonian function, that is, then the magnetic levitation port-controlled Hamiltonian system is obtained:

where

According to the equilibrium condition of the system, the speed of the rigid body reduced to zero when the system is stable. Meanwhile, the electromagnetic force of the rigid body is equal to the gravity that acting upon on it. Then, we can get , . Therefore the equilibrium point of the system is .

It is evident that is a skew symmetric matrix, that is, , and is a positive semidefinite matrix. Consequently, if and , system (7) is a dissipative Hamiltonian system since

In order to design the controller of system (7), we introduce the following definition.

*Definition 1. *If there exists a controller such that the stochastic Hamiltonian system (7) is said to be asymptotically stable in the mean square, where is the solution of system (7) at time under the initial condition .

Next we introduce some auxiliary lemmas which will be used in this paper.

Lemma 2 (see [6]). *For system assume that and are locally Lipschitz in . For a constant and any satisfies , there exists function such that then from system (11) there exists a unique solution on for any initial date , where *

Lemma 3 (see [4]). *Let ; are the bounded stopping time and satisfy . If and are both bounded on , then *

Lemma 4. *For any given matrices and , if , it follows that *

#### 3. Controller Design of Stochastic Magnetic Levitation System

In this section, we will put forward the controller design scheme for stochastic magnetic levitation system (4). To this end, the stabilization problem of stochastic Hamiltonian system (7) is to be discussed first.

Consider system (7). Choose Lyapunov function as Suppose that the Hamiltonian function and satisfies where and are positive scalars.

According to It differential equations, it can be obtained that where

If we set suitable scalars and , then we have So the stabilization may be achieved by designing a suitable controller for system (7). The following theorem provides a feasible scheme.

Theorem 5 (consider system (7)). *Suppose the Hamiltonian function satisfies (17) and (18). Then, the closed-loop stochastic Hamiltonian system of (7) is asymptotic stable in the mean square under the feedback control law where and are scalars which satisfies and .*

*Proof. *Substituting (22) into (7) yields Combining (18), (20), (21), and (23), we obtain then According to Lemma 3, the following formula was established: for all , Therefore, the following formula was established: Set and multiplying to the two sides of the inequality (27), we have that is, Integrating inequality (29) from to , we get that is, Since , which implies that system (7) is asymptotic stable in the mean square under the feedback control law (22). This completes the proof.

*Remark 6. *Since , are continuous functions and according to Lemma 2, we can conclude that the solution of the closed-loop system (23) is unique for any initial condition in the neighborhood of the equilibrium point .

Next, we consider the stochastic magnetic levitation system (4). Obviously, there exist positive scalars and which make system (4) meet the inequalities (17) and (18) in Theorem 5; thus we can get the following conclusions.

Theorem 7. *The stochastic magnetic levitation system (4) is asymptotic stable in the mean square under the feedback control law where and is a scalar and satisfies .*

*Proof. *Because of the stochastic magnetic levitation system (4) is equivalent to system (7), substitute into system (7) and the formula (6) into (22); we can get controller (33). The rest of the proof is omitted here.

#### 4. Illustrative Examples

In this section, a simulation example is given to verify the correctness of the results obtained in this paper. The relevant parameters are given as follows: Ω, g, m, , N/g, and cm. By calculating, we take and .

According to Theorem 7, we can see that system (4) is asymptotically stable in the mean square under the feedback control law

The velocity curve of the rigid body is shown in Figure 2. It shows that the designed controller can make the system reach to the equilibrium point quickly. Figure 3 is the displacement curve of the rigid body; the displacement can also quickly reach to the equilibrium point.

#### 5. Conclusion

This paper has investigated the control problem of stochastic magnetic levitation system. By regarding the magnetic levitation as the energy conversion device, we derived the mathematical model of single degree of freedom magnetic levitation system with stochastic disturbance from the point of view of the energy balance, and then the model can be transformed into a port-controlled Hamiltonian system. Then the controller of the stochastic magnetic levitation system has been designed based on the obtained Hamiltonian system model. Finally, the correctness of the conclusion has been verified by simulations. The main innovation of this paper is that we have fully taken into account the effect of random disturbances on the magnetic levitation system and solve the control problem under Hamiltonian systems framework by making full use of the dissipative structural properties of the Hamiltonian systems.

#### Conflicts of Interest

The authors declare that they have no conflicts of interest.