Partial differential algebraic equation solving method and system based on physical information neural network
Through the method based on physical information neural network, the problems of low resolution accuracy and slow calculation efficiency of partial differential algebraic equations are solved, and efficient partial differential algebraic equation solutions are realized, which are suitable for multiple engineering and scientific research fields.
Patent Information
- Application Number
- CN202411043108.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-31
- Publication Date
- 2024-11-29
AI Technical Summary
The prior art has low accuracy and slow calculation efficiency when solving partial differential algebraic equations, especially when using artificial neural networks, it is difficult to effectively solve the problem of partial differential algebraic equations.
Using a method based on physical information neural network, the partial differential algebra equation is preprocessed, region decomposition and division, loss function and adaptive learning rate iterative training, the training data is generated and the loss function is minimized, and the partial solution is finally solved in the order of partitioning. Differential algebraic equations.
It improves the solution accuracy and calculation efficiency of partial differential algebraic equations, and can be widely used in fields such as multi-body mechanics, spacecraft control, incompressible fluid dynamics, nanoelectronics and mechanical systems, with high practical value and economic benefits.
Smart Images

Figure CN119046592A_ABST
Abstract
Description
Technical Field
[0001] This document relates to the field of artificial intelligence technology, and in particular to a method and system for solving partial differential algebraic equations based on physical information neural networks. Background Art
[0002] Solving partial differential algebraic equations has always been a difficult problem in the field of numerical computing. The numerical calculation methods of partial differential algebraic equations are complex and the solution accuracy is low. In recent years, physical information neural networks have achieved remarkable results in solving partial differential equations and differential algebraic equations. Partial differential algebraic equations are closely related to partial differential equations and differential algebraic equations. However, there is still a blank in the research on using physical information neural networks to solve partial differential algebraic equations. Summary of the invention
[0003] One or more embodiments of this specification provide a method for solving partial differential algebraic equations based on a physical information neural network, including:
[0004] S1. Preprocessing of partial differential algebraic equations;
[0005] S2. Adopt the regional decomposition and partitioning scheme to construct the physical information neural network model of partial differential algebraic equations;
[0006] S3. Construct loss function based on the physical information of partial differential algebraic equations;
[0007] S4. Setting training parameters, generating training data, and iteratively training the PDE physical information neural network model using an adaptive learning rate algorithm;
[0008] S5. Use the trained PDE physics information neural network to solve the PDE in the order of divided regions.
[0009] Furthermore, the specific method for preprocessing the partial differential algebraic equation is:
[0010] The form is as follows:
[0011] AU t (t,x)+BU xx (t,x)+CU x (t,x)+DU(t,x)=F(t,x);
[0012] The initial condition is U(0,x)=U0 and the boundary condition is U(t,a)=U b ,U(t,b)=U b The partial differential algebraic equations of are decomposed into differential equations:
[0013]
[0014] And the algebraic equation:
[0015]
[0016] Furthermore, the specific method of adopting the regional decomposition partitioning scheme to construct the physical information neural network model of partial differential algebraic equations is:
[0017] A single-output fully connected feedforward neural network with adjustable parameters is constructed, and each function to be solved of the partial differential algebraic equation is assigned a fully connected feedforward neural network connected in parallel to obtain a parallel neural network;
[0018] According to the scope of the definition domain, regular or irregular regional decomposition is performed, and each function to be solved in each sub-region is individually assigned a fully connected feedforward neural network, and the fully connected feedforward neural networks assigned to each function to be solved are connected in parallel with each other;
[0019] All parallel fully connected feedforward neural networks in each sub-region are connected in series to obtain an overall partial differential algebraic equation physical information neural network model.
[0020] Furthermore, the loss function includes five loss terms: initial condition, boundary condition, interface condition, differential and algebra;
[0021] The specific method of constructing the loss function according to the physical information of the partial differential algebraic equation is:
[0022] According to the physical information of partial differential algebraic equations, construct the qth th The loss function of the partial differential algebraic equation neural network in the sub-region is as follows:
[0023]
[0024] in, Represents the weight of the initial condition loss function; Represents the weight of the boundary condition loss function; Represents the weight of the loss function of the differential equation part of the partial differential algebraic equation; Represents the weight of the loss function of the algebraic equation part of the partial differential algebraic equation; Represents the weight of the interface condition loss function;
[0025] The q th The sub-region loss functions are concatenated to obtain the total loss function as shown below:
[0026]
[0027] Where N 子域 L is the number of sub-regions divided into the domain; iis the loss function of the ith sub-region.
[0028] Furthermore, the setting of training parameters includes:
[0029] According to the divided sub-areas, the number of layers and the number of neurons of the fully connected feedforward neural network are set respectively; the activation function of each fully connected feedforward neural network is set; the initialization method used for the weight bias parameters in each neural network is set; and the optimizer is set to minimize the loss function.
[0030] Furthermore, the specific method of generating training data and iteratively training the partial differential algebraic equation physical information neural network model using an adaptive learning rate algorithm is as follows:
[0031] Generate an initial sample data set, a boundary sample data set and an interface sample data set in each sub-region, evenly sample points in the sub-region, generate a differential part residual point set and an algebraic part residual point set, and combine the initial sample data set, the boundary sample data set, the interface sample data set, the differential part residual point set and the algebraic part residual point set to form training data. Generally, the differential part residual point set and the algebraic part residual point set are the same;
[0032] According to the training data, the gradient descent algorithm is used to minimize the loss function to iteratively train the partial differential algebraic equation physical information neural network model.
[0033] Furthermore, the specific method of using the trained partial differential algebraic equation physical information neural network to solve the partial differential algebraic equation in the order of divided regions is:
[0034] Use the trained neural network model to solve partial differential algebraic equations: Input the variable values of the partial differential algebraic equations into the trained neural network model to obtain the solutions of the corresponding partial differential algebraic equations;
[0035] In the process of outputting the prediction approximate solution, variable values are uniformly taken within the definition domain of each sub-region, and are input into the trained neural network model of the corresponding sub-region as the variable values of the partial differential algebraic equation to obtain the solution of the partial differential algebraic equation of the corresponding sub-region;
[0036] After completing this operation in each sub-region, the solutions of the partial differential algebraic equation corresponding to each sub-region are connected according to the way the sub-regions are divided, and the approximate solutions of the partial differential algebraic equation in the original definition domain are obtained;
[0037] The trained partial differential algebraic equation physical information neural network model is tested and optimized. Specifically, the training results are compared with the exact solution set of the partial differential algebraic equation, and the trained partial differential algebraic equation physical information neural network model is tested and optimized through error comparison analysis.
[0038] One or more embodiments of this specification provide a partial differential algebraic equation solving system based on physical information neural network, including:
[0039] Preprocessing module: used to preprocess partial differential algebraic equations;
[0040] A model building module is used to build a physical information neural network model of partial differential algebraic equations using a regional decomposition partitioning scheme;
[0041] Loss function construction module: used to construct the loss function based on the physical information of partial differential algebraic equations;
[0042] Model training module, used to set training parameters, generate training data, and iteratively train the partial differential algebraic equation physical information neural network model using an adaptive learning rate algorithm;
[0043] Equation solving module: used to solve partial differential algebraic equations in the order of divided regions using the trained partial differential algebraic equation physical information neural network.
[0044] One or more embodiments of the present specification provide an electronic device, comprising: a processor; and a memory arranged to store computer-executable instructions, wherein when the computer-executable instructions are executed, the processor implements the steps of the above-mentioned method for solving partial differential algebraic equations based on physical information neural network.
[0045] One or more embodiments of the present specification provide a storage medium for storing computer-executable instructions, which, when executed, implement the steps of the above-mentioned method for solving partial differential algebraic equations based on physical information neural network.
[0046] The embodiment of the present invention can effectively solve the problems of low precision and slow calculation efficiency of existing artificial neural networks in solving partial differential algebraic equations, and can be widely used in various partial differential algebraic equation solving problems, including multi-body mechanics, spacecraft control and incompressible fluid dynamics, nanoelectronics, power grids and mechanical systems. The technology proposed by the present invention is conducive to solving partial differential algebraic equation solving problems in scientific research and engineering practice, and has high practical value and economic benefits.
[0047] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] In order to more clearly illustrate one or more embodiments of this specification or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0049] Figure 1 A flowchart of a method for solving partial differential algebraic equations based on a physical information neural network provided for one or more embodiments of this specification;
[0050] Figure 2 A schematic diagram of a regional decomposition of a method for solving partial differential algebraic equations based on a physical information neural network provided in one or more embodiments of this specification;
[0051] Figure 3 A schematic diagram of a neural network structure of each subdomain of a method for solving partial differential algebraic equations based on a physical information neural network provided in one or more embodiments of this specification;
[0052] Figure 4 A schematic diagram of the composition of a partial differential algebraic equation solving system based on a physical information neural network provided for one or more embodiments of this specification;
[0053] Figure 5 A schematic diagram of the structure of an electronic device provided for one or more embodiments of this specification.
[0054] Figure 6 It is a structural schematic diagram of the regional division of the partial differential algebraic equation embodiment in the embodiment case 1;
[0055] Figure 7 It is a schematic diagram of the exact solution of the experimental results of the partial differential algebraic equation embodiment U1 in the embodiment case 1;
[0056] Figure 8 It is a schematic diagram of the approximate solution of the experimental results of the partial differential algebraic equation embodiment U1 in the embodiment case 1;
[0057] Fig. 9 It is a schematic diagram of the exact solution of the experimental results of the partial differential algebraic equation embodiment U2 in the embodiment case 1;
[0058] Fig.10 It is a schematic diagram of the approximate solution of the experimental results of the partial differential algebraic equation embodiment U2 in the embodiment case 1;
[0059] Fig.11 It is a schematic diagram of the absolute error of the approximate solution of the experimental results of the partial differential algebraic equation embodiment in Example 1 of the embodiment;
[0060] Fig.12 It is a schematic diagram of the absolute error of the exact solution of the experimental results of the partial differential algebraic equation embodiment in Example 1 of the embodiment;
[0061] Fig.13 It is a structural schematic diagram of the regional division of the partial differential algebraic equation embodiment in the second embodiment;
[0062] Fig.14 It is a schematic diagram of the exact solution of the experimental results of the partial differential algebraic equation embodiment U1 in the embodiment case 2;
[0063] Fig.15 Schematic diagram of the approximate solution of the experimental results of the partial differential algebraic equation embodiment U1 in the embodiment case 2
[0064] Fig.16 It is a schematic diagram of the exact solution of the experimental results of the partial differential algebraic equation embodiment U2 in the embodiment case 2;
[0065] Fig.17 Schematic diagram of the approximate solution of the experimental results of the partial differential algebraic equation embodiment U2 in the embodiment case 2
[0066] Fig.18 It is a schematic diagram of the absolute error of the approximate solution of the experimental results of the partial differential algebraic equation embodiment in Example 2 of the embodiment;
[0067] Fig.19 Schematic diagram of the absolute error of the exact solution of the experimental results of the partial differential algebraic equation embodiment in Example 2. DETAILED DESCRIPTION
[0068] In order to enable those skilled in the art to better understand the technical solutions in one or more embodiments of this specification, the following will be combined with the drawings in one or more embodiments of this specification to clearly and completely describe the technical solutions in one or more embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on one or more embodiments of this specification, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this document.
[0069] Method Embodiment
[0070] According to an embodiment of the present invention, a method for solving partial differential algebraic equations based on a physical information neural network is provided. Figure 1 A flowchart of a method for solving partial differential algebraic equations based on a physical information neural network provided in one or more embodiments of this specification, such as Figure 1 As shown, the method for solving partial differential algebraic equations based on physical information neural network according to an embodiment of the present invention specifically includes:
[0071] S1. Preprocessing of partial differential algebraic equations.
[0072] The specific method for preprocessing the partial differential algebraic equation is:
[0073] The form is as follows:
[0074] AU t (t,x)+BU xx (t,x)+CU x (t,x)+DU(t,x)=F(t,x);
[0075] The initial condition is U(0,x)=U0 and the boundary condition is U(t,a)=U b ,U(t,b)=U b The partial differential algebraic equations of are decomposed into differential equations:
[0076]
[0077] And the algebraic equation:
[0078]
[0079] S2. Adopt the regional decomposition partitioning scheme to construct the physical information neural network model of partial differential algebraic equations.
[0080] like Figure 2 As shown in the figure, the specific method of constructing the physical information neural network model of partial differential algebraic equations by adopting the regional decomposition partitioning scheme is as follows:
[0081] A single-output fully connected feedforward neural network with adjustable parameters is constructed, and each function to be solved of the partial differential algebraic equation is assigned a fully connected feedforward neural network. The fully connected feedforward neural networks assigned to each function to be solved are connected in parallel to obtain multiple parallel neural networks.
[0082] According to the scope of the definition domain, regular or irregular regional decomposition is performed, and each function to be solved in each sub-region is individually assigned a fully connected feedforward neural network;
[0083] All parallel fully connected feedforward neural networks in each sub-region are connected in series to obtain a total partial differential algebraic equation physical information neural network model, such as Figure 3 shown.
[0084] S3. Construct loss function based on the physical information of partial differential algebraic equations.
[0085] The loss function includes five loss terms: initial condition, boundary condition, interface condition, differential and algebra;
[0086] The specific method of constructing the loss function according to the physical information of the partial differential algebraic equation is:
[0087] According to the physical information of partial differential algebraic equations, construct the qth th The loss function of the partial differential algebraic equation neural network in the sub-region is as follows:
[0088]
[0089] In the formula, by restricting the initial conditions, the neural network can find the solution, and the mean square error between the initial value of the neural network output and the known initial conditions is used as the neural network loss to construct a loss term that satisfies the initial conditions. The details are as follows:
[0090]
[0091] By restricting the boundary conditions, the neural network can find the solution, and the mean square error between the boundary values involved in the output of the neural network and the known boundary conditions is used as the neural network loss to construct a loss term that satisfies the boundary conditions. The details are as follows:
[0092]
[0093] Construct the loss function term through the differential part of the partial differential algebraic equation Minimizing the loss term satisfies the differential part of the partial differential algebraic equation, as shown below:
[0094]
[0095] Construct the loss function term through the algebraic part of the partial differential algebraic equation Minimizing the loss term satisfies the algebraic restrictions required by the partial differential algebraic equation, as shown below:
[0096]
[0097] By restricting the interface conditions, the neural network can obtain higher accuracy. The mean square error between the interface point values involved in the output of the neural network and the known interface conditions is used as the neural network loss to construct a loss term that satisfies the interface conditions. The details are as follows:
[0098]
[0099] In the formula, Represents q th The training data of the initial sample point of the subdomain i, N 初始 Represents q thThe number of initial sample points in the subdomain, Represents the weight of the initial condition loss function; Represents q th The training data of the i-th boundary sample point of the subdomain, N 边界 Represents q th The number of sample points at the subdomain boundary, Represents the weight of the boundary condition loss function; Represents q th The i-th residual point in the subdomain, N 微分 Represents q th The number of subdomain residual points, Represents the weight of the loss function of the differential equation part of the partial differential algebraic equation; Represents q th The i-th residual point in the subdomain, N 代数 Represents q th The number of subdomain residual points, Represents the weight of the loss function of the algebraic equation part of the partial differential algebraic equation; Represents q th The training data of the sample point of the ith interface in the subdomain, N 接口 Represents q th The number of interface sample points connecting the subdomain with other adjacent subdomains, Represents the weight of the interface condition loss function; is the square of the two-norm.
[0100] The q th The sub-region loss functions are concatenated to obtain the total loss function as shown below:
[0101]
[0102] Where N 子域 L is the number of sub-regions divided into the domain; i is the loss function of the ith sub-region.
[0103] S4. Set training parameters, generate training data, and use an adaptive learning rate algorithm to iteratively train the partial differential algebraic equation physical information neural network model.
[0104] Setting the training parameters includes:
[0105] According to the divided sub-areas, the number of layers and the number of neurons of the fully connected feedforward neural network are set respectively; the activation function of each fully connected feedforward neural network is set; the initialization method used for the weight bias parameters in each neural network is set; and the optimizer is set to minimize the loss function.
[0106] Generate training data and use the adaptive learning rate algorithm to iteratively train the partial differential algebraic equation physical information neural network model. The specific method is:
[0107] Generate an initial sample data set, a boundary sample data set and an interface sample data set in each sub-region, evenly sample points in the sub-region, generate a differential part residual point set and an algebraic part residual point set, and combine the initial sample data set, the boundary sample data set, the interface sample data set, the differential part residual point set and the algebraic part residual point set to form training data. Generally, the differential part residual point set and the algebraic part residual point set are the same;
[0108] According to the training data, the gradient descent algorithm is used to minimize the loss function to iteratively train the partial differential algebraic equation physical information neural network model.
[0109] S5. Use the trained PDE physics information neural network to solve the PDE in the order of divided regions.
[0110] The specific method of using the trained PDE physical information neural network to solve the PDE in the order of divided regions is as follows:
[0111] Use the trained neural network model to solve partial differential algebraic equations: Input the variable values of the partial differential algebraic equations into the trained neural network model to obtain the solutions of the corresponding partial differential algebraic equations;
[0112] In the process of outputting the prediction approximate solution, variable values are uniformly taken within the definition domain of each sub-region, and are input into the trained neural network model of the corresponding sub-region as the variable values of the partial differential algebraic equation to obtain the solution of the partial differential algebraic equation of the corresponding sub-region;
[0113] After completing this operation in each sub-region, the solutions of the partial differential algebraic equation corresponding to each sub-region are connected according to the way the sub-regions are divided, and the approximate solutions of the partial differential algebraic equation in the original domain are obtained.
[0114] Furthermore, the trained partial differential algebraic equation physical information neural network model is tested and optimized. Specifically, the training results are compared with the exact solution set of the partial differential algebraic equations, and the trained partial differential algebraic equation physical information neural network model is tested and optimized through error comparison analysis.
[0115] The following is a detailed description of this method through a specific case:
[0116] Case 1
[0117] For a PDE system of index 2:
[0118]
[0119] The domain of the equation is: x∈[0,π],t∈[0,1];
[0120] The initial conditions of the known equations are: U1(0,x)=sin(x), U2(0,x)=-4sin(x);
[0121] The boundary conditions of the equation are: U1(t,0)=U1(t,Π)=0,U2(t,0)=U2(t,Π)=0;
[0122] The right-hand side functions F1(t,x) and F2(t,x) are determined by the choice of the exact solution, which is: U1(t,x) = e -t sin(x),U2(t,x)=-4e -t sin(x).
[0123] In this embodiment, based on the tensorflow deep learning framework, the Python programming language is used to construct a partial differential algebraic equation neural network based on physical information neural network on the Pycharm integrated development environment.
[0124] Before the experiment, it is necessary to determine the division area of the partial differential algebraic equations to be solved using the physical information neural network partial differential algebraic equation neural network solution method, the number of neural networks to be allocated, the number of layers and neurons in each neural network. Three regions are divided according to t = [0.3, 0.6]. The division results are as follows Figure 5 As shown in the figure, each function to be solved in each subdomain is assigned a neural network. Each function to be solved is solved by three neural networks connected in series. A total of six neural networks are used to find the approximate solution of the partial differential algebraic equations in the domain.
[0125] After many experiments, the partial differential algebraic equation neural network in this embodiment uses the tan function as the activation function, with a depth of 5 layers and 50 neurons in each layer, which can achieve a good prediction effect. 1q ,W 2q ,W 3q ,W 4q ,W 5q The values are 10, 10, 1, 1, 10 respectively.
[0126] In this embodiment, the number of residual points in subdomain 1 is 4770, and the number of sample data points of initial conditions and boundary conditions is 219; the number of residual points in subdomain 2 is 4770, and the number of sample points of initial conditions and boundary conditions is 60; the number of residual points in subdomain 3 is 6360, and the number of sample points of initial conditions and boundary conditions is 80.
[0127] In the training process of this embodiment, the Glorot normal initialization method is used to initialize the weight and bias parameters of the neural network. Set α = 10 -3 The initial learning rate is set to , and the learning rate is gradually reduced. The training is performed with the Adam optimizer and the initial learning rate. The training process is accelerated by GPU, and the gradient descent algorithm is used to minimize the loss function.
[0128] The PDE neural network based on physical information neural network has been trained to solve the PDE system with index 2. The experimental results are shown in Figure 6 and 7 As shown in the figure, we can see the comparison between the real values of U1 and U2 and the predicted values of the partial differential algebraic equation neural network solution method based on physical information neural network. Figure 8 It can be seen that most of the point errors of U1 are within 10 -4 The accuracy is within 10, while the point errors of U2 are mostly concentrated in 10 -4 Less than 10 -3 Within.
[0129] Case 2
[0130] For a PDE system of index 2:
[0131]
[0132] The domain of the equation is: x∈[-1,1], t∈[0,1];
[0133] The initial condition of the equation is: U1(0,x)=x 5 (x 2 -1),U2(0,x)=x 2 (x 2 -1);
[0134] The boundary conditions of the equation are: U1(t,-1)=U1(t,1)=0,U2(t,-1)=U2(t,1)=0;
[0135] The right-hand side functions F1(t,x) and F2(t,x) are determined by the choice of the exact solution, which is: U1(t,x) = x 5 (x 2 -1)cos(πt),U2(t,x)=x 2 (x 2 -1)e -t .
[0136] In this embodiment, based on the tensorflow deep learning framework, the Python programming language is used to construct a partial differential algebraic equation neural network based on physical information neural network on the Pycharm integrated development environment.
[0137] Before the experiment, it is necessary to determine the division area of the partial differential algebraic equations to be solved using the physical information neural network-based partial differential algebraic equation neural network solution method, the number of neural networks to be allocated, the number of layers and neurons in each neural network. Ten regions are evenly divided according to t = [0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]. The division results are as follows: Fig. 9 As shown in the figure, each function to be solved in each subdomain is assigned a neural network. Each function to be solved is solved by 10 neural networks connected in series. A total of 20 neural networks are used to find the approximate solution of the partial differential algebraic equations in the domain.
[0138] After many experiments, the partial differential algebraic equation neural network in this embodiment uses the tan function as the activation function, with a depth of 5 layers and 50 neurons in each layer, which can achieve a good prediction effect. 1q ,W 2q ,W 3q ,W 4q ,W 5q The values are 10, 10, 1, 1, 10 respectively.
[0139] In this embodiment, the total number of initial condition sample points is 128, and the total number of boundary condition sample points is 102; the number of residual points in each subdomain is 768, and the number of sample points in each subdomain interface is 102.
[0140] In the training process of this embodiment, the Glorot normal initialization method is used to initialize the weight and bias parameters of the neural network. Set α = 10 -3 The initial learning rate is set to , and the learning rate is gradually reduced. The training is performed with the Adam optimizer and the initial learning rate. The training process is accelerated by GPU, and the gradient descent algorithm is used to minimize the loss function.
[0141] The PDE neural network based on physical information neural network has been trained to solve the PDE system with index 2. The experimental results are shown in Fig.10 and 11 As shown in the figure, we can see the comparison between the real values of U1 and U2 and the predicted values of the partial differential algebraic equation neural network solution method based on physical information neural network. Fig.12 It can be seen that most of the point errors of U1 are within 10 -4The accuracy is within 10. -4 Within.
[0142] The beneficial effects of the present invention are as follows:
[0143] The present invention can effectively solve the problems of low precision and slow computational efficiency of existing artificial neural networks in solving partial differential algebraic equations, and can be widely used in various partial differential algebraic equation solving problems, including multi-body mechanics, spacecraft control and incompressible fluid dynamics, nanoelectronics, power grids and mechanical systems. The partial differential algebraic equation solving method based on physical information neural network proposed in the present invention is conducive to solving partial differential algebraic equation solving problems in scientific research and engineering practice, and has high practical value and economic benefits.
[0144] System Example
[0145] According to an embodiment of the present invention, a partial differential algebraic equation solving system based on physical information neural network is provided. Figure 4 A schematic diagram of a partial differential algebraic equation solving system based on a physical information neural network provided in one or more embodiments of this specification, such as Figure 4 As shown, the partial differential algebraic equation solving system based on physical information neural network according to an embodiment of the present invention specifically includes:
[0146] Preprocessing module 40: used for preprocessing the partial differential algebraic equation;
[0147] A model building module 42 is used to build a partial differential algebraic equation physical information neural network model by adopting a regional decomposition partitioning scheme;
[0148] A loss function construction module 44: used for constructing a loss function according to physical information of a partial differential algebraic equation;
[0149] The model training module 46 is used to set training parameters, generate training data, and iteratively train the partial differential algebraic equation physical information neural network model using an adaptive learning rate algorithm;
[0150] The equation solving module 48 is used to solve the partial differential algebraic equation in the order of divided regions using the trained partial differential algebraic equation physical information neural network.
[0151] The embodiment of the present invention is a system embodiment corresponding to the above-mentioned method embodiment. The specific operations of each module can be understood by referring to the description of the method embodiment, which will not be repeated here.
[0152] Device Example 1
[0153] An embodiment of the present invention provides an electronic device, such as Figure 5As shown, it includes: a memory 50, a processor 52, and a computer program stored in the memory 50 and executable on the processor 52. When the computer program is executed by the processor 52, the following method steps are implemented:
[0154] S1. Preprocessing of partial differential algebraic equations;
[0155] S2. Adopt the regional decomposition and partitioning scheme to construct the physical information neural network model of partial differential algebraic equations;
[0156] S3. Construct loss function based on the physical information of partial differential algebraic equations;
[0157] S4. Setting training parameters, generating training data, and iteratively training the PDE physical information neural network model using an adaptive learning rate algorithm;
[0158] S5. Use the trained PDE physics information neural network to solve the PDE in the order of divided regions.
[0159] Device Example 2
[0160] An embodiment of the present invention provides a computer-readable storage medium, on which a program for implementing information transmission is stored. When the program is executed by the processor 52, the following method steps are implemented:
[0161] S1. Preprocessing of partial differential algebraic equations;
[0162] S2. Adopt the regional decomposition and partitioning scheme to construct the physical information neural network model of partial differential algebraic equations;
[0163] S3. Construct loss function based on the physical information of partial differential algebraic equations;
[0164] S4. Setting training parameters, generating training data, and iteratively training the PDE physical information neural network model using an adaptive learning rate algorithm;
[0165] S5. Use the trained PDE physics information neural network to solve the PDE in the order of divided regions.
[0166] The computer-readable storage medium in this embodiment includes, but is not limited to, ROM, RAM, magnetic disk or optical disk, etc.
[0167] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for solving partial differential algebraic equations based on physical information neural network, characterized in that: include: S1. Preprocessing of partial differential algebraic equations; S2. Adopt the regional decomposition and partitioning scheme to construct the physical information neural network model of partial differential algebraic equations; S3. Construct loss function based on the physical information of partial differential algebraic equations; S4. Setting training parameters, generating training data, and iteratively training the PDE physical information neural network model using an adaptive learning rate algorithm; S5. Use the trained PDE physics information neural network to solve the PDE in the order of divided regions.
2. The method according to claim 1, characterized in that The specific method for preprocessing the partial differential algebraic equation is: The form is as follows: AT t (t,x)+BU xx (t,x)+CU x (t,x)+DU(t,x)=F(t,x); The initial condition is U(0,x)=U0 and the boundary condition is U(t,a)=U b ,U(t,b)=U b The partial differential algebraic equations of are decomposed into differential equations: And the algebraic equation:
3. The method according to claim 1, characterized in that: The specific method of adopting the regional decomposition and partitioning scheme to construct the physical information neural network model of partial differential algebraic equations is as follows: A single-output fully connected feedforward neural network with adjustable parameters is constructed, and each function to be solved of the partial differential algebraic equation is assigned a fully connected feedforward neural network connected in parallel to obtain a parallel neural network; According to the scope of the definition domain, regular or irregular regional decomposition is performed, and each function to be solved in each sub-region is individually assigned a fully connected feedforward neural network, and the fully connected feedforward neural networks assigned to each function to be solved are connected in parallel with each other; All parallel fully connected feedforward neural networks in each sub-region are connected in series to obtain an overall partial differential algebraic equation physical information neural network model.
4. The method according to claim 1, characterized in that: The loss function includes five loss terms: initial condition, boundary condition, interface condition, differential and algebra; The specific method of constructing the loss function according to the physical information of the partial differential algebraic equation is: According to the physical information of partial differential algebraic equations, construct the qth th The loss function of the partial differential algebraic equation neural network in the sub-region is as follows: in, Represents the weight of the initial condition loss function; Represents the weight of the boundary condition loss function; Represents the weight of the loss function of the differential equation part of the partial differential algebraic equation; Represents the weight of the loss function of the algebraic equation part of the partial differential algebraic equation; Represents the weight of the interface condition loss function; The q th The sub-region loss functions are concatenated to obtain the total loss function as shown below: Where N 子域 L is the number of sub-regions divided into the domain; i is the loss function of the ith sub-region.
5. The method according to claim 3, characterized in that: The setting of training parameters includes: According to the divided sub-areas, the number of layers and the number of neurons of the fully connected feedforward neural network are set respectively; the activation function of each fully connected feedforward neural network is set; the initialization method used for the weight bias parameters in each neural network is set; and the optimizer is set to minimize the loss function.
6. The method according to claim 1, characterized in that The specific method of generating training data and iteratively training the partial differential algebraic equation physical information neural network model using an adaptive learning rate algorithm is as follows: Generate an initial sample data set, a boundary sample data set and an interface sample data set in each sub-region, evenly sample points in the sub-region, generate a differential part residual point set and an algebraic part residual point set, and combine the initial sample data set, the boundary sample data set, the interface sample data set, the differential part residual point set and the algebraic part residual point set to form training data. Generally, the differential part residual point set and the algebraic part residual point set are the same; According to the training data, the gradient descent algorithm is used to minimize the loss function to iteratively train the partial differential algebraic equation physical information neural network model.
7. The method according to claim 1, characterized in that The specific method of using the trained partial differential algebraic equation physical information neural network to solve the partial differential algebraic equation in the order of divided regions is: Use the trained neural network model to solve partial differential algebraic equations: Input the variable values of the partial differential algebraic equations into the trained neural network model to obtain the solutions of the corresponding partial differential algebraic equations; In the process of outputting the prediction approximate solution, variable values are uniformly taken within the definition domain of each sub-region, and are input into the trained neural network model of the corresponding sub-region as the variable values of the partial differential algebraic equation to obtain the solution of the partial differential algebraic equation of the corresponding sub-region; After completing this operation in each sub-region, the solutions of the partial differential algebraic equation corresponding to each sub-region are connected according to the way the sub-regions are divided, and the approximate solutions of the partial differential algebraic equation in the original definition domain are obtained; The trained partial differential algebraic equation physical information neural network model is tested and optimized. Specifically, the training results are compared with the exact solution set of the partial differential algebraic equation, and the trained partial differential algebraic equation physical information neural network model is tested and optimized through error comparison analysis.
8. A partial differential algebraic equation solving system based on physical information neural network, characterized in that: include: Preprocessing module: used to preprocess partial differential algebraic equations; A model building module is used to build a physical information neural network model of partial differential algebraic equations using a regional decomposition partitioning scheme; Loss function construction module: used to construct the loss function based on the physical information of partial differential algebraic equations; The model training module is used to set training parameters, generate training data, and iteratively train the partial differential algebraic equation physical information neural network model using an adaptive learning rate algorithm; Equation solving module: used to solve partial differential algebraic equations in the order of divided regions using the trained partial differential algebraic equation physical information neural network.
9. An electronic device, characterized in that: include: processor; And a memory arranged to store computer executable instructions, which, when executed, enable the processor to implement the steps of the partial differential algebraic equation solving method based on physical information neural network as described in any one of claims 1 to 7.
10. A storage medium, characterized in that: Used to store computer executable instructions, which, when executed, implement the steps of the method for solving partial differential algebraic equations based on physical information neural network as described in any one of claims 1 to 7.
Citation Information
Cited By
System response calculation method and system based on generalized physical information neural network
CN121581105A
System response calculation method and system based on generalizable physical information neural network
CN121581105B
