Control method, control device, and program

The control method converts observation data into feature space using neural networks, enabling efficient control of nonlinear dynamic systems by approximating costs, thus overcoming the limitations of linear quadratic control.

JP7575008B2Active Publication Date: 2024-10-29NIPPON TELEGRAPH & TELEPHONE CORP +1
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2021104658
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2021-06-24
Publication Date
2024-10-29
Estimated Expiration
2041-06-24

AI Technical Summary

Technical Problem

The linear quadratic control method is inadequate for controlling nonlinear dynamic systems.

Method used

A control method that utilizes pre-learning to convert observation data into feature data using a Koopman operator theory-based neural network, learns a control law in the feature space, and applies a linear quadratic control method to achieve optimal control.

Benefits of technology

Enables effective control of nonlinear dynamic systems at a lower cost by approximating the cost function in the feature space, outperforming existing methods in accuracy and efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007575008000016
    Figure 0007575008000016
  • Figure 0007575008000017
    Figure 0007575008000017
  • Figure 0007575008000018
    Figure 0007575008000018
Patent Text Reader

Abstract

To appropriately control a dynamic system.SOLUTION: In a control method which controls a dynamic system, a computer executes: a pre-learning procedure which learns a first function for converting observation data to feature data on a feature space, and dynamics of the dynamic system on the feature space, by using pre-learning data consisting of the observation data of the dynamic system and control data of the dynamic system when the observation data are obtained; a control learning procedure which learns a control law of the dynamic system, by using the first function and the dynamics; and a control procedure which controls the dynamic system, by using the control law.SELECTED DRAWING: Figure 2
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a control method, a control device, and a program. [Background technology]

[0002] Control of dynamical systems is important in various fields such as sociology, epidemiology, neuroscience, physics, engineering, finance, etc. One method for controlling dynamical systems is the linear quadratic control method (see, for example, Non-Patent Document 1). [Prior art documents] [Non-patent literature]

[0003] [Non-Patent Document 1] Bemporad, A., Morari, M., Dua, V., & Pistikopoulos, EN (2002). The explicit linear quadratic regulator for constrained systems. Automatica, 38(1), 3-20. Summary of the Invention [Problem to be solved by the invention]

[0004] However, the linear-quadratic control method assumes that the dynamic system is linear, and cannot adequately control nonlinear dynamic systems.

[0005] An embodiment of the present invention has been made in view of the above points, and has an object to appropriately control a dynamic system. [Means for solving the problem]

[0006] In order to achieve the above-mentioned object, a control method according to one embodiment is a control method for controlling a dynamic system, in which a computer executes the following steps: a pre-learning procedure for learning a first function for converting observation data into feature data in a feature space and dynamics of the dynamic system in the feature space, using pre-learning data consisting of observation data of the dynamic system and control data of the dynamic system at the time the observation data was obtained; a control learning procedure for learning a control law of the dynamic system using the first function and the dynamics; and a control procedure for controlling the dynamic system using the control law. Effect of the Invention

[0007] Dynamic systems can be appropriately controlled. [Brief description of the drawings]

[0008] [Figure 1] FIG. 2 is a diagram illustrating an example of a hardware configuration of a control device according to the present embodiment. [Diagram 2] FIG. 2 is a diagram illustrating an example of a functional configuration of a control device according to the present embodiment. [Diagram 3] FIG. 11 is a diagram for explaining an example of a learning process according to the embodiment; DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0009] An embodiment of the present invention will be described below. In this embodiment, a control device 10 capable of appropriate control even if the dynamic system is nonlinear (naturally, even if it is linear) will be described. Here, appropriate control of a dynamic system means realizing control at low cost so that the observed state of the dynamic system becomes a desired state.

[0010] That is, y t ∈R D Let u be the observation vector at time t. t ∈R J Let be the control vector at time t. Let us consider the control vector u tWhen you input t+1 In this case, the control vector sequence {u t The goal is to find |t=1, ,T}.

[0011]

number

[0012] <Hardware configuration> The hardware configuration of the control device 10 according to this embodiment is shown in Fig. 1. As shown in Fig. 1, the control device 10 according to this embodiment is realized by the hardware configuration of a general computer or computer system, and has an input device 101, a display device 102, an external I / F 103, a communication I / F 104, a processor 105, and a memory device 106. Each of these pieces of hardware are connected to each other via a bus 107 so as to be able to communicate with each other.

[0013] The input device 101 is, for example, a keyboard, a mouse, a touch panel, various physical buttons, etc. The display device 102 is, for example, a display, etc. Note that the control device 10 does not necessarily have to have at least one of the input device 101 and the display device 102, for example.

[0014] The external I / F 103 is an interface with an external device such as a recording medium 103a. The control device 10 can read and write data from and to the recording medium 103a via the external I / F 103. Examples of the recording medium 103a include a CD (Compact Disc), a DVD (Digital Versatile Disk), an SD memory card (Secure Digital memory card), and a USB (Universal Serial Bus) memory card.

[0015] The communication I / F 104 is an interface for connecting the control device 10 to a communication network. The processor 105 is, for example, various arithmetic devices such as a CPU (Central Processing Unit) and a GPU (Graphics Processing Unit). The memory device 106 is, for example, various storage devices such as a HDD (Hard Disk Drive), an SSD (Solid State Drive), a flash memory, a RAM (Random Access Memory), and a ROM (Read Only Memory).

[0016] The control device 10 according to this embodiment has the hardware configuration shown in Fig. 1 and can realize various processes described below. Note that the hardware configuration shown in Fig. 1 is an example, and the control device 10 may have, for example, multiple processors 105 or multiple memory devices 106. Furthermore, the control device 10 may have various hardware other than the hardware shown in the figure.

[0017] <Functional configuration> The functional configuration of the control device 10 according to this embodiment is shown in Fig. 2. As shown in Fig. 2, the control device 10 according to this embodiment includes a pre-learning unit 201, a control learning unit 202, a control unit 203, and a storage unit 204. The pre-learning unit 201, the control learning unit 202, and the control unit 203 are realized, for example, by processing executed by the processor 105 of one or more programs installed in the control device 10. The storage unit 204 is realized, for example, by the memory device 106.

[0018] For example, the control device 10 may be composed of multiple computers (including the case where each computer is connected to be able to communicate with each other via a communication network), and the pre-learning unit 201, the control learning unit 202, the control unit 203, and the memory unit 204 may be distributed across the multiple computers.

[0019] <Pre-learning section 201> The pre-learning unit 201 learns a function that converts an observation vector into a feature vector in a feature space and the dynamics (dynamic behavior) of a dynamic system in the feature space based on the Koopman operator theory. Note that the feature space is the space to which the feature vector belongs. On the other hand, the space to which the observation vector belongs is also called the observation space.

[0020] As pre-training data, N sequences of length T are used.

[0021]

number

[0022] Consider a dynamical system in the feature space. For example, assume the following equation (2):

[0023] g t+1 =Ag t +Bu t (2) Here, g t ∈R K is the feature vector at time t, A∈R K×K is a finite dimensional approximation of the Koopman operator, B∈R K×J represents the influence of the control vector on the feature vector at the next time point, where K is the number of dimensions of the feature vector.

[0024] The function that converts the observation vector into a feature vector is modeled using a neural network, that is, using the following formula (3).

[0025] g t =φ(y t ) (3) where φ is the neural network.

[0026] In addition, the function that converts the feature vector into an observation vector is modeled using a neural network, that is, using the following formula (4).

[0027]

number

[0028] The parameters of the neural network φ and ψ, and A and B, are trained so that when an observation vector is converted into a feature vector and the feature vector is converted back into an observation vector, it resembles the original observation vector. In addition, they are trained to improve the accuracy of future predictions through a dynamic system in the feature space. This can be done, for example, by minimizing the objective function H shown in the following equation (5).

[0029]

number

[0030] <<Control learning unit 202>> The control learning unit 202 learns the control law of the dynamic system.

[0031] The cost in the original observation space (cost E shown in formula (1)) is approximated by the cost in the feature space. For example, it can be approximated by the following formula (6).

[0032]

number

[0033] The cost shown in equation (6) can be rewritten in a quadratic form as shown in equation (7) below.

[0034]

number

[0035]

number

[0036]

number

[0037] g t+1 '=A'g t '+B'u t (10) Where:

[0038]

number

[0039]

number

[0040] In the feature space, the dynamics is linear and the cost is a quadratic function, so that the linear-quadratic control method (for example, see Non-Patent Document 1) can be applied in the feature space. In the linear-quadratic control method, the optimal control vector is expressed by the following equation (13).

[0041] u t =-Fg t ' (13) where F ∈ R J×(K+1) is the optimal gain matrix calculated by the following equation (14).

[0042]

number

[0043]

number

[0044] The optimal control vector is expressed as the following equation (16) as a function of the observation vector.

[0045]

number

[0046] When a dynamic system is controlled using this equation (16), the parameters of the neural network φ and A and B are estimated by reinforcement learning so that the original cost (i.e., the cost E shown in equation (1)) is minimized. This can be estimated, for example, by using the policy gradient method with the original cost as the reward (negative reward) and equation (16) as the policy. However, it is also possible to use reinforcement learning methods other than the policy gradient method. The learning process when the policy gradient method is used will be described later.

[0047] <Control unit 203> The control unit 203 calculates a control vector according to the observation vector obtained from the dynamic system by using the equation (16) (i.e., the optimal control law) in which the learned parameters are set, and then the control unit 203 controls the dynamic system by using the control vector.

[0048] ≪Storage section 204≫ The storage unit 204 stores various data (for example, pre-learning data, parameters of the neural networks φ and ψ, parameters A and B representing the dynamics of the dynamic system in the feature space, control cost R, etc.).

[0049] <Learning process> As an example, the learning process will be described below in which the control learning unit 202 estimates the parameters of the neural network φ and A and B using the policy gradient method. The flow of this learning process is shown in FIG. 3. As shown in FIG. 3, the input of the learning process is data representing a dynamic system, a desired observation vector y *, control cost R, control variance σ 2 , discount rate γ, and the output is the learned parameter Ψ. Although not shown in the figure, in addition to these, a neural network ψ, pre-learned data, etc. are also input to the learning process.

[0050] First, the pre-learning unit 201 uses the pre-learning data to learn the parameters Ψ so as to minimize the objective function H shown in equation (5) (first line). At this time, the parameters of the neural network ψ are also learned.

[0051] Next, the control learning unit 202 repeats lines 3 to 15 until a predetermined termination condition is satisfied (line 2). Here, examples of the termination condition include the following: the number of repetitions is equal to or greater than a certain number, the cost shown in formula (1) is equal to or less than a certain value, the amount of change in the cost shown in formula (1) before and after the repetition is equal to or less than a certain value, the amount of change in the parameter to be learned before and after the repetition is equal to or less than a certain value, etc.

[0052] In the third line, the control learning unit 202 initializes the solution of the Riccati equation to P=Q. In the fourth line, the control learning unit 202 repeats the fifth line until a predetermined termination condition is satisfied. Here, examples of the termination condition include the number of iterations reaching a certain number or more, or the solution of the Riccati equation converging, etc. Note that the Riccati equation may be solved by other methods as long as the procedure is differentiable.

[0053] In line 7, the control learning unit 202 calculates the optimal gain matrix F using equation (14). In line 8, the control learning unit 202 randomly samples the initial observation vector y1. In line 9, the control learning unit 202 repeats lines 10 to 13 for each time t=1, . . . , T. In line 10, the control learning unit 202 calculates the average π(y t In the 11th line, the control learning unit 202 calculates the average π(y t ;Ψ), variance σ 2 (Control variance σ 2 ) from the normal distribution of the control vector ut In the 12th line, the control learning unit 202 samples the negative reward E(y t ,u t Here, the negative reward at each time can be calculated using the following equation (17).

[0054]

number

[0055] Then, on line 15, the control learning unit 202 updates the parameter Ψ so that the cumulative discounted reward is maximized.

[0056] <Control processing> The control unit 203 calculates the observation vector y obtained from the dynamic system using the equation (16) in which the parameter Ψ learned in the learning process is set. t Depending on the control vector u t Then, the control unit 203 calculates the control vector u t The dynamic system is controlled by the control unit 203. The control target of the control unit 203 can be any target expressed by a dynamic system (particularly, a nonlinear dynamic system). Specifically, the control target can be an instrument, device, equipment, machine, process, or a model of these on a simulator, which are expressed by a dynamic system.

[0057] <Evaluation> The evaluation of the control device 10 according to this embodiment will be described below. Two dynamic systems, FitzHugh-Nagmo and Lorenz, were targeted, and three existing methods were compared: dynamic mode decomposition (DMD), neural dynamic mode decomposition (NDMD), and reinforcement learning (RL) without assuming feature space. In addition, cost (cost calculated by formula (17)) was adopted as the evaluation index. The average and standard error of the cost are shown in Table 1 below.

[0058] [Table 1] As shown in Table 1, it can be seen that the control device 10 according to this embodiment can achieve optimal control at a lower cost than the existing methods.

[0059] <Modification> In this embodiment, the desired observation vector is given, but the desired pole may be given instead of the desired observation vector. In this case, if the pole placement method is used instead of the linear quadratic control method in the feature space, the present embodiment can be similarly applied.

[0060] This embodiment can also be applied to other control methods for linear systems. That is, this embodiment can be similarly applied by assuming linear dynamics in a feature space based on the Koopman operator theory, and learning a function that converts an observation vector into a feature vector and linear dynamics in the feature space so as to minimize the cost by reinforcement learning.

[0061] The present invention is not limited to the above-described embodiments specifically disclosed, and various modifications, changes, combinations with known technologies, etc. are possible without departing from the scope of the claims. [Explanation of symbols]

[0062] 10 Control device 101 Input Device 102 Display device 103 External I / F 103a Recording media 104 Communication I / F 105 processors 106 Memory Device 107 Bus 201 Pre-Learning Section 202 Control Learning Unit 203 Control Unit 204 Storage section

Claims

1. A method for controlling a nonlinear dynamic system, comprising: a pre-learning procedure for learning, using pre-learning data consisting of observation data of the dynamic system and control data of the dynamic system at the time when the observation data was obtained, a first function for converting the observation data into feature data in a feature space, and linear dynamics obtained by linearly expressing nonlinear dynamics of the dynamic system in the feature space based on a Koopman operator; a control learning procedure for learning a control law expressed by a function that receives the observation data as an input and outputs control data by a linear-quadratic control method using the first function, the linear dynamics, and a control cost of the dynamic system expressed by a quadratic form in the feature space; a control procedure for controlling the dynamic system using the control law; The control method is performed by a computer.

2. The pre-learning procedure includes:

2. The control method according to claim 1, further comprising: learning the first function, the second function, and the linear dynamics so that when first observation data included in the pre-learning data is converted into first feature data by the first function, and then the first feature data is converted into second observation data by the second function, a difference between the first observation data and the second observation data is reduced, and so that when second feature data at a next time predicted by the linear dynamics using the first feature data and first control data included in the pre-learning data is converted into third observation data by the second function, prediction accuracy of the third observation data is increased.

3. The method of claim 2 , wherein the first function and the second function are neural networks.

4. 4. The control method according to claim 1, wherein the linear dynamics is expressed by a linear sum having parameters of a matrix representing a finite dimensional approximation of a Koopman operator and a matrix representing an influence of control data on feature data at a next time point.

5. The control learning procedure includes:

5. The control method according to claim 1, further comprising: approximating a control cost in an observation space to which the observation data belongs to a control cost in a feature space using the first function; expressing the approximated control cost as a quadratic function to express it as a quadratic form in the feature space; and learning the control law using an optimal gain matrix obtained by solving a Riccati equation using the linear-quadratic control method.

6. the control law has a parameter of the first function and a parameter of the dynamics, and is a function that outputs the control data from the observation data; The control learning procedure includes: The control method according to claim 5 , further comprising the step of learning the control law by a reinforcement learning technique, with the cost in the observation space being a negative reward and the control law being a policy.

7. A control device for controlling a nonlinear dynamic system, comprising: a pre-learning unit that uses pre-learning data composed of observation data of the dynamic system and control data of the dynamic system when the observation data is obtained to learn a first function for converting the observation data into feature data in a feature space and linear dynamics obtained by linearly expressing nonlinear dynamics of the dynamic system on the feature space based on a Koopman operator; a control learning unit that learns a control law expressed by a function that receives the observation data as an input and outputs control data by a linear-quadratic control method using the first function, the linear dynamics, and a control cost of the dynamic system expressed by a quadratic form in the feature space; a control unit for controlling the dynamic system using the control law; A control device having the above configuration.

8. A program for causing a computer to execute the control method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Intensified learning program, intensified learning method, and intensified learning device

    JP2019053589A