Implicit finite-difference schemes, based on the Rosenbrock method, for nonlinear Schrödinger equation with artificial boundary conditions

We investigate the effectiveness of using the Rosenbrock method for numerical solution of 1D nonlinear Schrödinger equation (or the set of equations) with artificial boundary conditions (ABCs). We compare the computer simulation results obtained during long time interval at using the finite-difference scheme based on the Rosenbrock method and at using the conservative finite-difference scheme. We show, that the finite-difference scheme based on the Rosenbrock method is conditionally conservative one. To combine the advantages of both numerical methods, we propose new implicit and conditionally conservative combined method based on using both the conservative finite-difference scheme and conditionally conservative Rosenbrock method and investigate its effectiveness. The combined method allows decreasing the computer simulation time in comparison with the corresponding computer simulation time at using the Rosenbrock method. In practice, the combined method is effective at computation during short time interval, which does not require an asymptotic stability property for the finite-difference scheme. We generalize also the combined method with ABCs for 2D case.


Introduction
As is well-known, wide physical phenomena (starting from laser radiation propagation in a nonlinear medium up to quantum mechanics problems and Bose-Einstein condensate (BEC)) are described by the nonlinear Schrödinger equation (or set of the equations). As a rule, its solution can be obtained based on the computer simulation using the finite-difference schemes. They can be conditionally divided on the three types. First, we should emphasize the conservative finite-difference schemes (CFDS) for the nonlinear Schrödinger equation. They were first proposed in [1], and then investigated, in detail, in papers [2][3][4][5] and other papers of these authors. These finite-difference schemes are nonlinear ones and, therefore, require an iterative process for their implementation, which leads to additional computation time costs. However, they possess the following evident advantages: the difference analogues of the problem invariants (conservation laws) are preserved. We keep in mind not only the energy conservation law (integral of motion) but also other invariants, in particular the Hamiltonian, which depends on the laser radiation phase. It is fundamental feature for the laser physics problem solution.
The second way of the finite-difference scheme construction for the problems under consideration is based on using the split-step method [6][7][8][9][10][11][12] (and many other papers), which artificially represent a nonlinear medium by alternating intervals with linear optical properties and with the nonlinear ones. This way does not allow us to construct the completely CFDS, which preserves all of the problem invariants. Usually, one can achieve only a preservation of the energy invariant difference analogue. However, using the iterative process on the stage of solving a nonlinear part of the Schrödinger equation [13][14][15], one can realize the conservation of the problem Hamiltonian with the first (or second) approximation order with respect to the spatial coordinate along which an optical pulse propagates. Another important disadvantage of this method is the asymptotic stability property absence. This property leads to the necessity of decreasing the spatial coordinate step significantly. The main evident advantage of the splitstep method is the absence of an iterative process and the computation is carried out by explicit finite-difference schemes.
The third numerical method for the nonlinear Schrödinger equation solution can be conditionally related to the Rosenbrock method [16], which is widely used for the various physical and chemical problems solution [17][18][19][20][21][22][23][24][25][26][27][28][29][30][31]. As it well-known, it is explicit method, which is obtained by linearizing an implicit finite-difference scheme with a weight 0.5 (Crank-Nikolson scheme). As a result, the computation method becomes two-stages with real or complex parameters. For the nonlinear Schrödinger equation solution, the finite-difference scheme, based on the Rosenbrock method with real coefficient, is the most effective because the solution accuracy in this case is higher, in comparison with the Rosenbrock method, at using the complex coefficient. In particular, this result follows from the computer simulation provided both for the single nonlinear Schrödinger equation or for a set of these equations. The effectiveness of using the Rosenbrock method for the Schrödinger equation set solution is analyzed in this paper also because this case wasn't widely discussed in the literature.
The main evident advantage of using the Rosenbrock method consists in its explicitness. However, this method is non-conservative one, to be more precise, it is conditionally conservative one with respect to some invariants (for example, to the problem Hamiltonian). This method does not also realize the asymptotic stability property of the finite-difference scheme.
Previously, a comparison of using the split-step method and the CFDS for the nonlinear Schrödinger equation solution or the set of these equations was performed in the literature in detail. This investigation is presented in particular in [14,15] and it was demonstrated the advantages of the CFDS. In [9] it is shown the significant changing (about unity) of the third invariant (the Hamiltonian) of the problem at computation on the base of the split-step method. However, these papers do not contain the detailed comparison between the finite-difference scheme based on the Rosenbrock method and the CFDS, developed for the nonlinear Schrödinger equation. This gap is partially filled up below.
In the past decade, development of the artificial boundary conditions (ABCs) is the direction for increasing the computer simulation effectiveness. With respect to the Schrödinger equation the ABCs were proposed, for example, in [3][4][5] [32][33][34][35][36][37][38][39]. As a rule, these boundary conditions (BCs) were realized for the finite-difference schemes based on the split-step method in contrast to the CFDS used by us. Thus, the realization of the finite-difference schemes based on the Rosenbrock method in combination with the ABCs is of interest. The effectiveness of this method is investigated detailed below.
One more important topic of this paper is the combined method, developed on the base of both CFDS and Rosenbrock method (see also [40]), with the aim of adding the advantages of the methods under consideration. We propose this method for the most actual problem, namely: the nonlinear Schrödinger equation solution with the ABCs. It should be stressed, this problem didn't consider in literature before.
This paper has the following structure. In paragraph 2 the nonlinear laser pulse propagation problem (or BEC evolution [41][42][43][44][45][46][47][48][49][50][51]) is stated for 1D case with zero-value BCs and the problem invariants (integrals of motions) are stated. We develop the finite-difference scheme based on the Rosenbrock method together with the Thomas algorithm for its solution. We show, that the finite-difference scheme, based on the Rosenbrock method with real coefficient equal 0.5, corresponds to using the half-sum of mesh solutions from the upper and low time layers at an approximation of the equation right part.
The main part of paragraph 2 is devoted to the computer simulation results. We analyze changing of the problem invariants in time as well as the convergence of the difference solution at decreasing grid steps. We compare also computer simulation time for using both finitedifference schemes.
The structure of the paragraph 3 coincides with the paragraph 2 structure. However, in this paragraph we consider the set of two nonlinear Schrödinger equations.
In the paragraph 4 we investigate the effectiveness of using the Rosenbrock method for a solution of the nonlinear Schrödinger equation with ABCs. As it is well-known, the statement of these BCs allows us to increase significantly the computer simulation effectiveness. For evaluating of the Rosenbrock method effectiveness for the problem solution with ABCs we compare the computer simulation results of this problem with the solution, obtained using the CFDS for the problem with zero-value BCs stated in big domain.
In paragraph 5 we propose the combined method, based on both methods: CFDS and Rosenbrock method. The effectiveness evaluation is made for the three cases of the optical pulse propagation: linear propagation and nonlinear propagation with positive and negative nonlinear coefficient.
In paragraph 6 we compare the effectiveness of using the CFDS, the Rosenbrock method and the combined method for a solution of the 2D nonlinear Schrödinger equation with ABCs. We demonstrate that the Rosenbrock method does not possess enough high effectiveness for the solution of multidimensional problem despite this method is explicit one. However, the combined method used together with original iterative process may be preferable in comparison with using the CFDS.
In a conclusion (paragraph 7) we formulate briefly the paper results.

Problem statement and problem invariants
As it is well known, the laser pulse propagation in a matter with cubic nonlinear response or its interaction with BEC in 1D case is described by the following dimensionless Schrödinger equation with initial condition corresponding to the pulse propagation in a positive direction of z-axis if the following Implicit finite-difference schemes, based on the Rosenbrock method, for nonlinear Schrö dinger equation inequality D z χ > 0 is valid, and with the following BCs for the finite function. In (1) A(t, z) is a complex amplitude; t is a time; z denotes a spatial coordinate; L z is its maximal value; L z c is a coordinate of the laser beam center at initial time . . for the BEC problem and is equal to 0 near the domain boundaries, L v is a coordinate of the potential center. Let us note, that in case of the laser pulse propagation analysis, the function V(z) describe changing a dielectric permittivity along the medium. Parameters D z , γ, ψ, χ is the real coefficients.
With respect to the initial distribution of a complex amplitude we should emphasize two remarks. The first of them relates to using of a Gaussian beam and pulse in physical experiments dealing with laser physics because a laser generates as rule, such beams and phases. The second one is caused by existence of the linear Schrödinger equation solution for initial Gaussian distribution. Using this solution, we can compare numerical and analytical solutions of the equation and estimate an accuracy of various finite-difference schemes.
Let us note that often instead of the BCs (3) one requires that the complex amplitude and its derivatives in z-coordinate tends to zero at z ! ± 1: As we believe, for laser physics problem, the BCs (3) is preferable because the initial distribution of an electromagnetic field is always finite one and its propagation is analyzed during bounded interval of time. Therefore, below we will use the BCs (3). However, the problem invariants can be easy to generalize for unbounded domain in z-coordinate if the conditions (4) are valid.
The problem (1)-(3) possesses well-known invariants (the conservation laws): -the first invariant-energy invariant; -the second invariant-impulse invariant (if V(z) = 0 and additional conditions @A @z j z¼0;L z ¼ 0 are valid); -the third invariant-Hamiltonian. They are essential characteristics for controlling of the difference problem solution accuracy.

Finite-difference scheme construction based on the Rosenbrock method
To develop a finite-difference scheme on the base of the Rosenbrock method [16] for the problem (1) we represent the complex amplitude by using the real and imaginary parts (note, that the modern computer can calculate in a complex arithmetic and this representation is not necessary for a method implementation) Aðz; tÞ ¼ uðz; tÞ þ ıvðz; tÞ: ð8Þ In the domain 0 � z � L z we introduce a uniform grid: Let us define the grid functions in the grid nodes ω z and write the difference Laplace operator in the internal grid nodes Since the Rosenbrock method was initially using for the ODE solution ( [16,[18][19][20][21][22][23][24][25][26][27][28][29]) therefore, the problem (1) is reduced to the following form where U ¼ ðu 0 ; u 1 ; :::; u N z ; v 0 ; v 1 ; :::; v N z Þ, and a vector GðU Þ is defined as For zero-value BCs (3), the grid functions under consideration are equal to zero in the boundary grid nodes: can be stated. The next step in the finite-difference scheme constructing is a definition of the mesh function in time domain. For this purpose we introduce a uniform grid along the time coordinate in the domain 0 � t � L t : and define on this mesh the following grid functions Below for brevity, we omit the index h in a notation of the mesh functions. According to the Rosenbrock method, the difference solution on the next time layer in the internal grid nodes belonging to ω z mesh is computed aŝ where Rek is a real part of the vector k, which is a solution of the linear equations The difference function U at zero node of the mesh in time domain is defined by the initial distribution of the complex amplitude.
Above a matrix E is the unity matrix, G U is the Jacobian for the equations set (12), G(U) is the vector (13) with respect to the mesh function U (17). The parameter β is a complex one equal b ¼ 1 2 ð1 þ ıÞ or the real one equal b ¼ 1 2 . These values of the parameter β are examinated in [17][18][19][20][21][22][23][24][25][26][27][28][29]. The vector k has the following components k ¼ ðk u;0 þ ık u;0 ; k u;1 þ ık u;1 ; . . . ; k u;N z þ ık u;N z ; It should be stressed, that in our opinion the one-stage Rosenbrock scheme with parameter b ¼ 1 2 corresponds to the Eq (12) right part approximation by the half-sum of the mesh functions from the upper and current time layers (so called, the Crank-Nikolson scheme). This type of the approximation is preferable for the nonlinear Schrödinger equation with a cubic nonlinear response because it allows us to achieve the conservative property with respect to the Hamiltonian (the third invariant (7)). Therefore, we discuss this case in detail with the aim to represent the solution on the upper time layer (let's denote this solution asŶ ) in the following formŶ where Y denotes the solution on the previous time layer. Then, let's represent the function f ðŶ Þ as the Taylor expansion and substitute the Eqs (22) in (21). As a result, we obtain the following equation and rewrite this equation in following form: that means, that we obtain the Rosenbrock scheme with the parameter b ¼ 1 2 : (compare with the Eqs (18) and (19)). This construction of the Rosenbrock scheme and the representation (24) explains the conditional conservatism of the finite-difference scheme, based on the Rosenbrock method, for the nonlinear Schrödinger equation.
To solve the Eq (19), let's represent the vector k and the coefficient β in the following way Then, the Eq (19) can be rewritten as Implicit finite-difference schemes, based on the Rosenbrock method, for nonlinear Schrö dinger equation Below, for clearness we write the Eq (27) in the component-wise form which can be also rewrite in the matrix form In (29) the matrices Q, B, C j are defined as The right parts of Eq (29) are written in the following form An effective method for solving the Eq (29) is the Thomas algorithm. According to this method, the solution can be found in following waŷ where α j is a matrix of dimension (4x4); B j is a vector of dimension 4, which are computed as follows The finite-difference scheme based on the Rosenbrock method possesses the second order of approximation on the spatial coordinate and the first order of approximation on the time coordinate. This scheme possesses also a property of the conditional conservatism, as it will be shown below.

Conservative finite-difference scheme
Let us use the same grids, which are written above, and define the mesh functions: Then, let's write following two-layers scheme for the Eq (1): with initial condition and BCs:Â The finite-difference scheme (34)(35)(36) is nonlinear one, that is why for its solution we use an iteration process in following way: The BCs for the equations are: The mesh function on the upper time layer at zero iteration (s = 0) is chosen aŝ The iteration process is stopped if the following condition, for example, is valid whereỹ 1 ;ỹ 2 > 0 are the real constants. Let us rewrite the Eq (37) in the matrix form: Implicit finite-difference schemes, based on the Rosenbrock method, for nonlinear Schrö dinger equation F j is a vector of dimension 2, which has the form: To solve this equations set we use the Thomas algorithm also. According to this method, the Eq (41) solution can be written in following waŷ where σ and φ are computed in following way: The computer simulation results Conservatism investigation of the finite-difference scheme based on the Rosenbrock method. For brevity, we define following notations: index Ros 1 denotes a finite-difference scheme based on the Rosenbrock method with parameter β = 0.5 + 0.5ı; index Ros 2 denotes the finite-difference scheme based on the Rosenbrock method with parameter β = 0.5. Index C denotes the CFDS. Correspondingly, the results obtained using considered finite-difference schemes we define as A Ros 1 t m ; z j We compare these results with the aim to demonstrate the efficiency of using the Rosenbrock method. In particular, we analyze the difference between the grid functions: For the effectiveness estimation of the finite-difference schemes we analyze changing the invariants between their values at time moment t = L t and at initial time moment: Let us define also the maximal intensity on the time layer m in the following way: The parameters D z , χ at the computer simulation is equal to D z = 1.0, χ = 0 (the pulse does not move). As a rule, the evolution of the solution is analyzed during 10 dimensionless units (L t = 10.0) if it's not emphasized and maximal value of the spatial coordinate is equal to 40 dimensionless units (L z = 40.0). The initial distributions center placed in section L z c ¼ 20:0 It allows us to analyze also the asymptotic stability property of finite-difference scheme because this time interval is big enough for the problem under consideration with chosen parameters. In the numerical simulation we use also the following values of the iteration parametersỹ 1 ¼ 10 À 3 ;ỹ 2 ¼ 10 À 5 and we choose the parameters of the potential as L v = 20.0, m v = 2.
In Fig 1 the invariant deviation in depending on the nonlinear coefficient is shown. We see that with increasing of the nonlinearity coefficient, the inaccuracy for the first and third invariants computation increases. The greatest invariants deviation is observed for the positive value of the parameter ψ, that corresponds to the optical pulse self-focusing. Fig 2 demonstrates the invariant deviation depending on the mesh step h in time moment t = 10. We emphasize, that the similar results obtained using the finite-difference schemes under consideration for the various parameter values. We see that the Hamiltonian is conserved by the Rosenbrock method with the complex coefficient β for h � 0.05 at computer simulation of the laser pulse propagation in a medium with self-focusing nonlinear response and potential equal unity. However, with increasing the nonlinear coefficient and duration of a considered time interval, the invariant deviation for the solution, obtained using Rosenbrock method, increases faster in comparison with the corresponding values, obtained using the CFDS (Fig 3).
The invariants changing also occurs for the computation results obtained on the base of the CFDS for time step τ = 0.01. It is due to chosen iteration parameters. The Hamiltonian changing depicted in Fig 2b, in our opinion, can be explained by the finite-difference scheme spectral properties: with increasing the mesh step on z-coordinate a number of the difference solution spectral components decreases.
For practice, it is of interest the first invariant and Hamiltonian evolution in time, which is presented in Figs 3 and 4, because they define the problem solution and also the maximal solution intensity. Note, that in Fig 3 the invariants changing increases with the time. However, the finite-difference scheme Ros 2 has the lower deviation in comparison with the finite-difference scheme Ros 1 . Non-conservation of the invariants affects to the laser pulse maximal intensity evolution, which is shown in Fig 4. As it is well-seen, it has the oscillating character for the Implicit finite-difference schemes, based on the Rosenbrock method, for nonlinear Schrö dinger equation process (γ = 1). The Schrödinger equation solution, obtained using the CFDS, saves the oscillation period in contrast to the solution, obtained using the finite-difference scheme based on the Rosenbrock method. In the last case, the increasing oscillation period at growing the computation time takes place. Moreover, it should be stressed, that for the solution, obtained using the CFDS, the maximal intensity deviation is substantially less and it corresponds to the iterative process accuracy. Therefore, the Rosenbrock method accumulates the computation errors in time.
Let us consider the influence of the external potential on the problem invariant violations at other fixed parameters: L t = 10.0, h = τ = 0.01. This dependencies are shown in Figs 5 and 6 and in Table 1 for various values of the nonlinear coefficient (ψ). We see in Fig 5 that the first and third invariants errors grow with increasing of the parameter |γ| and the maximal deviation occurs for the negative parameter γ. At the weak nonlinearity (ψ = 1) and positive parameter γ, the invariants deviations at using the finite-difference schemes based on Rosenbrock method is less than the corresponding values at using the CFDS. This strange feature causes by chosen iteration process parameters.   Table 1 demonstrates that at ψ = 5.0 and the external potential absence, the third invariant I 3 preserves 6 times worse at using the finite-difference scheme Ros 1 and 3 times worse at using the finite-difference scheme Ros 2 in comparison with computation on the base of the CFDS. If the external potential is preset then the Hamiltonian changes even more: the error of invariant computation increases to 10 or 5 times if a computer simulation is provided on the base of the schemes Ros 1 and Ros 2 , correspondingly. The first invariant changing for the Rosenbrock schemes also becomes unacceptable. Further increasing of the parameter ψ (see Fig 6) results in tens times enhancement of the invariant errors at using the finite-difference schemes Ros 1 and Ros 2 . However, the corresponding invariant deviation is insignificant at using the CFDS. This fact is a consequence of the Rosenbrock method conditional conservatism if the optical pulse propagation in a nonlinear medium is analyzed. Therefore, with decreasing the time step, the invariant deviations for  Implicit finite-difference schemes, based on the Rosenbrock method, for nonlinear Schrö dinger equation numerical solutions, obtained using the Rosenbrock methods, tend to the corresponding values, obtained using the CFDS. We demonstrate this feature in Table 2: for the time step τ = 0.001 the first invariant and Hamiltonian deviations occurring at using the Rosenbrock methods and the CFDS have the similar order of magnitude and numerical solutions for all methods coincide each other. However, we stress that the numerical solution of the problem possesses enough high accuracy if a computation is provided on the base of the CFDS with time step τ = 0.01.
Thus, at the fixed mesh step h and fixed time interval we can chose the time step τ for the Rosenbrock method in such a way, that the invariants preserve with sufficient high accuracy and the numerical solution obtained using this method tends to the corresponding solution, obtained using the CFDS. This statement is confirmed, in particular, in Fig 7 and Table 3. Essentially, that the solutions, obtained using the CFDS for the time steps τ = 0.01 and τ = 0.001, are practically identical each other. So, for this scheme can obtain the accurate result of a computation at using the mesh step on time coordinate equal τ = 0.01, which allows to  decrease significantly the computation time. Therefore, the computation efficiency is more high for the CFDS. Computation time. One of the most important feature of the finite-difference scheme is the time spent for the problem solution. In Table 4 the computation time at using the CFDS and the scheme Ros 1 is shown depending on the grid steps for the unchangeable problem parameters. Let us note that the computation time doesn't exceed 1 second at the time step τ = 0.1 and any mesh steps h under consideration. However, these results possess poor accuracy. Increasing   Table 4 for both schemes at using the time step τ = 0.01 occurs because of the iteration process presence (ỹ 1 ¼ 0:001;ỹ 2 ¼ 0:00001) for the CFDS and this requires certain iteration number, which is shown in the brackets of last column.

Problem statement and invariants
The Rosenbrock method application for a solution of the Schrödinger equation set is considered for the classic problem of nonlinear optics-the second harmonic generation (SHG). Under the phase matching condition of the interacting waves, this problem is described by the set of the following dimensionless Schrödinger equations with initial conditions and BCs for the finite distributions of the complex amplitudes. As we stressed above, often instead of BCs (50) one states that the complex amplitude and its derivatives in z-coordinate tends to zero at z ! 1: In addition to the definitions introduced above, let us note, that in (48) are the complex amplitudes of the interacting laser pulses and the parameters D 1 , D 2 , η are the real coefficients.
The problem (48)-(50) has the well-known invariants (the conservation laws): is the first invariant(energy invariant); is the third invariant(Hamiltonian).

The finite-difference scheme construction based on the Rosenbrock method for the Schrödinger equation set
As in previous consideration let's represent the complex amplitudes by using real and imaginary parts in nodes of the grid ω z we define the following mesh functions For the equation set (48) solution let's write the following ODE set where the function U has the following form and the vector G U À � computed as follows In (56) and (57) we do not consider boundary nodes because of using the zero-value BCs: Let us define the initial distribution of the complex amplitude at using the definitions introduced above Now we introduce on the grid ω t the following mesh functions Below, for brevity, we omit the index h in notation of the mesh functions. Implicit finite-difference schemes, based on the Rosenbrock method, for nonlinear Schrö dinger equation The solution on the next time layer computed using (18), (19) with the function G(U) defined in (57). Function G U is the corresponding Jacobian. The equation set is solved by using the Thomas algorithm, similar to case of the single Schrödinger Eqs (31) and (32). Obviously, at the solution of the Schrödinger equation set, the matrix dimension as well as vector dimension changes only.

The CFDS construction for the Schrödinger equation set
Let us use the same grids, which are written above, and introduce the following definitions: Using these notations, we write for Eq (48) the following two-layers implicit scheme: with initial conditions and BCsÂ Because the finite-difference scheme (62-64) is nonlinear one, we use for its solution the following iteration process: The BCs on iteration is written in the form The iteration process is stopped if the following inequality is valid, whereỹ 1 ;ỹ 2 > 0 are real constant. The solution method of the difference Eq (65) is the similar to solution of the Eqs (41)-(44) considered above.

Computer simulation results
The method efficiency we evaluate with using the norms:  (50). The obtained results show that changing of the first invariant I 1 for the CFDS is at least an order of magnitude less in comparison with the corresponding value for the Rosenbrock method. But in contrast to the Rosenbrock method, it does not depend on the parameters γ and η and causes by the iteration process presence. It should be stressed, that the Rosenbrock method accuracy at its using with the complex parameter β = 0.5 + 0.5ı is worse for γ = −1 and for the parameter η, which is less or equal to 10. With further increasing the parameter η, the Hamiltonian deviation from the initial value increases significantly and this violation reaches about 10%−24% depending on the parameters η, γ values and on the parameter β (it is a complex one or a real one) value in the Rosenbrock method. To achieve the invariant conservation with acceptable accuracy and the similar solution accuracy as takes place for the CFDS it is necessary to decrease the grid steps at least tenfold at using the finite-difference scheme based on the Rosenbrock method. Moreover, with increasing the time interval, during which the computation is provided, the mesh steps have to decrease also.
As an example, in Fig 8 the intensity profiles, computed using three finite-difference schemes under consideration, are depicted. This Figure illustrates also the essential influence of the parameter γ on the solution accuracy. Let us note, that the maximal difference in the wave intensity profiles achieves for γ = −1. Exactly, the significant deviation of the Hamiltonian for the Rosenbrock method is observed. It should be stressed that with decreasing the time step until τ = 10 −3 the solution obtained using the Rosenbrock method coincides with the solution obtained using the CFDS. Essentially, that the solutions, obtained using the CFDS for the time steps τ = 10 −2 and τ = 10 −3 , differ each other within the approximation order.
Computation time in dependence of grid steps. The computation time dependence on the grid steps for the two wave interaction with the parameters L z c ¼ 20:0; D 1 ¼ D 2 ¼ 1:0; Z ¼ 20; g ¼ 1; w ¼ 0 and the following parameters of the potential L v = 20.0, m v = 2 for the time and spatial intervals L t = 10 and L z = 40 correspondingly is shown in Table 5. Computer simulation is provided for the initial Gaussian distribution of complex amplitude for the first wave. The second wave has zero-value of its amplitude in initial time moment. Let us note, that at h = 0.1 and any time steps τ under consideration, the computation time for the both finite-difference schemes doesn't exceed 1 second. With increasing the grid nodes number, the computation time increases significantly at using the finite-difference scheme based on Rosenbrock method in contrast to the corresponding value for using the CFDS. It should be kept in mind, that the sufficient numerical solution accuracy for the CFDS achieves already for the grid steps h = τ = 0.01. At the same time, the similar accuracy at using the Rosenbrock method takes place if the grid steps are decreased at least tenfold.

Problem statement for 1D nonlinear Schrödinger equation
Let us consider the 1D nonlinear Schrödinger equation which describe the light pulse propagation in 1D Photonic crystal (PC). In this case, the parameters D z , ϕ defined as: D z ¼ 1 4pw ; � ¼ pw and relate to the initial complex amplitude corresponding to the wave propagation along the z-axis and BCs for the Eq (69) are written in the following way It should be stressed that in (71) the parameter O z is defined by the parameter χ of the initial distribution (70) as O z = 2πχ. We see that this equation differs from the problem (1) by term related to the potential V and a presence of the relation between parameters D z and ϕ.
Note, that the BCs (71) were proposed in [3] for computer simulation of the femtosecond pulse propagation in a nonlinear PC during the time interval about several thousand dimensionless units, which is very long time interval in comparison with the initial pulse duration being equal to a few dimensionless units. The PC occupies a small part of z-axis spatial domain.

Finite-difference scheme construction for Rosenbrock method
In contrast to the zero-value BCs, the equations for nodes j = 0, N z of the grid ω z (see (9)) in the case under consideration are written in following form where U ¼ ðu 0 ; v 0 ; u N z ; v N z Þ, and the vector GðU Þ is computed as follows After introducing the mesh along time coordinate we need to add the difference equation for the node j = N z in the equation set (29): instead of zero-value of the vectorŶ defined in (31) for this mesh node. Here, Q N z ; C N z are matrices with the following components Implicit finite-difference schemes, based on the Rosenbrock method, for nonlinear Schrö dinger equation As a result, the vectorŶ in the grid node j = N z is written in the following waŷ The BC in the grid node j = 0 is written similarly to (74): which is also added to the equation set (29) for the mesh node j = 0. Obviously, in (76) the matrices B 0 , C 0 have the following components Consequently, we write the mesh function in the zero node aŝ instead of zero-value of the vectorŶ defined in (31) for this mesh node. The matrix α 1 and the vector β 1 defined in (77) are used for the Thomas algorithm (32).

Approximation of the ABCs for the CFDS
To do a comparison of both finite-difference schemes we write below an approximation of the ABCs (71) for the CFDS (34) Since the difference Eq (78) are nonlinear ones, for its solution we use the iteration procesŝ Other formulae are written in the similar way to the difference Eq (34): see (37), (38).

Computer simulation results
Let us consider the problem with zero-value BC at the left boundary of the domain on z-coordinate and ABC at the right boundary. It is stated in the medium section L z = 20 (except the Fig 9, where ABCs is stated in the section L z = 80). The computer simulation is performed for the parameters D z = 0.0796, ϕ = 3.14, χ = 1.0. The computer simulation results are compared, in particular, with the analytical solution of the linear problem (69) (ψ = 0). Let us define the analytical solution as A Ex In Table 6 the maximal intensity differences between the numerical solution of the Eq (69), obtained using the finite-difference scheme based on the Rosenbrock method with various parameter β, and the numerical solution, obtained using the CFDS, and the analytical solution (80) are demonstrated. As it follows from the Table 6, the numerical solutions of the linear problem with the BCs under consideration differ insignificantly from each other. For example, the solutions coincide with the accuracy of magnitude order 10 −5 at the steps h = τ = 0.01.
In Fig 9 the dependence of the reflected wave intensity, appeared at the boundary with ABC, on the initial complex amplitude distribution center position is shown at computation using the finite-difference scheme based on the Rosenbrock method with the complex parameter b ¼ 1 2 ð1 þ ıÞ. The center of complex amplitude initial distribution is located in the section L z c ¼ 70; 75, correspondingly. Thus, with decreasing the distance between initial distribution center and the section of the boundary with ABC, the reflected wave intensity decreases. This is showed in Fig 9. With increasing the distance between the pulse center and the section, in  which the ABCs are stated, is a beam distraction influence increases. We see clearly that the reflected wave intensities do not exceed the theoretical assessments. In Fig 10 the intensity profile of the laser pulse, propagating in a medium with negative nonlinear lens ψ = −5.0 (defocusing medium), is depicted for a time moment when the laser pulse mainly transmitted through the artificial boundary. The essential result is that all numerical solutions, obtained using three finite-difference schemes under consideration, coincide (the maximal difference between solutions is about 3 � 10 −4 ) and the reflected wave intensity is equal to about 0.01 in the time moment t = 10 and it is less than 0.005 in the time moment t = 20. We believe that the intensity oscillation is caused by constancy of the parameter O z while this parameter can significantly deviate from the local wave number of the optical radiation near the artificial boundary (this is confirmed in Fig 9). It should be stressed, that we use the numerical solution, obtained on the basis of the CFDS with zero-value BCs in enough big domain, as the standard solution. We denote this solution with index Ex.
In Fig 11 the intensity profile for the pulse propagating in the self-focusing medium (ψ = 5.0) is shown. In Fig 11a and 11b the numerical solution deviation, obtained using the Rosenbrock methods for the time step τ = 0.01, from the exact solution becomes equal to about unity. With decreasing the time step to τ = 0.001 (see Fig 11c and 11d), the intensity profiles, obtained using considered finite-difference schemes, become much closer each other. It is important to stress that after main part of the light energy transmitted through the artificial boundary, the reflected intensity becomes less than 0.002, which is comparable with the approximation order of the finite-difference scheme.
Thus, we can conclude if we analyze the optical radiation propagation in defocusing medium, then the numerical solution, obtained using the finite-difference scheme based on the Rosenbrock method, approximates an exact solution with the same accuracy order as the CFDS. In the case of the self-focusing medium it is necessary to decrease the mesh step in time coordinate more than ten times at computation using the finite-difference scheme based on the Rosenbrock method to achieve the solution accuracy comparable with the accuracy of the solution obtained using the CFDS.
A similar investigation was made for the ABCs located at left boundary of the domain. Implicit finite-difference schemes, based on the Rosenbrock method, for nonlinear Schrö dinger equation

Combined method
As it is well-known, the CFDS implementation for a nonlinear problem requires to use the iteration process. The Rosenbrock method is explicit one, but it has the conditional conservatism property. Therefore, we propose the combined method based on both methods to realize their advantages. At some propagation distance of the laser pulse, the combined method is more preferable in comparison with other methods. Another very important feature of the combined method consists in a type of the BCs for the problem (34)

Finite-difference scheme construction for the combined method
The main idea of the combined method consists in using the Rosenbrock's method near the boundaries of the domain. It means, that we introduce two sub-domains near left and right boundaries of the domain under consideration. We denote a number of the grid nodes as N R (see Fig 12). In other part of the domain in z-coordinate, the CFDS is used for a computation.  = 0.01(a, b); 0.001(c, d).
https://doi.org/10.1371/journal.pone.0206235.g011 Implicit finite-difference schemes, based on the Rosenbrock method, for nonlinear Schrö dinger equation The problem solution is provided in several stages. In the first stage, the problem solution is computed in the sub-domains [0, N R ] and [N z − N R , N z ] at using the finite-difference scheme based on the Rosenbrock method with ABCs. To write the finite-difference scheme let's denote the solution, obtained in this stage, asÂ Ros and the solution at the previous time step is denoted as A Ros . Then, the finite-difference scheme, corresponding to the first stage, is written in the following form: where Rek, as it was introduced above, is a real part of solution for the linear equation set, t R ¼ t M (M is an integer number) is a time step used for computation in sub-domains Above we use the introduced definitions, G U bound is the Jacobian of the right part vector G (U bound ), which corresponds to the ABCs (73) and is written in the following form In formula (83) the functions u and v denote the real and imaginary parts of the solution A Ros . As it mentioned above, the set of equations (81)-(83) is solved by using the Thomas algorithm. Implicit finite-difference schemes, based on the Rosenbrock method, for nonlinear Schrö dinger equation The second stage consists in the problem solution by using the CFDS with BCs defined by the mesh functionÂ Ros . Let us denote the problem solution on this stage asÂ C and the solution on the previous time step is denoted as A C . Thus, the difference problem on the second stage is written as follow: with BCs: with corresponding condition of the iteration process stopping (40) and with choosing the difference functions on the zero-value iteration. After this, we use the mesh functionÂ C as the initial condition for a computation of the problem solution on the next time layer in the sub-domains [0, N R ] and [N z − N R , N z ] at using the finite-difference scheme based on the Rosenbrock method. With this aim we define the mesh function A Ros for the Rosenbrock method as and using the finite-difference scheme written in (81)-(83), the computation is performed. Then the problem (84) and (85) is solved at new time layer and the process repeats. Note, that for finding the solution at the first time layer we use the initial complex amplitude distribution. Thus, we obtain the implicit combined method for the nonlinear Schrödinger equation solution (Fig 12).

Computer simulation results
Let us consider the computer simulation results obtained using the finite-difference scheme based on the Rosenbrock method with the parameter β = 0.5(1 + ı) (denote with index Ros) or on the CFDS (denote with index C) or on the combined method (denotes with index R&C) (with parameter β = 0.5). We compare the obtained results between themselves and with the exact solution (Ex) for the linear problem.
Let us define the maximal intensity of the reflected wave as For definiteness, the computer simulation is made for the following parameters L z ¼ 20:0; L z c ¼ 15:0; D z ¼ 0:0796; � ¼ 3:14; w ¼ 1 and for the mesh step on z-coordinate h = 0.01.
The linear problem. In Fig 13 the intensity profiles, obtained using three methods mentioned above for computation of the laser pulse propagation in a linear medium (ψ = 0.0) are compared. As it follows from (Fig 13a, 13b, 13c and 13d) the difference between the numerical solution, obtained using combined method, and the corresponding solutions, obtained using other finite-difference schemes, strongly depends on the mesh nodes number (N R ) in subdomains and on the mesh steps τ, τ R . So, for the mesh step τ R = τ = 0.01 and with decreasing the nodes number N R from 100 to 10 the reflected wave significantly increases (see Fig 13c and 13d). However, with decreasing the time step to the value τ R = τ = 0.001 at fixed number of nodes in the sub-domains N R = 10, the reflected wave intensity decreases noticeably (see Fig 13e and 13f) and this intensity becomes practically the same one as the intensity computed using other finitedifference schemes.  5(a, c, e), 10(b, d, f) for the mesh steps τ R = τ = 0.01(a, b, c, d); 0.001(e, f),  and a number of nodes for the sub-domains: N R = 100(a, b); 10(c, d, e, f).
https://doi.org/10.1371/journal.pone.0206235.g013 Implicit finite-difference schemes, based on the Rosenbrock method, for nonlinear Schrö dinger equation To increase the effectiveness of the combined method we use decreasing time step for the problem solution in the sub-domains. In Fig 14 the numerical solutions, obtained using finitedifference scheme based on the combined method with the parameter N R = 10 and the mesh steps τ R = 0.001; 0.005, τ = 0.01, are presented. As it can be seen, decreasing the time step τ R leads to weak decrease of the intensity for the wave reflected from the artificial boundary and does not provide a significant improvement of the computer simulation results.
A comparison between the maximal intensity of the reflected wave, obtained using the finite-difference scheme based on the combined method, and the corresponding intensities, obtained using other finite-difference schemes (see Fig 15), demonstrates, that use of the combined method leads to a bigger reflected wave amplitude even for the optimal parameters. However, this growth is not critical and doesn't exceed the approximation error order.
It is important to compare the results, obtained using the finite-difference scheme based on the combined method and CFDS. In Fig 16 the dependence of mesh step on time, at which the results coincidence of computations for two finite-difference scheme is achieved, from the nodes number in the sub-domain N R is depicted. Note that with decreasing the nodes number N R , it is necessary to decrease the time step to achieve the corresponding accuracy.
To estimate the effectiveness of proposed method, the comparison of the first invariant values deviation for three finite-difference schemes under consideration is demonstrated in Table 7. The results presented here are for the finite-difference scheme based on the Rosenbrock method and for the CFDS, computed with using the ABCs. As one can see, this deviation for the combined method is two times bigger then the corresponding value obtained for other finite-difference schemes. However, this values don't exceed the theoretical estimations.
Case of laser pulse self-focusing. In Fig 17 the intensity profiles, computed using all finite-difference schemes for the nonlinear problem with ψ = 1.0, is shown. It should be stressed that in this case as an exact solution we use the numerical solution computed on the base of the CFDS with zero-value BCs in enough big domain with respect to the coordinate z.
As it can be seen in Fig 17a, the difference between the solution, obtained using the finitedifference scheme based on the combined method, and the exact solution has the value of about 0.1 in considered time moment. However, this difference does not preserve in time. On the other hand, the wave reflected from the artificial boundary is absent. Therefore, the difference in amplitude is due to the difference in velocity of wave transmitting through the boundary. At the next considered time moments (see Fig 17b and 17c), the difference become significantly less and equals to 10 −3 and 10 −4 , correspondingly. The maximal intensity of reflected wave doesn't exceed the 10 −4 .
Case of laser pulse defocusing. For the optical pulse propagation in defocusing medium the similar computation was made based on the Rosenbrock method, the CFDS and the finitedifference scheme for the combined method. In Fig 18 the intensity profiles, obtained using Implicit finite-difference schemes, based on the Rosenbrock method, for nonlinear Schrö dinger equation various finite-difference schemes, is shown for the parameters ψ = −1.0, N R = 10, τ = τ R = 0.001. Thus, the numerical solution obtained using the combined method coincides with the corresponding solution obtained using the CFDS. It should be stressed, that the maximal amplitude of the reflected wave shown in Fig 18 has the order 10 −2 and it is worse than the corresponding result obtained for case of the pulse self-focusing case. This fact takes place because of the constant parameter O z . Moreover, the nonlinear distortion of the laser pulse at its front influences strongest on the phase wave front than at the laser pulse propagation in a self-focusing medium. Therefore, the optical radiation local wave number doesn't coincide with the using O z value for the ABCs.
In the conclusion of this section, we should note, that it is possible to arrange the computation of the combined method in a different way. We construct also the explicit finite-difference scheme on the basis of the predictor-corrector scheme instead of CFDS. Corresponding to this scheme, at the first stage we compute the solution on the upper time layer at using the Rosenbrock method in full domain under consideration. Then, at the second stage we compute the problem solution at using the predictor-corrector scheme: the nonlinear term in (34) is computed by using the solution obtained at previous stage with a help of the Rosenbrock method. The computer simulation results obtained using this explicit method are not shown in this paper, because of the solution accuracy, obtained using this scheme, is two or three times worse Implicit finite-difference schemes, based on the Rosenbrock method, for nonlinear Schrö dinger equation than the corresponding accuracy, achieved using the CFDS, Rosenbrock method and combined method for all cases, which considered above (linear, self-focusing and defocusing problem).

Problem statement and problem invariants
Let us consider the 2D nonlinear Schrödinger equation describing the femtosecond pulse propagation in 2D PC εðz; xÞ @A @t þ ıD z @ 2 A @z 2 þ ıD x @ 2 A @x 2 þı�ðεðz; xÞ þ cðz; xÞjAj 2 ÞA ¼ 0; with initial complex amplitude distribution and ABCs are written in the following way Implicit finite-difference schemes, based on the Rosenbrock method, for nonlinear Schrö dinger equation In addition to the notations, introduced above, let us note, that in (88) A(t, z, x) is a slowly varying amplitude in time only; x denote a spatial coordinate; L x is its maximal value; L x c is the coordinate of the laser beam center at initial time moment along x-coordinate; ε(z, x), ψ(z, x) are the functions of a dielectric permittivity and nonlinearity coefficient. Parameter D x is the real coefficient describing the beam diffraction along x-coordinate. Variables a z , a x denote the beam radii along the corresponding coordinates. Parameters O z l ; O z r ; O x b ; O x u are the local wave numbers of the laser beam near the low and upper artificial boundary along x-coordinate, left and right artificial boundary along z-coordinate, correspondingly. For definiteness ð91Þ

CFDS construction for 2D case
Let us introduce an uniform grid ω The complex amplitudes on the grid ω are defined as Implicit finite-difference schemes, based on the Rosenbrock method, for nonlinear Schrö dinger equation

and ABCŝ
The 2D problem under consideration is nonlinear one, therefore for its computation we use a two-stage iteration process [52,53]. The first stage of the iteration process is written in the following form: and corresponds to a solution of the difference problem (96)-(98) along z-coordinate. The second stage of the iteration process is written in the way: and corresponds to a solution of the difference problem (96)-(98) along x-coordinate. The mesh function on the upper time layer at zero iteration (s = 0) is chosen as it presented in (39). The iteration process is stopped if the following condition is valid whereỹ 1 ;ỹ 2 > 0 are the real constants.

Finite-difference scheme based on the Rosenbrock method for 2D case
Let us define the grid functions in the grid ω, which are defined in (93) According to the Rosenbrock method, the difference solution on the next time layer is computed as it is written in (18). The vector k, which is a solution of the linear equations, in this case is written in the following form The vectors GðUÞ; GðU b z Þ; GðU b x Þ are defined as Above G U is the Jacobian for the vector G(U) with respect to the mesh function U (105), are the corresponding Jacobians of the right part vectors GðU b z Þ; GðU b x Þ, which corresponds to the ABCs. The way of the Jacobians computation is presented above for the 1D problem in (27) and (28). As mentioned above, the equation set (106) is solved by using the Thomas algorithm. Obviously, in the case under consideration, the matrices dimension as well as the vectors dimension increases many times. For example, a dimension of the vector k for the 2D problem is equal to 2(N x × N z ) and the matrix (E − τβG U ) dimension is equal to (2(N x × N z )) 2 , correspondingly. Therefore, a dimension of the vector Y j is equal to 4N x and the matrices Q, C j , B dimension is equal to (4N x ) 2 .

Combined method for 2D case
The combined method in 2D case can be realized in two different ways. The first one consists in using the Rosenbrock method near the boundaries with ABCs (see Fig 20a). Then, CFDS is used in full domain with the BCs, which are computed by using the Rosenbrock method (it means that we solve the Dirichlet problem).
The second one consist in a reduction of the 2D difference problem to a sequence of the 1D difference problem. Below we consider in detail the construction of the combined method at using the second way because in this case the dimensions of the matrices are essentially less than at using the Rosenbrock method for the 2D problem solution directly.
We start from the difference Eqs (99)-(102) with the ABC. However, we modify this iteration process in accordance with the definition of the combined method for the 1D nonlinear Schrödinger equation. At each of these stages we use the Dirichlet BCs instead of (100), (102) and they are computed by using the Rosenbrock method in the domain near the artificial boundaries. Then, we apply the CFDS for the problem solution (see Fig 20b and 20c). Obviously, at this stage of the problem solution we use the Dirichlet BCs.
Thus, let's consider the construction of the combined method. At first, we compute the problem solution in the grid nodes near the boundaries at using Rosenbrock method with corresponding ABCs (90). With this aim we introduce the sub-domains. For example, let's start from a direction along z-coordinate. We denote a number of the grid nodes in sub-domains along z-coordinate as N z R and write the finite-difference scheme, based on the Rosenbrock method in these sub-domains: where τ R is a time step used for a computation in the sub-domains of the problem solution, Req is a real part of the solution of the linear equations: A parameter β of the Rosenbrock method, is chosen as β = 0.5. Matrix G U is the Jacobian for the vector G(U) and G U b is the Jacobian of the right part vector G(U b ), which corresponds to the ABCs and is Implicit finite-difference schemes, based on the Rosenbrock method, for nonlinear Schrö dinger equation written in the following form In the formulae (112), (113) the mesh functions u j,k and v j,k denote the real and imaginary parts of the complex amplitude A j;k ¼ u j;k þ ıv j;k ; j ¼ 0; N z ; k ¼ 0; N x . The set of Eqs (110)-(113) is solved by using the Thomas algorithm.
Then, we compute the problem solution near the boundaries along the x-coordinate by using Rosenbrock method with ABCs (90). We denote a number of the grid nodes in the subdomains along x-coordinate as N x R and write the following finite-difference scheme of the solution computation based on the Rosenbrock method: where Req, is a real part of the solution for the linear equations ðE À bt R G U Þq ¼ GðUÞ; k ¼ 1; N x R ; N x À N x R ; N x À 1; G U is the Jacobian for the vector G(U) and G U b is the Jacobian of the vector G(U b ), which corresponds to the ABCs and is written in the following form The set of Eqs (114)-(117) is also solved by using the Thomas algorithm. After that we use two-stage iteration process for solving of the Schrödinger equation in full domain at using CFDS with the Dirichlet BCs.
The first stage of the combined method consists in the problem solution, as it is presented in (99), with the BCs defined by the mesh functionÂ Ros , which is a solution of the Eqs (110) and (111): Here we denote the problem solution on this stage asÂ sþ1 C . It should be emphasized that at the first time layer we use the initial complex amplitude distribution (97).
Thus, we obtain the solution at the first stage of the combined methodÂ Here we denote the problem (96)-(98) solution for this stage asÂ sþ2 C . The mesh function on the upper time layer at zero iteration (s = 0) is chosen as it presented in (39) and the condition of iteration process stopping is written in formula (103). Thus, we obtain the solution at the upper time layer.
We should note, that FFT can not be applied instead of the two-stage iteration method because the function values at the corresponding nodes belonging to the boundaries for x and z coordinates do not equal to each other. Moreover, the problem solution under consideration doesn't possess the symmetry property along z-coordinate.

The computer simulation results
First, we should note that the 2D problem solution at using the Rosenbrock method leads to significant increasing of the computation time and algorithm complexity because of using the matrix inversion operation. Therefore, we should take enough large mesh steps along the spatial coordinates. However, even at h z = h x = 0.1 and the domain L z = L x = 10 we need to compute the inverse matrix with dimension of 160,000 at each of time steps. Thus, we can conclude that the Rosenbrock method is unacceptable for the 2D problem solving.
Using of the proposed combined method for the computation of the 2D problem does not require computation of inverse matrices with such big dimension. Thus, the computation time at using the combined method is close to the corresponding computation time at using the CFDS. Nevertheless, usually the computation time using the CFDS is less than the corresponding time at using the combined method. It is due to additional computations using the Rosenbrock method, which occur in combined method. The combined method is effective for a computation in short time interval and in the case of defocusing medium or some other problems, where it is necessary to use more than two iterations for the CFDS. The CFDS gives more advantages for the problems, where control of invariants is required.
Also, one of the advantages of using the combined method is a decrease of the computation cost and allow to write the CFDS for the arbitrary boundary conditions.

Conclusions
In this paper we have shown the conditional conservatism property of the finite-difference scheme based on the Rosenbrock method for the 1D nonlinear Schrödinger equation or the set of equations. For fixed mesh steps with increasing the computation time interval the difference analogues of the nonlinear Schrödinger equation (or the set of equations) invariants do not preserve. To achieve their conservation as well as corresponding solution accuracy it is necessary to decrease the mesh step of time coordinate. Despite the Rosenbrock method is explicit it requires much more computational time in comparison with corresponding time at using of CFDS because of essential smaller mesh steps which are necessary for the Rosenbrock method. This leads to a loss of the Rosenbrock method's main advantage at computation during long time interval.
We investigated the effectiveness for the Rosenbrock method for the problem with the ABCs. The results obtained for the linear case and for defocusing medium show that using the finite-difference scheme based on the Rosenbrock method gives the same accuracy order of the problem approximation as the CFDS. For the self-focusing medium it is necessary to decrease mesh step on time coordinate tenfold for the finite-difference scheme based on Rosenbrock method to achieve the accuracy of the solution using CFDS.
To use the advantages of the explicit finite-difference scheme and CFDS we proposed the new combined method for numerical solution of the nonlinear Schrödinger equation (or the set of equations) with ABCs. This method can be more effective than the CFDS under certain conditions. The computer simulation results, obtained using the combined method possess the similar order of accuracy in comparison with the corresponding results, obtained using the CFDS, at appropriate choosing the mesh steps. The combined method possesses also the several advantages over the Rosenbrock method for the 1D nonlinear Schrödinger equation (or set of equations) solution.
Using of the Rosenbrock method for multidimensional case leads to the significant increasing of computation time because of the complexity of the matrix inversion operation. However, it is possible to use the combined method with multistage iterative process. In this case we solve only the 1D difference equation using the Thomas algorithm. Thus, the combined method in the multidimensional case can be quite effective.
Using of the Rosenbrock method is inefficient in practice for solving the 2D problem due to computation of inverse matrices with high dimension. We proposed the combined method, which overcomes this disadvantage. The main advantage of the combined method consists in a possibility of changing of the BCs for the CFDS: instead of using the third type of the BCs one can apply the Dirichlet BCs. The ABCs are used at the stage of using the Rosenbrock method. The advantage of using the combined method appears for the 2D problem solution during short time interval and in the case of laser pulse propagation in defocusing medium. The CFDS is effective for the 2D problem solution during a large time interval and in the case of laser pulse propagation in self-focusing medium.