Method for designing gain scheduling model predictive controller for breeding multiple working points
By designing a multi-working point gain scheduling model predictive controller in the recirculating aquaculture system, using multiple linear sub-models and circadian rhythms to design gain scheduling signals, and switching sub-MPC controllers, the inconsistencies in dissolved oxygen control in recirculating aquaculture are solved. Deterministic and energy consumption issues are addressed, achieving high-precision and low-energy consumption dissolved oxygen control.
Patent Information
- Application Number
- CN202410795425.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-19
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-06-19
AI Technical Summary
In the recirculating aquaculture system, there is uncertainty and complexity in the control of dissolved oxygen. It is difficult for existing control methods to achieve satisfactory control effects in a changeable production environment. In particular, it is difficult for a single controller to achieve high performance in actual aquatic environments. Accuracy and low energy consumption while maintaining stability and robustness.
Design a multi-working point gain scheduling model predictive controller for breeding. By establishing multiple linear sub-models, designing gain scheduling signals based on circadian rhythm, switching sub-MPC controllers, optimizing Q and W weights, to achieve accurate measurement of dissolved oxygen concentration. control and energy consumption optimization.
It improves control accuracy, reduces energy consumption, can be effectively used for long-term precise control of dissolved oxygen levels in aquaculture, and adapts to the actual needs of circulating aquaculture systems.
Smart Images

Figure CN118859698A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of aquaculture, and in particular to a design method of a gain scheduling model predictive controller for aquaculture multiple working points. Background Art
[0002] In the actual operation of the recirculating aquaculture system, the production environment is changeable, the time lag is large, and there are many uncertain disturbances, which will bring uncertainty to the system adjustment. For the control method of dissolved oxygen, aerators are mostly used at home and abroad to control the dissolved oxygen content in the water, and sensors are used to detect the dissolved oxygen content in the water. When the value is lower than the lower limit, turn on the aerator to increase the dissolved oxygen content in the water; when the value is higher than the set upper limit, the aerator should be turned off immediately and stopped working to effectively control the dissolved oxygen. In terms of specific methods, most oxygenation equipment still uses the traditional PID control method, but with the demand for control accuracy, intelligent control methods are constantly combined with the aquaculture industry.
[0003] A study proposed a differential evolution (DE) algorithm to optimize the radial basis function neural network PID controller. The proposed controller has two optimization parts: the first part uses the improved DE algorithm to solve the optimal initial parameters of the PID; the second part uses the powerful learning ability of the RBF neural network to adjust the PID parameters online, which can not only eliminate overshoot but also improve the adaptive ability of the controller. A study proposed a single neuron adaptive PID controller based on fuzzy rule optimization to accurately control dissolved oxygen. In sewage treatment, some scholars used the MPC (Model Predictive Control) algorithm to study the regulation of dissolved oxygen in the activated sludge model sewage treatment process. Verification on the benchmark simulation platform shows that compared with other control algorithms, the model predictive control algorithm has higher regulation efficiency and accuracy, and can adjust the dissolved oxygen in the sewage treatment oxygenation process to the optimal state. Due to the complexity and variability of actual production requirements, it is difficult for a single controller to achieve satisfactory control effects in actual aquatic environments. Summary of the invention
[0004] In view of the deficiencies in the prior art, the present invention aims to provide a method for designing a gain scheduling model predictive controller for aquaculture with multiple operating points.
[0005] In order to solve the above technical problems, the technical solution provided by the present invention is:
[0006] A design method of a gain-scheduled model predictive controller for aquaculture with multiple operating points comprises the following steps:
[0007] S1. Design a basic MPC controller, the MPC controller comprising: a model prediction structure, a rolling optimization structure and a feedforward-feedback control structure, and the design steps include:
[0008] S1.1 Establishment and discretization of prediction model;
[0009] S1.2 Derivation of prediction model, establishing the system state matrix for a set period of time in the future;
[0010] S1.3 Design the objective function, optimize and solve the objective function, and complete the design of the basic MPC controller;
[0011] S2. The prediction model includes several linear sub-models with different working points; find the core cost function of the basic MPC controller in S1, and design sub-MPC controllers with four different functions for each linear sub-model based on the basic MPC controller for dissolved oxygen concentration in recirculating aquaculture: control accuracy priority, two different proportions of balancing accuracy and energy consumption, and control energy consumption priority; identify the linear sub-models under different working conditions by switching the sub-MPC controllers; use multiple local linear sub-models with different working points to approximate global nonlinear dynamics;
[0012] S3. Combined with the circadian rhythm of the linear sub-model under different working conditions of dissolved oxygen in recirculating aquaculture, a gain scheduling signal is designed for the sub-MPC controller of S2 to adapt to its stability and robustness. The sub-MPC controller is switched through the gain scheduling signal to perform overall scheduling control, and the switching between sub-MPC controllers is optimized as the switching of Q and W weights in the objective function to complete the design of the GSMPC controller.
[0013] S4. Use IAE, ISE and IAC to evaluate the performance of the GSMPC controller described in S3, comprehensively consider the control accuracy of the GSMPC controller and the energy consumption generated by the control action to make an evaluation, and confirm the performance of the GSMPC controller.
[0014] Preferably, the S1 is specifically:
[0015] S1.1 Establishment and discretization of prediction model
[0016] First choose the state vector: (2) Then establish the system state equation:
[0017]
[0018] The forward Euler method is used to discretize the state equation:
[0019]
[0020] x(k+1)=(I+TA)x(k)+TBu(k) (5)
[0021] make Then we have:
[0022]
[0023] Where x is the state vector of the system; The rate of change of the state vector; u, the input vector, contains the external input of the system; A, the state matrix, represents the linear evolution of the system state variables; B, the input matrix, describes the influence of the external input on the system state; D, the disturbance; T, the control period; x(k), the state of the system at the kth moment; u(k), the control amount of the system at the kth moment;
[0024] S1.2 Derivation of prediction model, establishing the system state matrix for a set period of time in the future;
[0025] N p represents the prediction interval, N c represents the control interval, N p ≥N c , record the predicted system state p control cycles in advance as:
[0026] X k =[x(k+1|k) T x(k+2|k) T … x(k+p|k) T ] T (7)
[0027] When predicting the future state of a dynamic system, the control quantity within the prediction interval is:
[0028] U k =[u(k|k) T u(k+1|k) T … u(k+p-1|k) T ] T (8)
[0029] Use the following formula to predict the system state of the next p control cycles:
[0030]
[0031] make but
[0032] X k =Ψx(k)+ΘU k (10)
[0033] Where: X k , system state; (k+1|k), based on the state at time k, predict the state of the system at time k+1, and so on; U k , the control quantity and independent variable of the optimization problem to be solved are in the interval Nc≤k≤Np, uk=0;
[0034] S1.3 Design the objective function and optimize the objective function;
[0035] Define a series of reference values within the prediction interval Np:
[0036] R k =[r(k+1) T r(k+2) T … r(k+p) T ] T (11)
[0037] The objective function J is defined as the cumulative error between the predicted state vector and the reference value while respecting the control variable constraints:
[0038]
[0039] The Q matrix adjusts the importance of the state error. The larger the Q, the faster the state converges. The W matrix adjusts the importance of the control input. When W is greater than Q, it prefers smaller inputs.
[0040] Let E = Ψx(k)-R k , Substituting formula (8) into the above formula, we get:
[0041] J=U k T (Θ T Qθ+W)U k +(2E T Qθ)U k +E T QE (13)
[0042] make E T QE is a constant term and does not affect "U k The problem of "which value is the minimum value of the objective function J" is omitted:
[0043]
[0044] The solution of the MPC optimal control solution problem is finally transformed into a QP problem:
[0045]
[0046] Stu min ≤u(k+i|k)≤u max ,=0,1,2,…,p-1 (16)
[0047] Δu min ≤Δu(k+i|k)≤Δu max (17)
[0048] Where: R k , set value; J, target solution function; Q, state error weight matrix; W, control input weight matrix, Q and W are diagonal matrices; u min , the lower limit of the control quantity; u max , upper limit of control amount; Δu min , the lower limit of the control variable change rate; Δu max , the upper limit of the control amount change rate; u(k+i|k), the control amount of k+i calculated at time k; Δu(k+i|k), the control change amount of k+i calculated at time k;
[0049] Call the optimization solver in the MATLAB function to solve the restricted QP optimization problem and obtain U k The initial value of is extracted as the control quantity of this control cycle.
[0050] Preferably,
[0051] The sub-MPC controllers in S2 include MPC1-MPC4;
[0052] The MPC1 controller is a fast drive state approaching the set point without considering energy consumption;
[0053] The MPC2 controller drives the state close to the set value while considering energy consumption;
[0054] The MPC3 controller takes into account both state error and energy consumption;
[0055] The MPC4 controller minimizes energy consumption without considering state errors.
[0056] Preferably,
[0057] The working point in S3 is specifically analyzed and designed by taking into account the dissolved oxygen concentration model and the circadian rhythm requirements of fish.
[0058] Preferably, the gain scheduling signal design scheme is specifically as follows:
[0059] During the 0-1.8 hour period, the aerator uses the maximum aeration flow, which is the upper limit of the control amount and the upper limit of the control amount change rate, and the dissolved oxygen concentration in the fish pond reaches the set target value at the fastest speed;
[0060] In the 1.8-3 hour period, the change of dissolved oxygen concentration in the fish pond has a certain time delay relative to the control action of the controller. The MPC4 controller is used to prevent the dissolved oxygen peak from exceeding the set reference value by 5%, and the oxygenation rate is reduced as much as possible, giving priority to minimizing energy consumption and giving priority to control weight.
[0061] In the stages of 3-5 hours, 19.3-26.5 hours, 43.3-50.5 hours, and 67.3-70 hours, the respiratory oxygen consumption of fish in these working points is low, and the dissolved oxygen concentration is still rising when the set value is reached. The MPC3 controller with the same error weight and control weight is selected; the control weight is increased;
[0062] In the 5-6 hour stage, the MPC2 controller was used to increase the controller error weight to increase the dissolved oxygen concentration in the fish pond;
[0063] During the 6-19.3 hour, 26.5-43.3 hour and 50.5-67.3 hour stages, the respiratory oxygen consumption of fish begins to rise and gradually increases in accordance with the circadian rhythm. Within these working points, the MPC1 controller is used to increase the dissolved oxygen concentration in the fish pond as quickly as possible.
[0064] Preferably,
[0065] In the S4, IAE, ISE and IAC are used to evaluate the performance of the GSMPC controller, and the specific equation is as follows:
[0066]
[0067] Where e is the error, u is the control input, and T is the control period.
[0068] Preferably,
[0069] In the S1, a linear model of the object, disturbance and noise is used to estimate the state of the basic MPC controller and predict the future output of the controlled object. The basic MPC controller solves the quadratic programming optimization problem of the optimal control quantity of the aerator in the dissolved oxygen concentration control to determine the control action based on the predicted output of the controlled object;
[0070] The controlled object is the dissolved oxygen concentration in the circulating aquaculture system, and its model is:
[0071]
[0072] Where V is the volume of the fish pond; Q in is the water flow rate; C is the dissolved oxygen concentration in the circulating water aquaculture pond; k1, k2, k3, and β are all constants, which are obtained by fitting the measured data using Gauss-Newton nonlinear regression analysis; Q is the aeration flow rate; t d is the delay time, T w is the current water temperature; K rear is the water surface reoxygenation coefficient; M is the total mass of fish; R m is the average daily consumption rate of dissolved oxygen; A is the amplitude of the circadian rhythm model, f is the model frequency, φ is the model phase; P k is the temperature coefficient.
[0073] Preferably,
[0074] The sub-MPC controller can handle control problems under multiple constraints and give the optimal control quantity under these constraints;
[0075] The sub-MPC controller decomposes an optimization control problem with a longer or even infinite time span into multiple optimization control problems with shorter or finite time spans to obtain the optimal solution.
[0076] A gain scheduling model predictive controller system for aquaculture with multiple operating points adopts any of the above-mentioned design methods for a gain scheduling model predictive controller for aquaculture with multiple operating points.
[0077] The above-mentioned gain scheduling model predictive controller system with multiple working points in aquaculture is applied in the precise tracking and control of long-term dissolved oxygen in aquaculture.
[0078] The beneficial effects of the present invention are:
[0079] The present invention proposes a method for designing a gain scheduling model predictive controller for aquaculture with multiple operating points, which improves control accuracy, reduces energy consumption, and can be effectively used for long-term precise control of dissolved oxygen levels in aquaculture. The GSMPC (Gain Scheduling Model Predictive Control) controller of the present invention has accumulated further experience in solving the actual needs of recirculating aquaculture systems. BRIEF DESCRIPTION OF THE DRAWINGS
[0080] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:
[0081] Figure 1 Schematic diagram of the gain scheduling model predictive controller design for multiple working points of recirculating aquaculture in the present invention
[0082] Figure 2 The structure diagram for the model predictive control
[0083] Figure 3 GSMPC structure diagram
[0084] Figure 4 GSMPC block diagram for adjusting weights for gain scheduling signals
[0085] Figure 5 Figure 2 is the gain scheduling signal weight and control result diagram
[0086] Figure 6 Control effect diagram of MPC controller and GSMPC controller
[0087] Figure 7 Control error diagram for MPC controller and GSMPC controller
[0088] Figure 8 Control input diagram for MPC controller and GSMPC controller DETAILED DESCRIPTION
[0089] The preferred embodiments of the present invention are described below in conjunction with the accompanying drawings. It should be understood that the following embodiments are provided only for the purpose of illustration and are not intended to limit the scope of the present invention. Those skilled in the art may make various modifications and substitutions to the present invention without departing from the purpose and spirit of the present invention.
[0090] like Figure 1 As shown, the present invention provides a method for designing a gain scheduling model predictive controller for aquaculture with multiple operating points, comprising the following steps:
[0091] S1. Design a basic MPC controller. The MPC controller includes: model prediction structure, rolling optimization structure and feedforward-feedback control structure. The design steps include:
[0092] S1.1 Establishment and discretization of prediction model;
[0093] S1.2 Derivation of prediction model, establishing the system state matrix for a set period of time in the future;
[0094] S1.3 Design the objective function, optimize and solve the objective function, and complete the design of the basic MPC controller;
[0095] S2. The prediction model includes several linear sub-models with different working points; find the core cost function of the basic MPC controller in S1, and design sub-MPC controllers with four different functions for each linear sub-model based on the basic MPC controller for dissolved oxygen concentration in recirculating aquaculture: control accuracy priority, two proportions to balance accuracy and energy consumption, and control energy consumption priority; identify linear sub-models under different working conditions by switching sub-MPC controllers; use multiple local linear sub-models with different working points to approximate global nonlinear dynamics;
[0096] S3. Combined with the circadian rhythm of the linear sub-model under different working conditions of dissolved oxygen in recirculating aquaculture, a gain scheduling signal is designed for the sub-MPC controller of S2 to adapt to its stability and robustness. The sub-MPC controller is switched through the gain scheduling signal to perform overall scheduling control, and the switching between sub-MPC controllers is optimized as the switching of Q and W weights in the objective function to complete the design of the GSMPC controller.
[0097] S4. Use IAE, ISE and IAC to evaluate the performance of the GSMPC controller described in S3, comprehensively consider the control accuracy of the GSMPC controller and the energy consumption generated by the control action to make an evaluation, and confirm the performance of the GSMPC controller.
[0098] The object of control of the present invention is the dissolved oxygen concentration in the circulating aquaculture system The dynamic analysis model of dissolved oxygen based on circadian rhythm can be expressed as:
[0099]
[0100] Where V is the volume of the fish pond; Q in is the water flow rate; C is the dissolved oxygen concentration in the circulating water aquaculture pond; k1, k2, k3, and β are all constants, which are obtained by fitting the measured data using Gauss-Newton nonlinear regression analysis; Q is the aeration flow rate; t d is the delay time, T w is the current water temperature; K rear is the water surface reoxygenation coefficient; M is the total mass of fish; R m is the average daily consumption rate of dissolved oxygen; A is the amplitude of the circadian rhythm model, f is the model frequency, φ is the model phase; P k is the temperature coefficient.
[0101] 1. Basic MPC controller design
[0102] like Figure 2 As shown, it is the gain scheduling model predictive control structure diagram of the present invention.
[0103] The MPC controller uses a linear model of the object, disturbance, and noise to estimate the controller state and predict future object outputs. The controller solves a quadratic programming optimization problem to determine the control action based on the predicted output of the controlled object. MPC can handle control problems under multiple constraints and give the optimal control quantity under these constraints. MPC has the ability to optimize and predict, and is committed to decomposing optimization control problems with longer or even infinite time spans into multiple optimization control problems with shorter or finite time spans, while pursuing the optimal solution to a certain extent.
[0104] The MPC controller consists of three components: model prediction structure, rolling optimization structure and feedforward-feedback control structure.
[0105] The design method of MPC controller is as follows:
[0106] 1.1 Establishment and discretization of prediction model
[0107] First choose the state vector:
[0108]
[0109] Then establish the system state equation:
[0110]
[0111] The forward Euler method is used to discretize the state equation:
[0112]
[0113] x(k+1)=(I+TA)x(k)+TBu(k) (5)
[0114] make Then we have:
[0115]
[0116] Where x is the state vector of the system; The rate of change of the state vector; u, the input vector, contains the external input of the system; A, the state matrix, represents the linear evolution of the system state variables; B, the input matrix, describes the impact of the external input on the system state; D, the disturbance; T, the control period; x(k), the state of the system at the moment; u(k), the control amount of the system at the kth moment.
[0117] 1.2 Derivation of prediction model and establishment of system state matrix for a period of time in the future
[0118] In order to predict the future system state, Np represents the prediction interval, Nc represents the control interval, Np ≥ Nc, and the predicted system state is recorded p control cycles in advance as:
[0119] X k =[x(k+1|k) T x(k+2|k) T … x(k+p|k) T ] T (7)
[0120] When predicting the future state of a dynamic system, the control quantity within the prediction interval is:
[0121] U k =[u(k|k) T u(k+1|k) T … u(k+p-1|k) T ] T (8)
[0122] Use the following formula to predict the system state of the next p control cycles:
[0123]
[0124] X k =Ψx(k)+ΘU k (10)
[0125] Where: X k , system state; (k+1|k), based on the state at time k, predict the state of the system at time k+1, and so on; U k , the control quantity and independent variable of the optimization problem to be solved, Np represents the prediction interval, Nc represents the control interval, in the interval Nc≤k≤Np, uk=0.
[0126] The lower triangular matrix form in the above formula directly reflects the causal relationship of the system in time. Specifically, the input at time k+1 has no effect on the state at time k, and the input at time k+2 has no effect on the states at time k and k+1.
[0127] 1.3 Design the objective function and optimize the objective function;
[0128] In the prediction interval N p A series of reference values are defined:
[0129] R k =[r(k+1) T r(k+2) T … r(k+p) T ] T (11)
[0130] The cost function is defined as the cumulative error between the predicted state vector and the reference value while respecting the control variable constraints:
[0131]
[0132] Let E = Ψx(k)-R k , Substituting formula (8) into the above formula, we get:
[0133] J=U k T (Θ T Qθ+W)U k +(2E T Qθ)U k +E T QE (13)
[0134] make E T QE is a constant term and does not affect "U k Which value of J reaches the minimum value? Therefore, it is omitted:
[0135]
[0136] In summary, the solution of MPC to the optimal control solution problem is ultimately transformed into a QP problem:
[0137]
[0138] Stu min ≤u(k+i|k)≤u max ,i=0,1,2,…,p-1 (16)
[0139] Δu min ≤Δu(k+i|k)≤Δu max (17)
[0140] Where: R k , set value; J, target solution function; Q, state error weight matrix; W, control input weight matrix, Q and W are diagonal matrices; u min , the lower limit of the control quantity; u max , upper limit of control amount; Δu min , the lower limit of the control variable change rate; Δu max , the upper limit of the control quantity change rate; u(k+i|k), the control quantity of k+i calculated at time k; Δu(k+i|k), the control change quantity of k+i calculated at time k.
[0141] H is an n×n symmetric matrix, which can also be called a Hessian matrix. The optimality of the function is related to the positive definiteness of the Hessian matrix. When the Hessian matrix is positive definite, that is, all eigenvalues of the matrix are greater than 0, this quadratic programming problem must have a unique global minimum; when the Hessian matrix is semi-positive definite, that is, all eigenvalues of the matrix are non-negative, this convex quadratic programming problem must have a global minimum; when the Hessian matrix is non-positive definite, that is, all eigenvalues of the matrix are less than 0, this convex quadratic programming problem has multiple local extreme points.
[0142] To solve the constrained QP optimization problem, we can directly call the optimization solver in the MATLAB function. k The initial value of (solving multiple control quantities, but only using the first control quantity) is extracted as the control quantity of this control cycle.
[0143] The present invention designs a GSMPC controller specifically for circulating aquaculture, which is used to adjust the aerator in the circulating aquaculture system to achieve precise control of dissolved oxygen in the pool. The MPC control algorithm mentioned above will serve as the basis for controller design. The GSMPC controller designed by the present invention will design multiple sub-MPC controllers with different functions for different working points in circulating aquaculture, and then design gain scheduling signals according to the model characteristics of the control object, and coordinately schedule these sub-MPC controllers to achieve better control effects.
[0144] 2. Multi-operating point multi-MPC controller design
[0145] Dissolved oxygen aeration is a dynamic nonlinear process. Traditional MPC controller design is based on a linear model design at a certain steady-state operating point of the system, which cannot guarantee good control effect of the system in the entire operating range. In order to achieve precise control of dissolved oxygen concentration, single model predictive control cannot provide sufficient controller performance.
[0146] The gain scheduling design method of the present invention makes full use of the advantages of the traditional MPC controller having good control effect near the steady-state operating point. GSMPC focuses on using multiple local linear sub-models with different operating points to approximate the global nonlinear dynamics, and designs an MPC controller for each sub-model to meet its stability and robustness. By switching the controller, the linear model under different working conditions can be identified to reduce the impact of the prediction model mismatch. The structure of GSMPC is as follows: Figure 3 As shown in the figure, GSMPC is still a feedforward-feedback structure. The gain scheduling signal is designed by comprehensively considering the system output feedback, working point and disturbance. The gain scheduling signal is responsible for making decisions to switch to the sub-MPC controller that best meets the real-time control requirements to perform real-time control of the aerator.
[0147] The above 1.3 obtains the cost function of MPC:
[0148]
[0149] The Q and W matrices are crucial in designing demand-based controllers and directly affect the performance of the controller. The Q matrix adjusts the importance of the state error. The larger the Q, the faster the state converges. Conversely, the W matrix adjusts the importance of the control input. When W is greater than Q, smaller inputs are preferred.
[0150] Four different MPC controllers (MPC1-MPC4) are designed for the operating points in RAS scheduling. Usually, only the first few time steps have a great impact on the prediction (because the first few time steps will be pulled to the reverse trajectory, and the last few time steps will remain stable), so choosing a larger control range will only increase the computational complexity. Therefore, follow the rule of thumb: control interval = 10%~30% × prediction interval.
[0151] The parameter selection of MPC1-MPC4 is shown in Table 1. The MPC1 controller is designed to quickly drive the state close to the set point without considering energy consumption; the MPC2 controller drives the state close to the set value while considering energy consumption; the MPC3 controller is designed to take into account both state error and energy consumption; the MPC4 controller is designed to minimize energy consumption without considering state error.
[0152] Table 1 Parameter settings of MPC controller
[0153]
[0154] The main goal of the GSMPC controller designed in the present invention is to schedule the above controllers to switch at appropriate times to ensure optimal growth of fish while minimizing energy consumption.
[0155] 3. Gain scheduling signal design
[0156] The GSMPC structure that switches models following the gain scheduling signal can be expressed as follows: Figure 4 As shown, GSMPC involves switching between a set of predefined MPC controllers in a coordinated manner, which can be optimized as a switch of Q,W weights, speeding up the reaction and saving controller resources. To implement GSMPC, one must first design an MPC for each operating point, as shown in Table 1, and then create a scheduling signal to switch between controllers at runtime.
[0157] A 70-hour control experiment was conducted, and the detailed working point gain scheduling signal design scheme is as follows:
[0158] In the 0-1.8 hour stage, the dissolved oxygen concentration in the fish pond is required to reach the set target value as quickly as possible; in the 6-19.3 hour, 26.5-43.3 hour and 50.5-67.3 hour stages, according to the circadian rhythm, the respiratory oxygen consumption of fish begins to rise and gradually increases in these time periods. In these working points, the MPC1 controller can be used to increase the dissolved oxygen concentration in the fish pond as quickly as possible. The change in the dissolved oxygen concentration in the fish pond has a certain time delay relative to the control action of the controller. In the 1.8-3 hour stage, in order to prevent excessive overshoot, the oxygen increase rate should be reduced as much as possible. At this time, energy consumption minimization can be given priority (priority control weight). Therefore, the MPC4 controller can be used for this specific working point. According to the circadian rhythm, the respiratory oxygen consumption of fish begins to increase in the 5-6 hour stage. It is necessary to increase the error weight of the controller to appropriately increase the dissolved oxygen concentration in the fish pond. The MPC2 controller is used for this operating point. 3-5 hours, 19.3-26.5 hours, 43.3-50.5 hours, 67.3-70 hours, the oxygen consumption of fish in these working points is low, and when the dissolved oxygen concentration is still rising when the set value is reached, the controller control weight can be appropriately increased to reduce energy consumption. At this time, MPC3 with the same error weight and control weight is selected.
[0159] In general, the smaller the values of the integrated absolute error (IAE) and the integrated squared error (ISE), the better the tracking accuracy of the controller. The integral absolute control (IAC) represents the integral of the absolute control input over a period of time and is used to evaluate the power consumption or activation intensity of the controller. The smaller the value of this indicator, the lower the energy consumption or activation intensity of the controller over a period of time, which is crucial for many devices that are used for a long time.
[0160] IAE, ISE and IAC are used to evaluate the performance of the proposed controller. The specific equations are as follows:
[0161]
[0162] Where e is the error, u is the control input, and T is the control period.
[0163] This paper proposes a gain scheduling model predictive controller design method for recirculating aquaculture with multiple working points. The experimental location is the National Digital Fisheries Innovation Center of the School of Information and Electronics, China Agricultural University. The set value tracking results and dynamic weights of the GSMPC controller are as follows Figure 5 As shown. The horizontal axis represents the specific experimental time, the left vertical axis represents the dissolved oxygen concentration, and the right vertical axis represents the weight value. The red curve represents the control effect of the GSMPC controller on the dissolved oxygen concentration, the black curve represents the target setting reference value, the blue curve is the error weight matrix Q value, and the yellow curve is the control weight matrix W value. Figure 5 It shows that the gain scheduling signal designed by the present invention can well call four sub-controllers with different functions, achieving the goals of improving control accuracy and reducing control energy consumption.
[0164] The individual control effects of the four MPCs designed in GSMPC are as follows: Figure 6 As shown. The blue curve represents the tracking result of the MPC1 controller. The MPC1 controller has the shortest rise time and the shortest peak time, but the overshoot is the largest and the overall tracking error is the smallest. The result meets the accuracy-first design goal of MPC1: track the set target value at the fastest speed. The green curve represents the tracking result of the MPC2 controller. The control weight of the MPC2 controller is appropriately increased, and energy saving is considered, resulting in a slight decrease in performance, but the overshoot will be reduced at this time. The red curve represents the tracking result of the MPC3 controller. The error weight of the MPC3 controller is the same as the control weight. At this time, only the peak value can reach the set target value, and energy consumption reduction is considered at the same time. However, this will also cause the performance to degrade more. The gray curve represents the tracking result of the MPC4 controller. The MPC4 controller has the highest control weight. The purpose is to quickly reduce energy consumption and minimize the control output, but this will also cause the tracking error to reach the maximum.
[0165] The state error between the MPC controller and the GSMP controller is as follows: Figure 7As shown. The blue, green, orange, gray and red curves represent the control errors of MPC1-MPC4 and GSMPC controllers respectively. The control errors of all controllers also show periodic fluctuations with the circadian rhythm of the model. From MPC1 to MPC4, as the error weight gradually decreases, the state error of the sub-controller gradually increases, among which the error of MPC1 is the smallest. The control error of GSMPC is smaller than that of MPC1. This result shows that the error of GSMPC is reduced and the accuracy is improved.
[0166] The control inputs of the MPC controller and the GSMP controller are as follows: Figure 8 As shown. The blue, green, red, gray and black curves represent the control inputs of MPC1-MPC4 and GSMPC controllers respectively. The control inputs of all controllers also show certain periodic fluctuations with the circadian rhythm of the model. Due to the switching between controllers, the control input of GSMPC has certain mutation phenomena, but the mutations are all within the constraint range. From MPC1 to MPC4, the control input gradually decreases and the energy consumption gradually decreases, among which the control input of MPC1 is the largest. The control input of GSMPC is smaller than that of MPC1. This result shows that the energy consumption of GSMPC is reduced.
[0167] According to the above dissolved oxygen set value tracking control results, the control performance indicators such as IAE, ISE, and IAC of the GSMPC controller and the sub-MPC controller are calculated, and the results are shown in Table 2. From the table, we can see that IAE and ISE gradually increase from MPC1 to MPC4, indicating that the state error from MPC1 to MPC4 gradually increases, and the error of MPC1 is the smallest. IAC gradually decreases from MPC1 to MPC4, indicating that from MPC1 to MPC4, the control input gradually decreases and the energy consumption gradually decreases. The control input of MPC1 is the largest, and the control amount of MPC4 is the smallest and almost zero, which is equivalent to turning off the aerator. MPC1 is the weight setting of the commonly used MPC controller. The goal of this weight setting is to achieve the best possible tracking effect. The designed GSMPC controller is compared with it.
[0168] Table 2 Control index values of controller
[0169]
[0170] Compared with the MPC1 controller, the IAE of the GSMPC controller decreased by 23.45%, the ISE decreased by 11.25%, and the IAC decreased by 11.28%. This means that the GSMPC controller reduces errors and also reduces energy consumption. The GSMPC controller has the best control performance, meets the requirements of accurate, fast, and stable dissolved oxygen control, reduces energy consumption, conforms to the circadian rhythm of fish, and can be used for long-term precise tracking and control of dissolved oxygen in aquaculture.
[0171] The contents not described in detail in this specification belong to the prior art known to professional and technical personnel in this field.
[0172] Finally, it should be noted that the above description is only a preferred example of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art can still modify the technical solutions described in the aforementioned embodiments or replace some of the technical features therein by equivalents. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A design method for a gain-scheduled model predictive controller for aquaculture with multiple operating points, characterized in that: The steps include: S1. Design a basic MPC controller, the MPC controller comprising: a model prediction structure, a rolling optimization structure and a feedforward-feedback control structure, and the design steps include: S1.1 Establishment and discretization of prediction model; S1.2 Derivation of prediction model, establishing the system state matrix for a set period of time in the future; S1.3 Design the objective function, optimize and solve the objective function, and complete the design of the basic MPC controller; S2. The prediction model includes several linear sub-models with different working points; find the core cost function of the basic MPC controller in S1, and design sub-MPC controllers with four different functions for each linear sub-model based on the basic MPC controller for dissolved oxygen concentration in recirculating aquaculture: control accuracy priority, two different proportions of balancing accuracy and energy consumption, and control energy consumption priority; identify the linear sub-models under different working conditions by switching the sub-MPC controllers; use multiple local linear sub-models with different working points to approximate global nonlinear dynamics; S3. Combined with the circadian rhythm of the linear sub-model under different working conditions of dissolved oxygen in recirculating aquaculture, a gain scheduling signal is designed for the sub-MPC controller of S2 to adapt to its stability and robustness. The sub-MPC controller is switched through the gain scheduling signal to perform overall scheduling control, and the switching between sub-MPC controllers is optimized as the switching of Q and W weights in the objective function to complete the design of the GSMPC controller. S4. Use IAE, ISE and IAC to evaluate the performance of the GSMPC controller described in S3, comprehensively consider the control accuracy of the GSMPC controller and the energy consumption generated by the control action to make an evaluation, and confirm the performance of the GSMPC controller.
2. The design method of a gain-scheduled model predictive controller for aquaculture with multiple operating points according to claim 1, characterized in that: The S1 is specifically: S1.1 Establishment and discretization of prediction model First choose the state vector: Then establish the system state equation: The forward Euler method is used to discretize the state equation: x(k+1)=(I+TA)x(k)+TBu(k) (5) make Then we have: Where x is the state vector of the system; The rate of change of the state vector; u, the input vector, contains the external input of the system; A, the state matrix, represents the linear evolution of the system state variables; B, the input matrix, describes the impact of the external input on the system state; D, the disturbance; T, control period; x(k), the state of the system at the kth moment; u(k), the control amount of the system at the kth moment; S1.2 Derivation of prediction model, establishing the system state matrix for a set period of time in the future; N p represents the prediction interval, N c represents the control interval, N p ≥N c , record the predicted system state p control cycles in advance as: X k =[x(k+1∣k) T x(k+2∣k) T … x(k+p∣k) T ] T (7) When predicting the future state of a dynamic system, the control quantity within the prediction interval is: IN k =[u(k∣k) T in(k+1∣k) T … in(k+p-1∣k) T ] T (8) Use the following formula to predict the system state of the next p control cycles: make but X k =Ψx(k)+ΘU k (10) Where: X k , system state; (k+1|k), based on the state at time k, predict the state of the system at time k+1, and so on; U k , the control quantity and independent variable of the optimization problem to be solved are in the interval Nc≤k≤Np, uk=0; S1.3 Design the objective function and optimize the objective function; In the prediction interval N p A series of reference values are defined: R k =[r(k+1) T r(k+2) T … r(k+p) T ] T (11) The objective function J is defined as the cumulative error between the predicted state vector and the reference value while respecting the control variable constraints: The Q matrix adjusts the importance of the state error. The larger the Q, the faster the state converges. The W matrix adjusts the importance of the control input. When W is greater than Q, it prefers smaller inputs. Let E = Ψx(k)-R k , Substituting formula (8) into the above formula, we get: J=U k T (Θ T QΘ+W)U k +(2E T QΘ)U k +E T QE (13) make E T QE is a constant term and does not affect "U k The problem of "which value is the minimum value of the objective function J" is omitted: The solution of the MPC optimal control solution problem is finally transformed into a QP problem: s.t.u min ≤u(k+i|k)≤u max ,i=0,1,2,…,p-1 (16) Δu min ≤Δu(k+i|k)≤Δu max (17) Where: R k , set value; J, target solution function; Q, state error weight matrix; W, control input weight matrix, Q and W are diagonal matrices; u min , the lower limit of control quantity; u max , the upper limit of control quantity; Δu min , the lower limit of the control variable change rate; Δu max , the upper limit of the control variable change rate; u(k+i|k), the control amount of k+i is calculated at time k; Δu(k+i|k), the control change amount of k+i is calculated at time k; Call the optimization solver in the MATLAB function to solve the restricted QP optimization problem and obtain U k The initial value of is extracted as the control quantity of this control cycle.
3. The design method of a gain-scheduled model predictive controller for aquaculture with multiple operating points according to claim 1, characterized in that: The sub-MPC controllers in S2 include MPC1-MPC4; The MPC1 controller is a fast drive state approaching the set point without considering energy consumption; The MPC2 controller drives the state close to the set value while considering energy consumption; The MPC3 controller takes into account both state error and energy consumption; The MPC4 controller minimizes energy consumption without considering state errors.
4. The design method of a gain-scheduled model predictive controller for aquaculture with multiple operating points according to claim 1, characterized in that: The working point in S3 is specifically analyzed and designed by taking into account the dissolved oxygen concentration model and the circadian rhythm requirements of fish.
5. The design method of a gain-scheduled model predictive controller for aquaculture with multiple operating points according to claim 4, characterized in that: The gain scheduling signal design scheme is specifically as follows: During the 0-1.8 hour period, the aerator uses the maximum aeration flow, which is the upper limit of the control amount and the upper limit of the control amount change rate, and the dissolved oxygen concentration in the fish pond reaches the set target value at the fastest speed; In the 1.8-3 hour period, the change of dissolved oxygen concentration in the fish pond has a certain time delay relative to the control action of the controller. The MPC4 controller is used to prevent the dissolved oxygen peak from exceeding the set reference value by 5%, and the oxygenation rate is reduced as much as possible, giving priority to minimizing energy consumption and giving priority to control weight. In the stages of 3-5 hours, 19.3-26.5 hours, 43.3-50.5 hours, and 67.3-70 hours, the respiratory oxygen consumption of fish in these working points is low, and the dissolved oxygen concentration is still rising when the set value is reached. The MPC3 controller with the same error weight and control weight is selected; the control weight is increased; In the 5-6 hour stage, the MPC2 controller was used to increase the controller error weight to increase the dissolved oxygen concentration in the fish pond; During the 6-19.3 hour, 26.5-43.3 hour and 50.5-67.3 hour stages, the respiratory oxygen consumption of fish begins to rise and gradually increases in accordance with the circadian rhythm. Within these working points, the MPC1 controller is used to increase the dissolved oxygen concentration in the fish pond as quickly as possible.
6. The design method of a gain-scheduled model predictive controller for aquaculture with multiple operating points according to claim 1, characterized in that: In the S4, IAE, ISE and IAC are used to evaluate the performance of the GSMPC controller, and the specific equation is as follows: Where e is the error, u is the control input, and T is the control period.
7. The design method of a gain-scheduled model predictive controller for aquaculture with multiple operating points according to claim 1, characterized in that: In the S1, a linear model of the object, disturbance and noise is used to estimate the state of the basic MPC controller and predict the future output of the controlled object. The basic MPC controller solves the quadratic programming optimization problem of the optimal control quantity of the aerator in the dissolved oxygen concentration control to determine the control action based on the predicted output of the controlled object; The controlled object is the dissolved oxygen concentration in the circulating aquaculture system, and its model is: Where V is the volume of the fish pond; Q in is the water flow rate; C is the dissolved oxygen concentration in the circulating water aquaculture fish pond; k1, k2, k3, and β are all constants, which are obtained by fitting the measured data using Gauss-Newton nonlinear regression analysis; Q is the aeration flow rate; t d is the delay time, T w is the current water temperature; K rear is the water surface reoxygenation coefficient; M is the total mass of fish; R m is the average daily consumption rate of dissolved oxygen; A is the amplitude of the circadian rhythm model, f is the model frequency, φ is the model phase; P k is the temperature coefficient.
8. The design method of a gain-scheduled model predictive controller for aquaculture with multiple operating points according to claim 1, characterized in that: The sub-MPC controller can handle control problems under multiple constraints and give the optimal control quantity under these constraints; The sub-MPC controller decomposes an optimization control problem with a longer or even infinite time span into multiple optimization control problems with shorter or finite time spans to obtain the optimal solution.
9. A gain-scheduled model predictive controller system for aquaculture with multiple operating points, which adopts the design method of a gain-scheduled model predictive controller for aquaculture with multiple operating points as described in any one of claims 1 to 7.
10. Application of the gain-scheduled model predictive controller system for aquaculture with multiple operating points as described in claim 9 in precise tracking and control of long-term dissolved oxygen in aquaculture.
Citation Information
Patent Citations
Decoupling control method and system for dissolved oxygen and water temperature in aquaculture
CN116185104A
Enhanced predictive control method for sewage treatment process
CN116360264A
Data-driven urban sewage treatment process dissolved oxygen concentration model prediction control method
CN117519318A
Robust adaptive model predictive controller with tuning to compensate for model mismatch
US20090198350A1
