NONLINEAR OPTIMIZATION METHOD FOR PARAMETERS OF OCEAN ECOLOGICAL DYNAMICS MODEL

Disclosed is a nonlinear optimization method for parameters of ocean ecological dynamics model, comprising the following steps: acquiring a state variable set and a parameter set to be optimized; building an ocean ecological dynamics model; acquiring a final cost function equation group; solving the ocean ecological dynamics model to obtain numerical solutions of each state variable; acquiring a Hamilton function of the cost function equation group under a constraint condition, and acquiring an adjoint equation based on the Hamilton function; adjusting the parameter set to be optimized based on the adjoint equation to obtain an optimal parameter set.

Skip to: Description  ·  Claims  · Patent History  ·  Patent History
Description
CROSS-REFERENCE TO RELATED APPLICATIONS

This application claims priority to Chinese Patent Application No. 202211015467.4, filed on Aug. 24, 2022, the contents of which are hereby incorporated by reference.

TECHNICAL FIELD

The application belongs to the field of ocean numerical model optimization, and in particular to a nonlinear optimization method for parameters of ocean ecological dynamics model.

BACKGROUND

The parameter optimization of a simple model is relatively simple. The extreme (large) value points of state variables may be obtained by the extreme value principle, and the optimal parameter set may be determined according to the reasonable distribution range of parameters. For complex ecological dynamics models, there are many state variables, and most of them are multi-objective optimization problems, so it is difficult to directly solve the extreme points (optimal parameter sets) by analytical methods. The ecological processes of the ocean ecosystem constitute a highly complex nonlinear system. Any slight change in the parameters of the ocean ecosystem dynamics model may cause great turbulence in the whole system. Sensitivity analysis has shown that model state variables are often sensitive to most parameters.

Therefore, the parameter optimization of ocean ecological dynamics model is a very complicated problem, involving sensitivity analysis of model parameters, laboratory analysis and numerical optimization. Only the case of obtaining the optimal values of parameters by numerical means is discussed in the application.

Optimization of ocean dynamic model is one of the main problems that perplex modelers. In the past studies of numerical simulation of ecosystem dynamics, it is always a difficult point to determine the parameter values because researchers have a vague understanding of the biological and chemical processes of the research object or because of the lack of experimental data. With the deepening of the complexity of the model, this problem has become particularly prominent. Before the introduction of data assimilation method, the estimation of model parameters mainly depends on the accumulation of experience and subjective judgment, which is a heavy workload and difficult to achieve better results. The assimilation method, a combination of variational principle and optimal cybernetics, has been used increasingly in optimizing the initial field of the model, parameter estimation, external forced field and so on.

SUMMARY

The objective of the present application is to provide a nonlinear optimization method for parameters of ocean ecological dynamics model, so as to solve the problems existing in the prior art.

In order to achieve the above objective, the present application provides a nonlinear optimization method for parameters of ocean ecological dynamics model, including:

acquiring a state variable set and a parameter set to be optimized; building an ocean ecological dynamics model; acquiring a final cost function equation group; solving the ocean ecological dynamics model to obtain numerical solutions of each state variable in the state variable set; acquiring a Hamilton function of the cost function equation group under a constraint condition, and acquiring an adjoint equation based on the Hamilton function; adjusting the parameter set to be optimized based on the adjoint equation to obtain an optimal parameter set.

Optionally, the state variable set includes initial values of phytoplankton, zooplankton, soluble inorganic nitrogen, soluble inorganic phosphorus and organic debris.

Optionally, building an initial cost function equation group based on the state variable set, a number of the state variables, a spatial interpolation function of observed values of each state variable in the state variable set in a given time interval, and an upper limit and a lower limit of the given time interval, and simplifying the initial cost function equation group into an equivalent form to obtain the final cost function equation group.

Optionally, solving the numerical solutions of each state variable based on the parameter set to be optimized, and adopting the Runge Kutta method in the process, in which the parameter set to be optimized is updated after each optimization, and the numerical solution of each state variable is solved based on the updated parameter set to be optimized.

Optionally, the adjoint equation process also includes: obtaining the Hamilton function based on a vector composed of the state variables and a vector composed of adjoint variables, obtaining a Hamilton canonical equation based on the Hamilton function, and adding boundary conditions to the Hamilton canonical equation to obtain the adjoint equation.

Optionally, a process of obtaining the optimal parameter set includes: obtaining a descending gradient of each parameter in the parameter set to be optimized based on Hamilton function, normalizing the descending gradient based on the cost function equation group, adjusting the parameter set to be optimized based on a steepest descent method, and performing cyclic iteration until a iterative parameter is less than a preset value to obtain the optimal parameter set.

Optionally, a method of adjusting the parameter set to be optimized is as follows: C−δ∇J=C′, where δ is step size, ∇J is the vector composed of the descending gradient of each parameter, C is an original parameter, and C′ is an adjusted parameter; the step size is determined according to an optimization accuracy.

Optionally, the initial values of state variables set in the ocean ecological dynamics model are obtained through measured data in a study area.

The application has the following technical effects:

The method aims at improving the accuracy of the ocean ecological dynamics model by determining the optimization objective, selecting the optimization method, and finally giving the optimized parameter set, so that the simulation accuracy is improved and the error is reduced; all model parameters may still be screened under the condition that the measured data magnitude of different state variables changes greatly, so that the average value of the absolute value of the relative error of each state variable is small; and all model parameters may still be screened under the condition that the measured data magnitude of different state variables changes greatly, so that the error of the model is reduced and the simulation accuracy and model applicability are improved.

BRIEF DESCRIPTION OF THE DRAWING

The drawings that form a part of this application are used to provide a further understanding of this application. The illustrative embodiments of this application and their descriptions are used to explain this application, and do not constitute undue limitations on this application.

FIG. 1 is a flow chart of an embodiment of the present application.

DETAILED DESCRIPTION OF THE EMBODIMENTS

It should be noted that the embodiments in this application and the features in the embodiments may be combined with each other without conflict. The application will be described in detail with reference to the drawings and embodiments.

It should be noted that the steps shown in the flowchart of the figure may be executed in a computer system such as a set of computer-executable instructions, and although a logical sequence is shown in the flowchart, in some cases, the steps shown or described may be executed in a sequence different from the sequence here.

Embodiment 1

As shown in FIG. 1, this embodiment provides a nonlinear optimization method for parameters of ocean ecological dynamics model, including:

Ecological Dynamics Model and Parameters

{ d P d t = f 1 ( U m , K n , K P , G m , λ , P c , N c , I 0 , Q 1 , Q 2 , M P , P , Z , DIN , D I P , t ) d Z d t = f 2 ( γ , G m , λ , M Z , P c , N c , I 0 , Q 1 , Q 2 , P , Z , t ) dDIN d t = f 3 ( U m , K n , K P , G m , λ , θ , e , P c , N c , I 0 , Q 1 , Q 2 , P , Z , D , t ) dDIP d t = f 4 ( U m , K n , K P , G m , λ , θ , e , P c , N c , I 0 , Q 1 , Q 2 , P , Z , D , t ) d D d t = f 5 ( γ , θ , G m , λ , e , M P , M Z , P c , P , Z , t ) , ( 1 )

where (P, Z, DIN, DIP, D)=(Y1, Y2, Y3, Y4) is the state variables (phytoplankton, zooplankton, soluble inorganic nitrogen, soluble inorganic phosphorus, organic debris), t represents time, [Um, kn, kp, Gm, λ, γ, θ, I0, Q1, Q2, Mp, Mz, e, Nc, Pc] is the parameter set to be optimized, and each parameter expression of the parameter set [maximum nutrient salt injection rate of phytoplankton, semi-saturation coefficient of phytoplankton absorbing DIN, semi-saturation coefficient of DIP absorption by phytoplankton, maximum feeding rate of phytoplankton, Ivlev intake constant, zooplankton growth and absorption, zooplankton excretion coefficient, average sea surface light intensity, growth temperature dependence coefficient, ingestion temperature dependence coefficient, phytoplankton mortality rate, zooplankton mortality rate, debris remineralization rate, phytoplankton nitrogen-carbon ratio, phytoplankton phosphorus-carbon ratio]. The initial values of the model variables are assigned according to the observation data of the study sea area.

The initial values of model variables are generated by moving average of monthly observation data of a bay from January 2003 to January 2004, and the moving average step is March. After moving, the average initial values of phytoplankton, zooplankton, DIN, DIP and organic debris are 11.4919, 0.2670, 7.7479, 0.2212 and 21.7202 respectively (the units are all converted into umol/L), and the forced initial values of light intensity and temperature are 84/m2 and 7.1° C.

Adjoint Method

Optimization Objective

Determine the reasonable parameter set to minimize the value of the following cost function:

1 m · ( T - t 0 ) Y min t 0 T i = 1 m ( Y i - O b s i O b s i ) 2 d t , ( 2 ) s . t . { d Y i d t = f i Y i ( t 0 ) = Y i 0

where Obsi is the spatial interpolation function of the observed value of the i-th state variable in the interval [to, T]. Yi represents each state variable in the ecological dynamics model. The unit of t is day (d). m is the number of state variables.

This method eliminates the difference of dimensions of different state variables, and may still screen the model parameters even when the magnitude of measured data of different state variables changes greatly, so that the solutions obtained by each parameter is closer to the measured data, the average value of the absolute value of the relative error is small, which may well reflect the actual situation.

Steps to Optimize the Parameters of Differential Equations by Adjoint Method

Simplify the Original Problem

Let the original ecological dynamics model be:

{ d P d t = f 1 d Z d t = f 2 d D I N d t = f 3 d D I P d t = f 4 d D d t = f 5 , ( 3 )

in order to facilitate the derivation operation later, the original programming problem (2) is simplified to the equivalent form as follows:

1 m · ( T - t 0 ) Y min 1 T t 0 T i = 1 m ( Y i - O b s i O b s i ) 2 d t , ( 4 ) s . t . { d Y i d t = f i Y i ( t 0 ) = Y i 0

Solving Differential Equations (Groups)

According to the default parameter set (the default parameter is adopted for the first time and updated after each optimization), the numerical solution of Y is calculated by the Runge Kutta method.

Adjust parameter direction to obtain Hamilton function of the original equation with constraints.

For the programming problem (4), Hamilton function is as follows:

H ( Y , λ ) = i = 1 m [ 1 m · ( T - t 0 ) · ( Y i - Obs i Obs i ) 2 + λ i · f i ] , ( 5 )

where {right arrow over (Y)}=(Y1,Y2, . . . , Ym)=(P,Z,DIN,DIP,D) is a vector composed of state variables and {right arrow over (λ)}=(λ12, . . . , λm) is a vector composed of adjoint variables.

Solving the Adjoint Equation

The solution of adjoint equation depends on Hamilton gauge equation in variational principle;

H Y + d λ d t = 0 , ( 6 )

after adding boundary conditions, the adjoint equation may be obtained:

{ 2 m · ( T - t 0 ) · ( Y i - Obs i Obs i ) + λ i · f i Y i = 0 ( i = 1 , 2 , , m ) λ i ( T ) = 0 , ( 7 )

Parameter Adjusting Direction

According to the conditions for multivariate functions to obtain extreme values, when

{ H p i = 0

(i=1, 2, . . . , 24, pi, pi represents the i-th parameter, the parameters are arranged in the order of [Um kn kp Gm λ γ θ I0 Q1 Q2 Mp Mz e Nc Pc], and H is Hamilton function), the function obtains extreme values.

Therefore,

p i J = J p i = - t 0 T λ i · f i d t p i = - t 0 T λ i · f i p i dt , ( 8 )

If ∥J∥<ε, the iteration is terminated (ε is the iteration termination parameter given in advance).

Parameter Adjustment

    • (1) Parameter Normalization

The obtained cost function normalizes the gradient ∇piJ of each parameter pi, that is:

p i J p i J J , ( 9 )

where, ∇J is the vector composed of ∇piJ, namely ∇J=[∇piJ].

    • (2) Parameter Adjustment
      According to the principle of the steepest descent method, the parameters of the original equation are readjusted so that


[pi]=C⇐C−δ∇J  (10)

where δ are the step size, and then the numerical solution of the state variables of the ecological dynamics model is re-solved. Determine the adjustment coefficient according to the accuracy requirement (for example, the step size may be 10-3 or other value).

In this way, after many times of parameter adjustment, the values of the simulated state variables are constantly close to the real data, and finally a satisfactory result is achieved.

It should be noted that the parameter optimization of this method is only to improve the simulation accuracy, but after optimization, some parameters may have lost the true ecological significance. At this time, the parameter may also be set in the value range or not participate in the optimization.

Due to the nonlinear relationship among the state variables, the parameter optimization of ocean ecological dynamics model is a very complicated problem, especially the optimization of numerical methods is aimed at minimizing the cost function. In fact, the selection of parameters is limited by the actual value range, and some parameter sets that minimize the cost function may have no practical significance. Therefore, the problem of parameter optimization involves multi-disciplinary knowledge. As a suggestion, the following parameter optimization scheme is proposed:

    • (1) try to use the measured data or experimental results data, focusing on the optimization of parameters that have not been measured;
    • (2) because the model is only an approximate description of the ecological dynamics mechanism, the accuracy of the model depends on the initial values of parameters, the initial values of state variables and the model itself

In this model, the initial values of model state variables are measured data in the study area, and the cost function is also constructed based on the observed values. However, the error of the predicted value is closely related to the model assumption. For example, the supplement of exogenous nutrients and the foreign exchange in the bay are not considered in the model, which is idealized in practice. Therefore, as an approximate expression of the ecological dynamic process of the bay, it is inevitable that there will be some errors when the measured data is used as a test sample.

The adjoint assimilation method is adopted in the embodiment, the cost function is reduced from 0.4085 to 0.0304, the global average error is reduced from 63.91% to 17.42%, and the average sampling error is reduced from 37.45% to 10.88%, which shows that adjoint method is very effective in model parameter optimization.

The above are only the preferred embodiments of this application, but the scope of protection of this application is not limited to this. Any changes or substitutions that may be easily thought of by those skilled in the technical field within the technical scope disclosed in this application should fall in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.

Claims

1. A nonlinear optimization method for parameters of an ocean ecological dynamics model implemented in a computer system using a set of computer-executable instructions; comprising:

S1, acquiring a state variable set comprises comprising a plurality of state variables and a parameter set to be optimized; S2, building the ocean ecological dynamics model; S3, acquiring a final cost function equation group; S4, solving the ocean ecological dynamics model to obtain numerical solutions of each state variable in the state variable set; S5, acquiring a Hamilton function of a cost function equation group under a constraint condition, and acquiring an adjoint equation based on the Hamilton function; and S6 adjusting the parameter set to be optimized based on the adjoint equation to obtain an optimal parameter set; wherein:
an initial cost function equation group is built based on the state variable set, the state variables, a spatial interpolation function of observed values of each state variable in the state variable set in a given time interval, and an upper limit and a lower limit of the given time interval, and the initial cost function equation group is simplified into an equivalent form to obtain the final cost function equation group;
the numerical solutions of each state variable are solved based on the parameter set to be optimized using a Runge Kutta method; the parameter set to be optimized is updated after each optimization, and the numerical solutions of each state variable is solved based on the updated parameter set to be optimized;
acquiring the adjoint equation also comprises: obtaining the Hamilton function based on a vector composed of the state variables and a vector composed of adjoint variables, obtaining a Hamilton canonical equation based on the Hamilton function, and adding boundary conditions to the Hamilton canonical equation to obtain the adjoint equation;
a process of obtaining the optimal parameter set comprises: obtaining a descending gradient of each parameter in the parameter set to be optimized based on the Hamilton function, normalizing the descending gradient based on the cost function equation group, adjusting the parameter set to be optimized based on a steepest descent method, and performing cyclic iteration until an iterative parameter is less than a preset value to obtain the optimal parameter set; and
a method of adjusting the parameter set to be optimized is as follows: C−δ∇J=C′, wherein δ is step size, ∇J is a vector composed of the descending gradient of each parameter, C is an original parameter, C′ is an adjusted parameter, and the step size is determined according to an optimization accuracy.

2. The nonlinear optimization method for parameters of an ocean ecological dynamics model according to claim 1, wherein the state variable set comprises initial values of phytoplankton, zooplankton, soluble inorganic nitrogen, soluble inorganic phosphorus and organic debris.

3. (Currently Cancelled) The nonlinear optimization method for parameters of an ocean ecological dynamics model according to claim 1, wherein initial values of the state variables in the state variable set in the ocean ecological dynamics model are obtained through measured data in a study area.

Patent History
Publication number: 20240070222
Type: Application
Filed: Nov 23, 2022
Publication Date: Feb 29, 2024
Inventors: Honghua SHI (Qingdao), Long HU (Qingdao), Wei ZHENG (Qingdao), Tao XIA (Qingdao), Yongzhi WANG (Qingdao), Liting YIN (Qingdao), Yadong SUI (Qingdao)
Application Number: 17/993,023
Classifications
International Classification: G06F 17/13 (20060101); G01V 99/00 (20060101);