In this paper, with the aid of symbolic computation system Python and based on the deep neural network (DNN), automatic differentiation (AD), and limited-memory Broyden-Fletcher-Goldfarb-Shanno (L-BFGS) optimization algorithms, we discussed the modified Korteweg-de Vries (mkdv) equation to obtain numerical solutions. From the predicted solution and the expected solution, the resulting prediction error reaches . The method that we used in this paper had demonstrated the powerful mathematical and physical ability of deep learning to flexibly simulate the physical dynamic state represented by differential equations and also opens the way for us to understand more physical phenomena later.
The nonlinear Schrödinger equation is a classic integrable equation, especially plays an important role in nonlinear optics. Therefore, a large number of scholars have studied the solution of this equation and proposed many effective solutions, such as Hirota Bilinear transformation method, Darboux transformation, neural network, and so on. This paper obtain numerical solutions by improving physics-informed neural network (IPINN) method which embeds the physical law, an adaptive activation function and slope recovery term into a traditional neural network. This method can simulate the soliton solution and the rogue wave solution of the nonlinear Schrödinger equation with very little data. The Adam and L-BFGS optimizer are used to optimize network parameters to minimize the loss function. The dynamic behavior of soliton and rogue wave solution of the third-order nonlinear Schrödinger equation is first revealed by using the IPINN method, and the errors obtained by this method are compared with the PINN method. Numerical experiments indicate that this method has better numerical results than the PINN method, which opens up a new way to simulate other physical problems by using the IPINN method.