Device and method for controlling a process with a controller depending on a state variable of the process
Patent Information
- Application Number
- DE102024204803
- Authority / Receiving Office
- DE · DE
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2024-05-24
- Publication Date
- 2025-09-04
- Estimated Expiration
- 2044-05-24
Smart Images

Figure 00000000_0000_ABST
Abstract
Description
background
[0001] The invention relates to a device and a method for controlling a process with a controller depending on a state variable of the process.
[0002] In a networked control system, a process involving a controlled system is controlled in a control loop by a controller over a communications network from a remote location. A major challenge for this type of control system is latency, the delay between the controller and the controlled system. Latency can vary over time. This delay can actually destabilize and degrade the performance of the control loop. Disclosure of the invention
[0003] A method for controlling a process with a controller dependent on a state variable of the process, wherein the process is executed on a first device, wherein the controller is executed on a second device, wherein a communication network connects the first device and the second device, the method comprising determining the value of the quadratic Lyapunov function of a value of the state variable, and taking an action if it is determined that the value of the quadratic Lyapunov function exceeds a threshold, and otherwise not taking the action, wherein the action comprises reducing data traffic on the communication network and / or stopping the process and / or switching on a controller for the process on the first device and / or shifting control from the second device to a third device,wherein the communication network connects the first device and the third device, wherein a latency of the communication network between the first device and the third device is lower than the latency between the first device and the second device. The method monitors the robustness of the process based on the value of the quadratic Lyapunov function. The method detects the value of the state variable based on the value of the quadratic Lyapunov function,Whether the process is losing stability or not. The controller and the process are running on different devices in the communication network. Due to communication network problems, missing control inputs from the controller to the process can occur. Missing control inputs from the controller to the process can lead to process instability. The quadratic Lyapunov function of the value of the state variable considers missing control inputs from the controller to the process as a disturbance. If it is determined that the process is losing stability, the method takes action.
[0004] The method can be carried out on the first device, ie on the same device as the process.
[0005] The method can be carried out on the second device, ie on the same device as the controller.
[0006] The method may be executed on the third device, i.e., on the device that can control the process with lower latency than the current controller can provide.
[0007] The method can be executed on a fourth device, wherein the communication network connects the first device and the fourth device. This means that the method can be executed on a separate monitoring device in the communication network.
[0008] A device for controlling a process with a control depending on a state variable of the process is designed to carry out the method.
[0009] According to one example, the apparatus comprises the first apparatus, the first apparatus being configured to determine the value of the quadratic Lyapunov function of the value of the state variable, and to take an action if it is determined that the value of the quadratic Lyapunov function exceeds a threshold, and otherwise not to take the action.
[0010] According to one example, the device comprises the second device, wherein the second device is configured to determine the value of the quadratic Lyapunov function of the value of the state variable, and to take an action if it is determined that the value of the quadratic Lyapunov function exceeds a threshold, and otherwise not to take the action.
[0011] According to one example, the apparatus comprises the third apparatus, wherein the third apparatus is configured to determine the value of the quadratic Lyapunov function of the value of the state variable, and to take an action if it is determined that the value of the quadratic Lyapunov function exceeds a threshold, and otherwise not to take the action.
[0012] According to one example, the apparatus comprises the fourth apparatus, wherein the fourth apparatus is configured to determine the value of the quadratic Lyapunov function of the value of the state variable, and to take an action if it is determined that the value of the quadratic Lyapunov function exceeds a threshold, and otherwise not to take the action.
[0013] A computer program may be provided, the computer program comprising computer-readable instructions which, when executed by a computer, cause the computer to carry out the method.
[0014] Further examples can be found in the following description and drawing. In the drawing: Fig. 1 shows a schematic diagram of a communication network, Fig. 2 shows a flowchart comprising steps of a method for controlling a process with a controller depending on a state variable of the process, Fig. 3 shows an exemplary system that executes the process, Fig. 4 shows a first exemplary behavior of a quadratic Lyapunov function, Fig. Figure 5 shows a second exemplary behavior of the quadratic Lyapunov function.
[0015] Fig. 1 schematically shows a communication network 100.
[0016] The communication network 100 includes a first device 102 and a second device 104.
[0017] The communication network 100 connects the first device 102 and the second device 104.
[0018] The communication network 100 may include multiple devices. Fig. 1 shows, by way of example, a third device 106 and a fourth device 108.
[0019] The communication network 100 connects the first device 102 and the third device 106. The communication network 100 connects the first device 102 and the fourth device 104.
[0020] According to one example, a process 110 is controlled by a controller 112 for controlling the process 110. At least one sensor 114 is configured to monitor the process 110. At least one actuator 116 is configured to control the process 110. The first device 102 is connected to the sensor 114 and the actuator 116. The controller 112 is executed on the second device 104.
[0021] With respect to the process 110, the first device 102 is a local device. The local device performs input operations with the at least one sensor 114 and / or output operations with the at least one actuator 116. For example, the local device reads inputs from the at least one sensor 114 to monitor the process 110 or an environment of the process 110. The inputs are provided to the controller. The controller 112 controls the process depending on the inputs. For example, the local device actuates the at least one actuator 116 to control the process 110 according to an output of the controller 112.
[0022] The communication network 100 includes, for example, a CAN (Controller Area Network) bus. The communication network 100 includes, for example, a local area network (LAN). The communication network 100 includes, for example, a wireless local area network (WLAN). The communication network 100 includes, for example, a wide area network (WAN).
[0023] The communication network 100 may include a combination of CAN, LAN, WLAN, WAN.
[0024] The first device 102, the second device 104, the third device 106, and the fourth device 108 may comprise a microcontroller and a memory, in particular a transient and a non-volatile memory. For example, a computer program may be provided on the transient and non-volatile memory, wherein the computer program comprises computer-readable instructions that, when executed by a computer, e.g., the microcontroller, cause the computer to perform a method for controlling the process 110 with the controller 112.
[0025] According to the example, the process 110 is represented and linearized by a system in the form of a discrete state space: xk+1=Axk+Buk where x k represents a value of the state variable of the process 110, u krepresents a value of the control input of the process 110, A represents the system matrix of the process 110, and B represents the input matrix of the process 110.
[0026] Assuming that A is asymptotically stable, there exists a positive semidefinite matrix P such that ATPA−P=−Q where Q is a symmetric positive definite matrix. The Lyapunov function for this system is V(x)=xTPx
[0027] The controller 112 according to the example is a state feedback controller uk=−Kxk where K is the control gain matrix.
[0028] For example, the states of process 110 are measurable, observable or estimable.
[0029] Fig. 2 shows a flowchart comprising steps of the method for controlling the process 110, wherein the controller 112 is dependent on a state variable 202 of the process 110.
[0030] In the example, the at least one sensor 114 sends a value x of the state variable 202 to the controller 112 via the communication network 100. The at least one sensor 114 monitors the process 110 to determine the value x of the state variable 202.
[0031] In a step 204, the controller 112 determines a value u of a control input 206 for the process 110 depending on the value x of the state variable 202.
[0032] In the example, the controller 112 sends the value u of the control input 206 to the at least one actuator 116 via the communication network 100.
[0033] In a step 208, the process 110 is executed depending on the received value u of a control input 206. The at least one actuator is actuated according to the value u of the control input 206 in order to execute the process 110 according to the received value u of the control input 206.
[0034] Steps 202, 204, 206, 208 are repeatedly executed with controller 112 to control process 110.
[0035] The method for controlling process 110 with controller 112 is described using the example of a monitoring application 209. The monitoring application 209 is designed to monitor the state variable 202 of process 110.
[0036] The monitoring application 209 is designed to determine whether or not an action should be taken depending on the state variable 202 of the process 110.
[0037] The measure may consist of reducing the data traffic in the communication network 100.
[0038] The action may include stopping the process 110.
[0039] The measure may include switching on a controller for the process 110 on the first device 102.
[0040] The action may include moving the controller 104 from the second device 104 to the third device 106.
[0041] The monitoring application 209 may be executed on the first device 102, the second device 104, the third device 106, or the fourth device 108.
[0042] The method for controlling the process 110 with the controller 112 includes a step 210.
[0043] Step 210 includes receiving the value x of the state variable 202 at the monitoring application 209.
[0044] The method for controlling the process 110 with the controller 112 includes a step 212.
[0045] Step 212 includes determining the value V(x) of the quadratic Lyapunov function V(x)=xTPx for the value x of the state variable 202, where the system is quadratically bounded, ie: xTPx>η→(Axk+BKdk)TP(Axk+BKdk)−xkTPxk<0,∀‖d‖≤δ and ∀k≥0 where η is a threshold value and d k is a disorder.
[0046] The quadratic boundedness property guarantees robustness against bounded perturbations, since for any value outside the ellipsoid εη={x∈ℝn|xTPx≤η} the controller 112 is able to counteract the effects of the disturbance d k to counteract.
[0047] According to the example, the disturbance can be k a missing value u of the control input 206. The value u of the control input 206 may be missing due to problems in the communication network 100.
[0048] According to the example, the disturbance is d k acceptable until the value V(x) of the quadratic Lyapunov function exceeds the threshold η, i.e. V(x) > η.
[0049] According to the example, the threshold value η is given for the method.
[0050] For example, a latency of the communication network 100 is defined as interference d k modeled, and as long as the disturbances d k are limited, the controller 112 brings the process 110, ie the system, back to stability.
[0051] Instead of latency, or in addition to latency, the disturbances can be k the network delay of the communication network 100 can be modeled and monitored, or uncertainties or other disturbances can be modeled.
[0052] The method for controlling the process 110 with the controller 112 includes a step 214.
[0053] Step 214 includes taking the action if it is determined that the value V(x) of the quadratic Lyapunov function exceeds the threshold η, ie, V(x) > η, and otherwise not taking the action.
[0054] For example, the monitoring application 209 reduces the data traffic in the communication network 100, or requests a reduction.
[0055] For example, the monitoring application 209 stops the process or requests that the process 110 be stopped.
[0056] For example, the monitoring application 209 turns on or requests control for the process 110 on the first device 102.
[0057] For example, the monitoring application 209 moves the control 104 from the second device 104 to the third device 106, or requests this.
[0058] Fig. 3 shows an exemplary system 300 that performs the process, an inverted pendulum 300.
[0059] The physical model of the inverted pendulum is given by the following system of second-order ordinary differential equations: LΘ¨=g sin Θ−y¨ cos Θ−kmLΘ˙ (M+m)y¨=mLΘ˙2 sin Θ−mLΘ¨ cos Θ−by˙+F where the mass of the rope is negligible, and m [Kg]: mass of the pendulum 302, M [Kg]: Mass of the car 304, L [m]: length of the pendulum from the pin to the pendulum body, b [Ns / m]: friction coefficient of the carriage 304, k [Nsm / Rad]: friction coefficient of the pendulum 302, Θ [wheel]: angle formed by the pendulum with the vertical axes passing through the pin, Θ = 0 represents the upright position, y [m]: position of the carriage 304, F [N]: force exerted on the car 304, g=9.81 [m / s 2 ]: Acceleration due to gravity.
[0060] The inverted pendulum 300 is used for the state space variables x 1 = θ,x 2 = Θ̇, x 3 = y, x 4 = ẏ and approximations like Θ ≈ 0 modeled by x˙=Ax+BF where A=[0100M¯gLMM¯(kLm) LM0bLM0001−gmM(km)M0−bM] where M = M + m and the control input u is the force F exerted on the carriage 304. B=[0 −1ML 0 1M]T
[0061] Fig. 4 shows an example behavior of the quadratic Lyapunov function V(x k ) for the inverted pendulum and the threshold value η. According to an example, the threshold value η = 10 is used. Successive disturbances d k are caused by a missing value u of the control input. The control input in the example is the force F applied to carriage 304. The missing force F applied to carriage 304 causes the disturbances.
[0062] According to the example, a received control input 402 is followed by 22 consecutive missing control inputs 404. Fig. 4 shows time steps k=0, ..., 45. Fig. 4 shows a first sequence of 22 consecutive missing control inputs 404 between a first received control input 402 and a second received control input 402. Fig. 4 shows a second sequence of 22 consecutive missing control inputs 404 between the second received control input 402 and a third received control input 402. None of the illustrated missing control inputs 404 exceeds the threshold η. Thus, no action is taken according to the methods described above.
[0063] Fig. 5 shows the exemplary behavior of the quadratic Lyapunov function V(x k ), where a value 502 of a consecutively missing control input 404 exceeds the threshold η. In the example, the 25th consecutive missing control input 404 exceeds the threshold: v(x 25) > η. In this case, at least one of the measures described above is taken according to the procedure described above to avoid a loss of stability.
[0064] The method is applicable to various application areas ranging from software-defined vehicles, the Internet of Things (IoT), intelligent IoT, IIoT, to edge cloud-based control and cloud-based control.
[0065] For example, process 110 includes controlling a computer-controlled machine, such as a software-defined vehicle.
[0066] The action taken may be selected depending on the requirements of the process 110 and the capabilities of the communication network 100 and / or the third device 106 with respect to the latency in the communication between the controller 112 and the process 110.
[0067] Regardless of the area of application, the procedure provides a framework for implementing measures that lead to robust control.
Claims
[1] Method for controlling a process (110) with a controller (112) depending on a state variable of the process (110), characterized bythat the process (110) is executed on a first device (102), wherein the controller (112) is executed on a second device (104), wherein a communication network (100) connects the first device (102) and the second device (104), the method comprising determining (212) the value of the quadratic Lyapunov function for a value of the state variable, and taking an action (214) if it is determined that the value of the quadratic Lyapunov function exceeds a threshold value, and otherwise not taking the action, the action comprising reducing the data traffic on the communication network (100) and / or stopping the process (110), and / or switching on a controller for the process (110) on the first device (102), and / or shifting the controller (112) from the second device (104) to a third device (106),wherein the communication network (100) connects the first device (102) and the third device (106), wherein a latency of the communication network (100) between the first device (102) and the third device (106) is lower than the latency between the first device (102) and the second device (104)., [2] Method according to claim 1, characterized by Executing the method on the first device (102). [3] Method according to claim 1, characterized by Executing the method on the second device (104). [4] Method according to claim 1, characterized by Executing the method on the third device (106). [5] Method according to claim 1, characterized by Executing the method on a fourth device (108), wherein the communication network (100) connects the first device (102) and the fourth device (108). [6] Device for controlling a process (110) with a controller (112) depending on a state variable of the process (110), characterized by that the device is designed to carry out the method according to one of the preceding claims. [7] Device according to claim 6, characterized by in that the device comprises the first device (102), wherein the first device (102) is configured to determine the value of the quadratic Lyapunov function of the value of the state variable, and to take an action if it is determined that the value of the quadratic Lyapunov function exceeds a threshold value, and otherwise to take no action. [8] Device according to claim 6, characterized byin that the device comprises the second device (104), wherein the second device (104) is designed to determine the value of the quadratic Lyapunov function of the value of the state variable, and to take an action if it is determined that the value of the quadratic Lyapunov function exceeds a threshold value, and to take no action otherwise. [9] Device according to claim 6, characterized by in that the device comprises the third device (106), wherein the third device (106) is designed to determine the value of the quadratic Lyapunov function of the value of the state variable, and to take an action if it is determined that the value of the quadratic Lyapunov function exceeds a threshold value, and to take no action otherwise. [10] Device according to claim 6, characterized byin that the device comprises a fourth device (108), wherein the fourth device (108) is adapted to determine the value of the quadratic Lyapunov function of the value of the state variable, and to take an action if it is determined that the value of the quadratic Lyapunov function exceeds a threshold value, and otherwise to take no action, wherein the communication network (100) is adapted to connect the first device (102) and the fourth device (108). [11] Computer program, characterized by that the computer program comprises computer-readable instructions which, when executed by a computer, cause the computer to carry out the method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Method for designing a nonlinear controller for nonlinear processes
WO2014131661A1