Next Article in Journal
The Problem of Effective Evacuation of the Population from Floodplains under Threat of Flooding: Algorithmic and Software Support with Shortage of Resources
Previous Article in Journal
The Weights Reset Technique for Deep Neural Networks Implicit Regularization
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Adaptive Sparse Grids with Nonlinear Basis in Interval Problems for Dynamical Systems

by
Alexander Yu. Morozov
1,* and
Dmitry L. Reviznikov
1,2
1
Federal Research Center “Computer Science and Control” of the Russian Academy of Sciences, St. Vavilova, 44, Bld. 2, 119333 Moscow, Russia
2
Moscow Aviation Institute, National Research University, Volokolamskoe Hwy., 4, 125993 Moscow, Russia
*
Author to whom correspondence should be addressed.
Computation 2023, 11(8), 149; https://doi.org/10.3390/computation11080149
Submission received: 28 June 2023 / Revised: 24 July 2023 / Accepted: 26 July 2023 / Published: 1 August 2023

Abstract

:
Problems with interval uncertainties arise in many applied fields. The authors have earlier developed, tested, and proved an adaptive interpolation algorithm for solving this class of problems. The algorithm’s idea consists of constructing a piecewise polynomial function that interpolates the dependence of the problem solution on point values of interval parameters. The classical version of the algorithm uses polynomial full grid interpolation and, with a large number of uncertainties, the algorithm becomes difficult to apply due to the exponential growth of computational costs. Sparse grid interpolation requires significantly less computational resources than interpolation on full grids, so their use seems promising. A representative number of examples have previously confirmed the effectiveness of using adaptive sparse grids with a linear basis in the adaptive interpolation algorithm. The purpose of this paper is to apply adaptive sparse grids with a nonlinear basis for modeling dynamic systems with interval parameters. The corresponding interpolation polynomials on the quadratic basis and the fourth-degree basis are constructed. The efficiency, performance, and robustness of the proposed approach are demonstrated on a representative set of problems.

Graphical Abstract

1. Introduction

Dynamic systems with interval uncertainties arise in various application areas [1]. It is often easier to determine the ranges in which the parameters of the problem are located than to measure their values precisely. In this connection, there is a necessity to construct an interval estimate of the solution by the known interval estimates of its parameters.
The existing methods for solving interval problems can be divided into several groups:
  • Methods based on interval arithmetic [2,3,4];
  • Methods representing the set of solutions to the problem using geometric primitives [5,6,7];
  • Methods operating with symbolic expressions [8,9,10,11];
  • Stochastic methods [12];
  • Methods representing the solution as a polynomial of relative interval parameters [13,14,15].
Note that methods based on interval arithmetic are often subject to the wrapping effect manifesting itself in an unbounded growth of the width of the resulting interval estimates. This effect is discussed in detail in [16].
The adaptive interpolation algorithm proposed earlier by the authors [13] belongs to the latter group. Its essence is to construct a piecewise polynomial function that interpolates the dependence of the solution to the problem on point values of interval parameters. The algorithm has a theoretical justification [13,17] and has been successfully applied to rigid systems of ordinary differential equations (ODEs) [18], systems with dynamic chaos and bifurcations [19], applied problems of chemical kinetics [18], gas and molecular dynamics [20].
Unlike interval methods, this algorithm does not give guaranteed interval estimates but it obtains solution bounds with controlled accuracy, is not subject to the wrap effect, and has a high degree of parallelization.
The classical variant of the algorithm uses full grid interpolation. Due to this fact, it has exponential computational complexity and becomes practically inapplicable for problems with a large number of interval uncertainties. Sparse grid interpolation [21] requires significantly less computational resources than full grid interpolation, so their use seems promising. The effectiveness of using adaptive sparse grids with a linear basis in the adaptive interpolation algorithm has been previously confirmed by a representative number of examples [20,22]. In addition, in [23], the technology of tensor trains [24,25] was successfully used to reduce the computational complexity of the algorithm.
The purpose of this paper is to apply adaptive sparse grids with a nonlinear basis for modeling dynamic systems with interval parameters.
Sparse grid interpolation has a hierarchical basis [26]. The multidimensional basis is constructed using the product of one-dimensional bases. By not using all basis functions, it is possible to significantly reduce the number of nodes required to determine the weight coefficients and, as a consequence, reduce the computational cost.
The issues of nonlinear basis usage together with sparse grids were considered in [27,28,29]. Generally speaking, it is necessary to solve a system of linear algebraic equations (SLAE) to determine the unknown coefficients of the interpolation polynomial. However, due to a certain choice of basis functions it is possible to obtain expressions for the weight coefficients in explicit form. In [17] it was shown that increasing the degree of the interpolation polynomial in the classical adaptive interpolation algorithm leads to an increase in accuracy and a reduction in computational costs. In this regard, it seems promising to use sparse grids with a nonlinear basis. In this paper we describe the quadratic basis and the basis of the fourth degree. The expressions used for the weight coefficients are convenient for software implementation and adaptation.
Often, in practice, dynamic systems are described by means of ODE systems; therefore, they are considered in the paper. In the second section of the paper the Cauchy problem for an ODE system with interval uncertainties is formulated. The third section describes an adaptive sparse grid interpolation algorithm with a nonlinear basis. In the fourth section, the proposed approach is tested using a representative set of problems containing various amounts of interval uncertainties. The different bases are compared. Finally, the main results of the paper are formulated.

2. Problem Statement

We consider the Cauchy problem for the ODE system consisting of n equations with m interval initial conditions:
d y i ( t ) d t = f i ( y 1 ( t ) , y 2 ( t ) , , y n ( t ) ) , 1 i n , y i ( t 0 ) y i 0 ̲ , y i 0 ¯ , 1 i m , y i ( t 0 ) = y i 0 , m < i n , t t 0 , t N .
The right part of the system f = f 1 , f 2 , , f n T satisfies all conditions ensuring uniqueness and the existence of a solution for all y i ( t 0 ) y i 0 ̲ , y i 0 ¯ , 1 i m . By performing simple transformations, any ODE system containing parameters or not being autonomous can be reduced to the system of Equation (1).
It is required for each moment of time t k to build a function P k y 1 0 , y 2 0 , , y m 0 , where y i 0 y i 0 ̲ , y i 0 ¯ , 1 i m interpolating a solution of the system of Equation (1) y k y 1 0 , y 2 0 , , y m 0 = y y 1 0 , y 2 0 , , y m 0 , t k with controllable accuracy. Further definition of interval estimation of the solution (finding of left and right bounds of intervals) is reduced to 2 n conditional optimization problems for explicit function, which can be solved for instance by means of methods presented in [30].

3. Adaptive Sparse Grid Interpolation Algorithm with Nonlinear Basis

At the initial moment of time t 0 the vector-function P 0 is defined in a simple way:
P 0 y 1 0 , y 2 0 , , y m 0 = y 1 0 , y 2 0 , , y m 0 , y m + 1 ( t 0 ) , , y n ( t 0 ) T .
Let us use induction to construct a solution for an arbitrary time moment. Suppose that at the moment of time t k we know P k y 1 0 , y 2 0 , , y m 0 . The derivation of P k + 1 y 1 0 , y 2 0 , , y m 0 is reduced to the interpolation of the implicit function y ^ k + 1 y 1 0 , y 2 0 , , y m 0 given in the form of an ODE system:
d y ^ i ( t ) d t = f i ( y ^ 1 ( t ) , y ^ 2 ( t ) , , y ^ n ( t ) ) , y ^ i ( t k ) = P i k ( y 1 0 , y 2 0 , , y m 0 ) , 1 i n , t t k , t k + 1 , y ^ k + 1 = y ^ 1 ( t k + 1 ) , y ^ 2 ( t k + 1 ) , , y ^ n ( t k + 1 ) T .
Usually, the interpolation polynomial P k is constructed according to a certain set of nodes, which form a grid. Therefore, firstly, the solutions that correspond to the nodes are transferred to the k + 1 time layer and, then, depending on the value of the interpolation error, adaptation is performed. Where the error is large, new nodes are added and, where the error is small, the grid is sparse. This is the adaptive interpolation algorithm for modeling dynamical systems with interval parameters. Note that, in the general case, the dynamical system can be discrete and then y ^ k + 1 y 1 0 , y 2 0 , , y m 0 will be specified explicitly.
The interpolation polynomial P can be arbitrary; it is only necessary to be able to control the interpolation error. The classical version of the algorithm uses interpolation on dense grids grouped in a hierarchical structure (kd-tree). This paper uses sparse grid interpolation.
Sparse grids are based on a hierarchical basis. Interpolation on a hierarchical basis can be considered as a sequential construction of polynomials interpolating a disparity.
First, a description of sparse grid interpolation with a linear basis is given. It is based on the hat function:
φ 1 ( x ) = 1 x , x 1 , 1 0 , otherwise .
In the one-dimensional case, the basis functions of l level are defined as
φ l , i ( x ) = φ 1 ( 2 l x i )
and the interpolation polynomial has the form:
P ( x ) = a 0 , 0 φ 0 , 0 ( x ) + a 0 , 1 φ 0 , 1 ( x ) + l = 1 n g i = 1 2 l 1 a l , i φ l , i ( x ) , i odd ,
a l , i = f ( x l , i ) 0 , l = 0 , 1 2 f ( x l , i 1 ) + f ( x l , i + 1 ) , l > 0 ,
where n g is the level of the corresponding grid, x l , i = i 2 l are nodes of the grid, and f : 0 , 1 R is a smooth continuous function with bounded second derivatives: 2 f x 2 < . The basis functions of zero level φ 0 , 0 ( x ) and φ 0 , 1 ( x ) are necessary to account for the boundary values.
The coefficients a l , i are equal to the disparity at the point x l , i between the function f and the interpolation polynomial, which corresponds to the grid of level l 1 . In addition, a l , i are characterized by the second derivatives and l tend to zero as O 2 2 l .
Figure 1 shows the basis functions up to level 3 and shows the interpolation process of the function:
f ( x ) = 3 2 + 3 sin π x x .
P l ( x ) denotes the sum of the basic level l functions with their respective weighting coefficients:
P l ( x ) = i a l , i φ l , i ( x ) , i { 0 , 1 } , l = 0 , 2 p 1 | p = 1 , , 2 l 1 , l > 0 .
D-dimensional basis functions are constructed using the product of one-dimensional basis functions (3):
φ l , i ( x ) = k = 1 d φ l k , i k ( x k )
where l = ( l 1 , l 2 , , l d ) is a multi-level, i = ( i 1 , i 2 , , i d ) is a multi-index, and x = ( x 1 , x 2 , , x d ) is a vector of variables. Depending on the constraints for the multi-level, the corresponding grid will be either full ( max l k n g ) or sparse ( l k n g + d 1 ).
The interpolation polynomial (4) in the multivariate case is written as follows:
P ( x ) = l , i a l , i φ l , i ( x ) , k = 1 d l k n g + d 1 , i k { 0 , 1 } , l k = 0 , 2 p 1 | p = 1 , , 2 l k 1 , l k > 0 .
The weighting coefficients a l , i are determined recurrently by generalizing the relation (5):
a l , i = a l , i ( 1 ) , a l , i ( k ) = a l , i ( k + 1 ) 0 , l k = 0 , 1 2 a l , i 1 i k 1 i d ( k + 1 ) + a l , i 1 i k + 1 i d ( k + 1 ) , l k > 0 , a l , i ( d + 1 ) = f ( x l , i ) ,
where x l , i = x l 1 , i 1 , x l 2 , i 2 , , x l d , i d and f : 0 , 1 d R is a smooth continuous function with bounded mixed derivatives:
| α | 1 f x 1 α 1 x 2 α 2 x d α d < , | α | 2
where | α | = max α k , | α | 1 = α k . The coefficients a l , i characterize the derivatives of (10).
In practice, the adaptive version of interpolation is usually used. Initially, the basis contains only functions (7), whose multi-level components are 0 or 1. Adaptation is performed using the value of a l , i . If a l , i > ε , then functions are added to the basis at one level more
φ ( l 1 + 1 , l 2 , , l d ) , ( 2 i 1 1 , i 2 , , i d ) , φ ( l 1 + 1 , l 2 , , l d ) , ( 2 i 1 + 1 , i 2 , , i d ) , l 1 > 0 , φ ( l 1 , l 2 + 1 , , l d ) , ( i 1 , 2 i 2 1 , , i d ) , φ ( l 1 , l 2 + 1 , , l d ) , ( i 1 , 2 i 2 + 1 , , i d ) , l 2 > 0 , φ ( l 1 , l 2 , , l d + 1 ) , ( i 1 , i 2 , , 2 i d 1 ) , φ ( l 1 , l 2 , , l d + 1 ) , ( i 1 , i 2 , , 2 i d + 1 ) , l d > 0 .
In addition, when calculating a l , i , functions φ l , i , which correspond to a l , i ( d + 1 ) , are automatically added to the basis.
When using a nonlinear basis, the difference is in defining the basis functions φ l , i ( x ) and the corresponding weighting coefficients a l , i .
Let us consider the transition to the quadratic basis. The hat function (2) is complemented by the quadratic function
φ 2 ( x ) = ( x 1 ) ( x + 1 ) , x 1 , 1 , 0 , otherwise
and (3) takes the following form:
φ l , i ( x ) = φ 1 ( 2 l x i ) , l = 0 , φ 2 ( 2 l x i ) , l > 0 .
To calculate the weighting coefficients a l , i , it is necessary to perform grid interpolation one level less. The interpolation polynomial (4) can be regarded as a piecewise discontinuous function which interpolates the original dependence with a certain order on each segment. Therefore, only a few nodes with a lower level in the vicinity of x l , i are needed for determination of a l , i (Figure 2):
a l , i = f ( x l , i ) 0 , l = 0 , 1 2 f ( x l , i 1 ) + f ( x l , i + 1 ) , l = 1 , 1 8 3 f ( x l , i 1 ) + 6 f ( x l , i + 1 ) f ( x l , i + 3 ) , l > 1 , i mod 4 = 1 , 1 8 3 f ( x l , i + 1 ) + 6 f ( x l , i 1 ) f ( x l , i 3 ) , l > 1 , i mod 4 = 3 .
Figure 3 shows the basis functions (12) and the process of interpolation of function (6). Compared to the linear basis interpolation (Figure 1), the error decreases faster with increasing level.
In the multivariate case, the coefficients a l , i are also determined using recurrence relations:
a l , i = a l , i ( 1 ) a l , i ( k ) = a l , i ( k + 1 ) 0 , l k = 0 , 1 2 a l , i 1 i k 1 i d ( k + 1 ) + a l , i 1 i k + 1 i d ( k + 1 ) , l k = 1 , 1 8 3 a l , i k 1 ( k + 1 ) + 6 a l , i k + 1 ( k + 1 ) a l , i k + 3 ( k + 1 ) , l k > 1 , i k mod 4 = 1 , 1 8 3 a l , i k + 1 ( k + 1 ) + 6 a l , i k 1 ( k + 1 ) a l , i k 3 ( k + 1 ) , l k > 1 , i k mod 4 = 3 , a l , i ( d + 1 ) = f ( x l , i ) .
Let us move on to considering the construction of the fourth-degree basis; (2) and (11) are complemented by the following functions:
φ 4 1 ( x ) = 1 6 ( x + 1 ) ( x 1 ) ( x 2 ) ( x 3 ) , x 1 , 3 , 0 , otherwise , φ 4 2 ( x ) = 1 6 ( x + 3 ) ( x + 2 ) ( x + 1 ) ( x 1 ) , x 3 , 1 , 0 , otherwise
and φ l , i ( x ) is defined as
φ l , i ( x ) = φ 1 ( 2 l x i ) , l = 0 , φ 2 ( 2 l x i ) , l = 1 , φ 4 1 ( 2 l x i ) , l > 1 , i mod 4 = 1 , φ 4 2 ( 2 l x i ) , l > 1 , i mod 4 = 3 .
Similarly to the quadratic basis, several nodes in the neighborhood of x l , i should be considered to calculate the coefficients a l , i (see Figure 4):
a l , i = f ( x l , i ) 0 , l = 0 , 1 2 f l , i 1 + f l , i + 1 , l = 1 , 1 8 3 f l , i 1 + 6 f l , i + 1 f l , i + 3 , i mod 4 = 1 , 3 f l , i + 1 + 6 f l , i 1 f l , i 3 , i mod 4 = 3 , , l = 2 , 1 128 z l , i , l > 2 , z l , i = 35 f l , i 1 + 140 f l , i + 1 70 f l , i + 3 + 28 f l , i + 5 5 f l , i + 7 , i mod 8 = 1 , 5 f l , i 3 + 60 f l , i 1 + 90 f l , i + 1 20 f l , i + 3 + 3 f l , i + 5 , i mod 8 = 3 , 3 f l , i 5 20 f l , i 3 + 90 f l , i 1 + 60 f l , i + 1 5 f l , i + 3 , i mod 8 = 5 , 5 f l , i 7 + 28 f l , i 5 70 f l , i 3 + 140 f l , i 1 + 35 f l , i + 1 , i mod 8 = 7 .
Here, to shorten the record, f ( x l , i ) means f l , i .
Figure 5 shows the hierarchical basis and interpolation process for function (6).
In the d-dimensional case, a l , i = a l , i ( 1 ) and
a l , i ( k ) = a l , i ( k + 1 ) 0 , l k = 0 , 1 2 a l , i 1 i k 1 i d ( k + 1 ) + a l , i 1 i k + 1 i d ( k + 1 ) , l k = 1 , 1 8 3 a l , i k 1 ( k + 1 ) + 6 a l , i k + 1 ( k + 1 ) a l , i k + 3 ( k + 1 ) , i k mod 4 = 1 , 3 a l , i k + 1 ( k + 1 ) + 6 a l , i k 1 ( k + 1 ) a l , i k 3 ( k + 1 ) , i k mod 4 = 3 , , l k = 2 , 1 128 z l , i , l k > 2 , z l , i = 35 a l , i k 1 ( k + 1 ) + 140 a l , i k + 1 ( k + 1 ) 70 a l , i k + 3 ( k + 1 ) + 28 a l , i k + 5 ( k + 1 ) 5 a l , i k + 7 ( k + 1 ) , i k mod 8 = 1 , 5 a l , i k 3 ( k + 1 ) + 60 a l , i k 1 ( k + 1 ) + 90 a l , i k + 1 ( k + 1 ) 20 a l , i k + 3 ( k + 1 ) + 3 a l , i k + 5 ( k + 1 ) , i k mod 8 = 3 , 3 a l , i k 5 ( k + 1 ) 20 a l , i k 3 ( k + 1 ) + 90 a l , i k 1 ( k + 1 ) + 60 a l , i k + 1 ( k + 1 ) 5 a l , i k + 3 ( k + 1 ) , i k mod 8 = 5 , 5 a l , i k 7 ( k + 1 ) + 28 a l , i k 5 ( k + 1 ) 70 a l , i k 3 ( k + 1 ) + 140 a l , i k 1 ( k + 1 ) + 35 a l , i k + 1 ( k + 1 ) , i k mod 8 = 7 , a l , i ( d + 1 ) = f ( x l , i ) .
Note that functions (2), (11) and (14) on which the basis is constructed can be considered as the basis Lagrangian polynomials since they are equal to 1 only in a single node and equal to 0 in other nodes.
The constructed bases are only one set of possible bases. The obtained expressions for weight coefficients are convenient for further software implementation and adaptation.
With regard to the solution of the original problem (1), expression (8) will take the form:
P k + 1 ( y 1 0 , , y m 0 ) = l , i a l , i φ l , i y 1 0 y 1 0 ̲ y 1 0 ¯ y 1 0 ̲ , y 2 0 y 2 0 ̲ y 2 0 ¯ y 2 0 ̲ , , y m 0 y m 0 ̲ y m 0 ¯ y m 0 ̲ , j = 1 m l j n g + m 1 , i j { 0 , 1 } , l j = 0 , 2 p 1 | p = 1 , , 2 l j 1 , l j > 0 .
And when calculating the weighting coefficients a l , i , the value at the last iteration will be determined as
a l , i ( m + 1 ) = y ^ k + 1 y 1 0 ̲ + y 1 0 ¯ y 1 0 ̲ x l 1 , i 1 , , y m 0 ̲ + y m 0 ¯ y m 0 ̲ x l m , i m
The norm of the vector a l , i , for example, the maximum one, can be used as an adaptation criterion.

4. Results

The solutions of several ODE systems with interval uncertainties are found and the results are compared. To estimate the a posteriori absolute error at the initial moment, a test set of points from the uncertainty region of the system parameters is randomly generated and the corresponding solutions are constructed and compared at the final moment:
e r r o r = max y c h t N , y c h t 0 χ P N y 1 c h t 0 , y 2 c h t 0 , , y m c h t 0 y c h t N ,
where
χ = y c h y c h t 0 , t N y c h t 0 = rand y 1 0 ̲ , y 1 0 ¯ , , rand y m 0 ̲ , y m 0 ¯ , y m + 1 0 , , y n 0 T .
During construction of interval estimation (determination of interval bounds), the solution of 2 n conditional optimization problems for explicit vector-function P is performed:
P i ( x ) x y 1 0 ̲ , y 1 0 ¯ × × y m 0 ̲ , y m 0 ¯ min , 1 i n , P i ( x ) x y 1 0 ̲ , y 1 0 ¯ × × y m 0 ̲ , y m 0 ¯ max , 1 i n .
If the solution error of problems (16) is much smaller than the interpolation error, which is typical in practice, then the e r r o r value can be used to judge the accuracy of the bounds of the resulting interval estimate. Note that, in the case of a linear basis, it is sufficient to enumerate all values in the nodes of the grid to find the exact solution of (16).
To estimate the computational costs, we use the criterion I introduced in [13,20] and numerically equal to the number of solved non-interval systems (1) at specific point values of interval parameters:
I = 1 N k = 1 N C k ,
where C k is the number of nodes in the grid at the k-th step.
Earlier, the authors of [17] analyzed computational costs for the classical variant of the algorithm. As a rule, the costs of integration for non-interval systems (1) significantly exceeds other costs (including interpolation costs). Therefore, the criterion I is indicative and characterizes the main computational costs.
Then, for each problem, computational cost I is compared for different bases and different values of ε . The parameter ε defines the condition of grid adaptation: if a l , i > ε , then the basis functions are added to the basis by one level more (and the nodes that correspond to the new basis functions are added). Since the weight coefficients a l , i characterize the disparity, they actually determine the local ε error at each step of the algorithm.
Consider the first nonlinear ODE system:
x = y 1 + x 2 + y 2 1 , y = x 1 + x 2 + y 2 1 , x ( 0 ) = x 0 1 , 1 , y ( 0 ) = y 0 0 , 1 , t 0 , 25 .
The analytical solution to the system of Equation (17) has the following form:
x ( x 0 , y 0 , t ) = x 0 2 + y 0 2 cos t 1 + x 0 2 + y 0 2 1 + arctan y 0 x 0 y ( x 0 , y 0 , t ) = x 0 2 + y 0 2 sin t 1 + x 0 2 + y 0 2 1 + arctan y 0 x 0
Figure 6 shows the set of solutions for the ODE system (17) and the resulting grid in the course of algorithm operation at various moments of time when using the basis of the fourth degree with parameter ε = 10 3 . The points in the upper figures correspond to the points in the lower figures.
In the vicinity of the points x 0 = 0 and y 0 = 0 , there is a densification of the grid; this is partly due to the fact that this point is a singular point of the center type.
Table 1 shows the results of different methods for two values of ε . A variant of the adaptive interpolation algorithm with sparse grids works at least two to three times faster (using the fourth-degree basis) than the classical variant of the algorithm.
Consider an ODE system with two initial interval conditions and two interval parameters:
x = a b x + 1 b 2 y , y = a 1 b 2 x + b y , x ( 0 ) = x 0 1 , 1 , y ( 0 ) = y 0 1 , 1 , a 0.01 , 0.99 , b 0.01 , 0.99 , t 0 , 2 .
The analytical solution has the form:
x ( x 0 , y 0 , a , b , t ) = exp a b t y 0 sin a 1 b 2 t + x 0 cos a 1 b 2 t , y ( x 0 , y 0 , a , b , t ) = exp a b t y 0 cos a 1 b 2 t x 0 sin a 1 b 2 t .
Figure 7 shows the set of solutions to the system of Equation (19) at various moments of time and the projection of the resulting adaptive sparse grid onto a two-dimensional plane. The important feature of this system is that its solution (20), in contrast to (18), is represented in the form of the linear combination with respect to initial conditions. As a result, grid compaction will take place only on the subsets corresponding to parameters a and b (Figure 7, grey color). At the initial point t = 0 the set of solutions on the phase plane is a square. At points t > 0 the parameters a and b will already influence the solution and the structure of the set will change. It will be a projection of a four-dimensional deformed rectangular parallelepiped onto the phase plane.
Table 2 shows the results of different methods. At ε = 10 5 , the use of sparse grids with the fourth-degree basis allows us to reduce computational costs by 16 times in comparison with the linear basis.
Further, the constructed bases are approbated for the ODE system, which describes the motion of bodies with uncertainties in the initial velocities under the action of gravitational forces around a massive body. Using dimensionless variables, we can write the following equations [20]:
v i x = j = 1 , j i 4 m j x j x i r i , j 3 , v i y = j = 1 , j i 4 m j y j y i r i , j 3 , v i z = j = 1 , j i 4 m j z j z i r i , j 3 , x i = v i x , y i = v i y , z i = v i z , i = 1 , 4 ¯ , x 1 ( 0 ) = y 1 ( 0 ) = z 1 ( 0 ) = v 1 x ( 0 ) = v 1 y ( 0 ) = v 1 z ( 0 ) = 0 , x 2 , 3 ( 0 ) = ± 1 , y 2 , 3 ( 0 ) = z 2 , 3 ( 0 ) = 0 , v 2 , 3 ( 0 ) = ( 0 , ± 316.23 , 0 ) T + Δ v 2 , 3 T , y 4 ( 0 ) = 1 , x 4 ( 0 ) = z 4 ( 0 ) = 0 , v 4 ( 0 ) = ( 0 , 0 , 316.23 ) T + Δ v 4 T , t [ 0.0 , 0.02 ] ,
where r i , j is the distance between the bodies with the indices i and j, m 1 = 10 5 , m 2 , 4 ¯ = 10 5 are the masses of the bodies, and Δ v 2 , 4 ¯ = 2 , 2 , 2 , 2 , 2 , 2 are the interval uncertainties in the velocities of the bodies.
Figure 8 shows the sets of positions of all four bodies at different times. The most massive body is in the center and is marked with a large gray circle. It does not actually move in space. The remaining three bodies rotate in circular orbits around the massive body and fly half the circle of their trajectory in a period of time t [ 0 , 0.01 ] (shown in Figure 8). It can be seen that the region of position uncertainty for those bodies increases with time. Note that the presence of interval uncertainties in the initial velocities makes bodies’ positions also interval.
Due to a large number of uncertainties, the application of the classical adaptive interpolation algorithm to this problem becomes difficult. Therefore, all calculations are performed using sparse grids. Table 3 shows that an increase in the degree of interpolation makes it possible to significantly reduce computational costs and obtain a more accurate solution. Obtaining an e r r o r value smaller than ε is associated with the fact that, when using a large degree of interpolation, grid compaction leads to a sharp increase in accuracy, which is substantially less than the given value ε . And even in spite of the error accumulation at each step, at the final moment of time, the total error does not exceed ε .
Figure 9 shows some projections of the resulting nine-dimensional adaptive sparse grid during the integration of system (21) using different bases. Figure 9b shows the structure of the grid: three-dimensional subsets (cubes) are distinguished. This is primarily due to the fact that the uncertainty in the initial velocity of a particular body mainly affects only the position and velocity of the same body. Therefore, the grid compaction mainly occurs only in subsets that correspond to interval uncertainties within a single body.

5. Discussion

According to the values given in Table 1, Table 2 and Table 3 it can be concluded that the use of adaptive sparse grids with nonlinear basis allows significantly reducing the computational costs in modeling of dynamic systems with interval parameters. Criterion I is the main characteristic of computational costs. Compared to the classical version of the adaptive interpolation algorithm, the sparse mesh version of the algorithm works 3–7 times faster for p = 4 and 10–20 times faster for p = 2 with ϵ = 10 5 . It is important to note that problem (21) was solved only using an algorithm based on sparse grids, since the application of the classical adaptive interpolation algorithm to this problem is difficult due to the large number of interval uncertainties. The results obtained confirm the advantage of using sparse grids in terms of reducing the computational load. Note that criterion value I significantly decreases at transition from linear to quadratic basis and less significantly decreases at the transition from quadratic to fourth-degree basis. In particular, this can be related to both the peculiarities of the ODE system and the dimensionality of the uncertainty area (the number of interval parameters), and the fact that the nonlinear basis begins to be involved only from a certain level l. In general, the use of a nonlinear basis in comparison with a linear basis for sparse grids reduces computational costs by 3–16 times. The expressions for the weighting coefficients (9), (13) and (15) have a recursive form and are convenient for further software implementation, since they make it possible to avoid complex nested loops. The weight coefficients allow one to immediately estimate the discrepancy and in accordance with their values effectively adapt the grid.

6. Conclusions

This paper considers a modification of the adaptive interpolation algorithm for modeling dynamic systems with interval parameters using sparse grids with a nonlinear basis. The classical version of the algorithm uses full grid interpolation and consequently has exponential complexity with respect to the number of interval parameters. Sparse grid interpolation requires significantly less computational resources than full grid interpolation, so its use seems promising. Earlier, the effectiveness of sparse grids with a linear basis for solving this class of problems was shown. In this paper, a combination of sparse grids with a nonlinear basis is used. Construction of a quadratic basis and a basis of the fourth degree is executed. The obtained expressions for weight coefficients are convenient for further programming and adaptation. The efficiency and robustness of the sparse grid-based adaptive interpolation algorithm with a nonlinear basis have been demonstrated using a representative set of problems. In certain cases, the computational cost reduction by several orders of magnitude is obtained.

Author Contributions

Methodology, software, investigation, validation, A.Y.M.; conceptualization, methodology, supervision, D.L.R. All authors have read and agreed to the published version of the manuscript.

Funding

This research was supported by the Ministry of Science and Higher Education of the Russian Federation, project No. 075-15-2020-799.

Data Availability Statement

Data sharing not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

Abbreviations

The following abbreviation is used in this manuscript:
ODEOrdinary differential equation

References

  1. Moore, R.E.; Kearfott, R.B.; Cloud, M.J. Introduction to Interval Analysis; Society for Industrial and Applied Mathematics: Philadelphia, PA, USA, 2009. [Google Scholar] [CrossRef] [Green Version]
  2. Dobronets, B.S. Interval Mathematics; Krasnoyarsk State University: Krasnoyarsk, Russia, 2007. [Google Scholar]
  3. Shary, S. Interval Regularization for Inaccurate Linear Algebraic Equations; Chapter in the book: Beyond Traditional Probabilistic Data Processing Techniques: Interval, Fuzzy etc. Methods and Their Applications; Springer: Cham, Switzerland, 2020; pp. 375–398. [Google Scholar] [CrossRef]
  4. Rihm, R. Interval methods for initial value problems in ODEs. In Topics in Validated Computations; Herzberger, J., Ed.; Elsevier: Amsterdam, The Netherlands, 1994; pp. 173–208. [Google Scholar]
  5. Chernousko, F.L. Evaluation of Phase States of Dynamic Systems. The Method of Ellipsoids; Science: Moscow, Russia, 1998; p. 319. [Google Scholar]
  6. Lohner, R.J. Enclosing the solutions of ordinary initial and boundary value problems. In Computer Arithmetic: Scientific Computation and Programming Languages; Kaucher, E.W., Kulisch, U.W., Ullrich, C., Eds.; Wiley-Teubner Series in Computer Science: Stuttgart, Germany, 1987; pp. 255–286. [Google Scholar]
  7. Neumaier, A. The Wrapping Effect, Ellipsoid Arithmetic, Stability and Confidence Regions. Comput. Suppl. 1993, 9, 175–190. [Google Scholar] [CrossRef] [Green Version]
  8. Makino, K.; Berz, M. Verified Computations Using Taylor Models and Their Applications. In Numerical Software Verification, Proceedings of the 10th International Workshop, NSV 2017, Heidelberg, Germany, 22–23 July 2017; Springer International Publishing: Berlin/Heidelberg, Germany, 2017; pp. 3–13. [Google Scholar]
  9. Neher, M.; Jackson, K.; Nedialkov, N. On Taylor model based integration of ODEs. SIAM J. Numer. Anal. 2007, 45, 236–262. [Google Scholar] [CrossRef] [Green Version]
  10. Rogalev, A.N. Guaranteed Methods of Ordinary Differential Equations Solution on the Basis of Transformation of Analytical Formulas. Vychisl. Tekhnol. 2003, 8, 102–116. [Google Scholar]
  11. Rogalev, A.N.; Rogalev, A.A. Estimates of the accuracy of numerical solutions using regularization. J. Phys. Conf. Ser. 2020, 1441, 012165. [Google Scholar] [CrossRef]
  12. Ermakov, S.M.; Mikhailov, G.A. Statistical Modeling; Science: Moscow, Russia, 1982. [Google Scholar]
  13. Morozov, A.Y.; Reviznikov, D.L. Adaptive Interpolation Algorithm Based on a kd-Tree for Numerical Integration of Systems of Ordinary Differential Equations with Interval Initial Conditions. Differ. Equ. 2018, 54, 945–956. [Google Scholar] [CrossRef]
  14. Fu, C.; Ren, X.; Yang, Y.; Lu, K.; Qin, W. Steady-state response analysis of cracked rotors with uncertain-but-bounded parameters using a polynomial surrogate method. Commun. Nonlinear Sci. Numer. Simul. 2018, 68, 240–256. [Google Scholar] [CrossRef]
  15. Fu, C.; Xu, Y.; Yang, Y.; Lu, K.; Gu, F.; Ball, A. Response analysis of an accelerating unbalanced rotating system with both random and interval variables. J. Sound Vib. 2020, 466, 115047. [Google Scholar] [CrossRef]
  16. Nickel, K. How to fight the wrapping effect. In Interval Mathematics, Proceedings of the International Symposium, Freiburg i.Br., Federal Republic of Germany, 23–26 September 1985; Springer: Berlin/Heidelberg, Germay, 1985; pp. 121–132. [Google Scholar]
  17. Morozov, A.Y.; Zhuravlev, A.A.; Reviznikov, D.L. Analysis and Optimization of an Adaptive Interpolation Algorithm for the Numerical Solution of a System of Ordinary Differential Equations with Interval Parameters. Differ. Equ. 2020, 56, 935–949. [Google Scholar] [CrossRef]
  18. Morozov, A.Y.; Reviznikov, D.L.; Gidaspov, V.Y. Adaptive Interpolation Algorithm Based on a kd-Tree for the Problems of Chemical Kinetics with Interval Parameters. Math. Model. Comput. Simul. 2019, 11, 622–633. [Google Scholar] [CrossRef]
  19. Morozov, A.Y.; Reviznikov, D.L. Modeling of Dynamic Systems with Interval Parameters in the Presence of Singularities. Russ. J. Nonlinear Dyn. 2020, 16, 479–490. [Google Scholar] [CrossRef]
  20. Morozov, A.Y.; Zhuravlev, A.A.; Reviznikov, D.L. Sparse Grid Adaptive Interpolation in Problems of Modeling Dynamic Systems with Interval Parameters. Mathematics 2021, 9, 298. [Google Scholar] [CrossRef]
  21. Smoliak, S. Quadrature and Interpolation Formulae on Tensor Products of Certain Classes of Functions. Dokl. Akad. Nauk. Sssr 1963, 148, 1042–1045. [Google Scholar]
  22. Morozov, A.Y.; Reviznikov, D.L. Adaptive Interpolation Algorithm on Sparse Meshes for Numerical Integration of Systems of Ordinary Differential Equations with Interval Uncertainties. Differ. Equ. 2021, 57, 947–958. [Google Scholar] [CrossRef]
  23. Gidaspov, V.Y.; Morozov, A.Y.; Reviznikov, D.L. Adaptive Interpolation Algorithm Using TT-Decomposition for Modeling Dynamical Systems with Interval Parameters. Comput. Math. Math. Phys. 2021, 61, 1387–1400. [Google Scholar] [CrossRef]
  24. Oseledets, I.V. Tensor-train decomposition. SIAM J. Sci. Comput. 2011, 33, 2295–2317. [Google Scholar] [CrossRef]
  25. Oseledets, I.; Tyrtyshnikov, E. TT-cross approximation for multidimensional arrays. Linear Algebra Its Appl. 2010, 432, 70–88. [Google Scholar] [CrossRef] [Green Version]
  26. Yserentant, H. Hierarchical bases. In Proceedings of the ICIAM 91: Second International Conference on Industrial and Applied Mathematics, Washington, DC, USA, 8–12 July 1991; pp. 256–276. [Google Scholar]
  27. Judd, K.L.; Maliar, L.; Maliar, S.; Valero, R. Smolyak method for solving dynamic economic models: Lagrange interpolation, anisotropic grid and adaptive domain. J. Econ. Dyn. Control 2014, 44, 92–123. [Google Scholar] [CrossRef] [Green Version]
  28. Bungatrz, H.J. Finite Elements of Higher Order on Sparse Grids; Shaker Verlag: Duren/Maastricht, Germany, 1998; p. 127. [Google Scholar]
  29. Bungartz, H.J.; Dirnstorfer, S. Higher Order Quadrature on Sparse Grids. In Proceedings of the Computational Science—ICCS 2004, Krakow, Poland, 6–9 June 2004; Springer: Berlin/Heidelberg, Germany, 2004; pp. 394–401. [Google Scholar]
  30. Shary, S. Randomized algorithms in interval global optimization. Numer. Anal. Appl. 2008, 1, 376–389. [Google Scholar] [CrossRef]
Figure 1. Linear hierarchical basis.
Figure 1. Linear hierarchical basis.
Computation 11 00149 g001
Figure 2. Determination of weighting coefficients a l , i in the case of a quadratic basis.
Figure 2. Determination of weighting coefficients a l , i in the case of a quadratic basis.
Computation 11 00149 g002
Figure 3. A quadratic hierarchical basis.
Figure 3. A quadratic hierarchical basis.
Computation 11 00149 g003
Figure 4. Determination of weighting coefficients a l , i in the case of the fourth-degree basis.
Figure 4. Determination of weighting coefficients a l , i in the case of the fourth-degree basis.
Computation 11 00149 g004
Figure 5. Hierarchical basis of the fourth degree.
Figure 5. Hierarchical basis of the fourth degree.
Computation 11 00149 g005
Figure 6. Set of solutions for system (17) (upper figures) and the corresponding grid (lower figures) at different points in time.
Figure 6. Set of solutions for system (17) (upper figures) and the corresponding grid (lower figures) at different points in time.
Computation 11 00149 g006
Figure 7. Set of solutions to system (19) (upper figures) and the corresponding grid (lower figures) at different points in time.
Figure 7. Set of solutions to system (19) (upper figures) and the corresponding grid (lower figures) at different points in time.
Computation 11 00149 g007
Figure 8. Uncertainties in the position of bodies at different moments of time.
Figure 8. Uncertainties in the position of bodies at different moments of time.
Computation 11 00149 g008
Figure 9. Adaptive sparse grid at a finite point in time: (a) linear basis; (b) quadratic basis; (c) fourth-degree basis.
Figure 9. Adaptive sparse grid at a finite point in time: (a) linear basis; (b) quadratic basis; (c) fourth-degree basis.
Computation 11 00149 g009
Table 1. Comparison of different methods for the system of Equation (17).
Table 1. Comparison of different methods for the system of Equation (17).
MethodsInterpolation Order ϵ = 10 3 ϵ = 10 5
I , × 10 3 Error I , × 10 3 Error
Adaptive sparse grid1 2.3 6.6 × 10 3 31.8 9.3 × 10 5
2 1.1 4.2 × 10 3 7.0 7.1 × 10 5
4 0.7 3.9 × 10 3 3.4 5.3 × 10 5
Classic algorithm1 35.7 7.5 × 10 3
2 3.9 1.2 × 10 2 82.1 1.7 × 10 4
4 1.6 1.4 × 10 2 9.7 1.1 × 10 4
Table 2. Comparison of different methods using the system of Equation (19).
Table 2. Comparison of different methods using the system of Equation (19).
MethodsInterpolation Order ϵ = 10 3 ϵ = 10 5
I , × 10 3 Error I , × 10 3 Error
Adaptive sparse grid1 2.5 5.1 × 10 3 32.3 8.9 × 10 5
2 1.0 2.3 × 10 3 6.1 2.3 × 10 5
4 0.7 3.2 × 10 3 2.0 1.3 × 10 5
Classic algorithm2 6.4 9.6 × 10 3 120.3 1.2 × 10 4
4 4.3 1.1 × 10 2 14.2 6.6 × 10 5
Table 3. Comparison of different bases for the system of Equation (21).
Table 3. Comparison of different bases for the system of Equation (21).
Interpolation Order ϵ = 10 3 ϵ = 10 5
I , × 10 3 Error I , × 10 3 Error
1 144.3 1.6 × 10 2
2 34.2 3.4 × 10 3 97.9 8.0 × 10 5
4 27.1 7.1 × 10 5 42.0 6.4 × 10 6
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Morozov, A.Y.; Reviznikov, D.L. Adaptive Sparse Grids with Nonlinear Basis in Interval Problems for Dynamical Systems. Computation 2023, 11, 149. https://doi.org/10.3390/computation11080149

AMA Style

Morozov AY, Reviznikov DL. Adaptive Sparse Grids with Nonlinear Basis in Interval Problems for Dynamical Systems. Computation. 2023; 11(8):149. https://doi.org/10.3390/computation11080149

Chicago/Turabian Style

Morozov, Alexander Yu., and Dmitry L. Reviznikov. 2023. "Adaptive Sparse Grids with Nonlinear Basis in Interval Problems for Dynamical Systems" Computation 11, no. 8: 149. https://doi.org/10.3390/computation11080149

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop