Keywords

1 Introduction

The simulation of complex dynamic objects (aircraft, vehicles, processes and systems) leads to a differential equations system, which is based on the physical laws. Thus, this system of differential equations defines the object individual elements and their relationship, and in addition, it links the object reaction to the set of external influences. Often, this is due to the significantly different description of such nonlinear phenomena: the mechanical effects of dry friction and aerodynamic “stall” backlash effects [2,3,4], the complex electromagnetic and thermodynamic processes and to many other factors. Usually, these objects are not define with appropriate theoretical methods, due to the incomplete laws knowledge of these processes. In this paper, the physical tests of real objects or their scale models have been performed. The examples are, the wind tunnel simulations of the airplane or motorcar models. The experiments based on the computer modeling for the universal systems [2,3,4,5,6,7,8] are widely used. The models parameters are specified on the basis of these experiments. However, there are difficulties associated with a significant non-linearity present in these models [5,6,7,8].

For the technical devices, processes and systems, which are largely based on the heuristic designers ideas, when developed for the first time, the analytical modeling is generally unavailable or results in a very unsatisfactory accuracy, because it is determined by numerous hard accounted factors. In this case, it is advisable to pursue the models construction taking directly their experimental characteristics. Often, these characteristics are essentially nonlinear. In many cases, when approximating the static characteristics, it is sufficient to define a piecewise approximation. However, in dynamic models, such decision creates considerable difficulty in defining the models solution and their mathematical transformations.

The background of the approximation problem for the effective solution is published in several references [1,2,3, 5, 6]. The proposed CGA method is based on the multiplicative “cutting” of the modeled dependences, which are well-approximated sections, and the additive “gluing” combines them into a single analytic function. At the same time, for the used “cut” analytic function makes the final expression characterized with the analytic properties. The latter, is the main feature and advantage of the method, because it is not only numerical, but in addition, analyzes the resulting conversion model.

Today, the effectiveness of the proposed approximation solution is theoretically proved and practically confirmed only for 1- and 2-dimensional dependencies [1, 9]. In [10], the possibility and prospects of the proposed approach application for approximating the arbitrary dimension dependencies are demonstrated. This significantly broadens the method scope and its importance in the field of science and practice.

“Cut” is a process in CGA that “cut” a fragment, which approximates some experimental dependence, which is plotted on the selected fragment boundaries [1]. Mathematically, this corresponds to the experimental data single matrix cut into several fragments, while preserving the common borders. The boundaries are defined by the description accuracy condition of the section, which is approximated by the analytic function. The MAF structure includes the edge steepness parameter—ε. In a previous work [1], the author citied a condition for the most effective option, when using this parameter. This effectiveness is due to programming expertise, and, as the research shows, it is only effective for a sufficiently accurate reproduction of the approximation function for the fragment boundaries.

“Glue” is the process in CGA that provides a single analytic function, describing the researching region of the object characteristics [1]. The combined fragments, i.e., gluing them together after the “cut” operation, are obtained by performing the algebraic summation. After the series of pilot experiments, the authors have found that the variation in the ε values for the various coordinates in a multidimensional space can improve the approximation result for the “glue” procedure. It is decided to investigate the possibility of optimizing the ε parameter for each selected fragment of the specific 2-dimensional CGA problem.

2 Problem Formulation

The objective is to research MAF, its approximation characteristics and its general mathematical special properties, by providing the reception of the interval isolated fragments (IIF) from the approximated fragment function (AFF), which is locally approximating the fragments of the experimental dependences. The develop methodology for the MAF settings ensures the highest approximation accuracy.

3 Research Techniques

According to the CGA theoretical foundations the ε parameter is a real number, and to optimize it is desirable to use the algorithm from the continuity optimization methods group. In addition, the analytical complexity of the n-dimensional MAF and the resulting CGA function make use of the search optimization algorithm. One of the proven methods, to meet the challenges of finding the optimal research objects parameter, are heuristics algorithms, which are based on the groups behavior of animals, insects, etc. The obvious representative of this trend is PSO. The algorithm is similar to the behavioral characteristics of the insects swarm [11,12,13,14,15].

Previously, the authors carried out a number of works [16,17,18,19] on PSO research and its performance, as well as the modifications to improve the accuracy, resource finding optima efficiency, in order to expand its application functionality. In particular, its adaptation to the multiextremal tasks solution. However, the pilot investigations revealed that the 2-dimensional case, with εx and εy, has only one value, which varies depending on the selected criterion, when considering a range of values in the matrix of the absolute errors. In this paper, we seek to research the ε parameter in 2-dimensional search space covering x and y of each selection. We need to compare the obtained and pilot research results. This implies further research, with the structural modifications and parametric optimization of the PSO mechanical model parameters.

4 PSO MM Modification

The swarming is physically connected with the movement of the real inertial particle, with the equations defining the fundamental mechanical laws:

$$ X_{ti} = X_{{\left( {t -\Delta t} \right)i}} + \vec{V}_{{\left( {t -\Delta t} \right)i}}\Delta t, $$
(1)
$$ \vec{V}_{ti} = \vec{V}_{{\left( {t -\Delta t} \right)i}} + \vec{A}_{{\left( {t -\Delta t} \right)i}}\Delta t, $$
(2)
$$ \vec{A}_{i} = \vec{A}_{pi} + \vec{A}_{tri} , $$
(3)
$$ \vec{A}_{pi} = \vec{A}_{pi}^{G} + \vec{A}_{pi}^{L} ,\;\vec{A}_{pi}^{Q} = \vec{G}_{Q} m_{i} m_{r} /(r^{2} + \varepsilon )\quad Q \in \{ G,L\} , $$
(4)
$$ \vec{A}_{tri} = - \mu \vec{V}_{{\left( {t -\Delta t} \right)i}} , $$
(5)

where: \( X_{{\left( {t -\Delta t} \right)i}} \) and \( X_{ti} \)—is the previous and current position of the ith particle; \( \Delta t \)—is the integration interval by time; \( \vec{V}_{{\left( {t -\Delta t} \right)i}} \) and \( \vec{V}_{ti} \)—is the speed of the ith particle in the previous and current times; \( \vec{A}_{{\left( {t -\Delta t} \right)i}} \)—is the particle acceleration at previous moment; \( \vec{A}_{pi}^{G} \), \( \vec{A}_{pi}^{L} \)—is the “biological attraction” acceleration of the particles to a global extremum and to the best position for the particle at all time; \( \vec{A}_{tri} \)—is the slowing by friction; \( \vec{G}_{Q} \)—is the “biological gravity” analogue; \( m_{i} \) = \( m_{r} \)—is the attracted particles masses biosimilars; \( r \)—is the distance between the current particle position and the current extremum; \( \varepsilon \)—is the small correction constant (\( \varepsilon \) = 1e-15, eliminating the problems at \( r \) = 0), \( \mu \)—is the friction coefficient.

To simulate some features, which are inherent to the living beings, an incomplete behavior predictability model is used that form the stochastic “blur” [16] of its basic parameters (geometric, kinematic and dynamic), as defined in the Eqs. 1 and 2. For this purpose, in the model is introduced the random function, with the symmetrical distribution in respect to the nominal value and adjustable range, specifying the “blurring” part of each parameter:

$$ \lambda^{\pi } \left( \xi \right) = \lambda \cdot (1 + 2\xi \cdot \left( {rnd\left( 1 \right) - 0.5} \right)),\lambda^{\pi } \left( \xi \right) \in \{ \mu ,\vec{G}_{Q} ,C_{Q} ,An,D\} , $$
(6)

where: \( \xi \)—is the relative departure of the distorted parameter from the nominal value; \( rnd\left( 1 \right) \)—is a random real number in the [0, 1] range; \( C_{Q} \)—is the apparent particles gravity center; \( An \)—is the angle of particles reflection from the consideration boundary; \( D \)—is the dissipation factor (loss of energy in an inelastic particle collision of the border).

The composition of the total acceleration is caused by the attractive forces (biological analogues) of the particles including the conditional “global” and “local” attraction.

5 MAF Parameters Influence on the Approximation Quality in IIF “Gluing”

The final step in the general CGA procedure is the cut of IIF from AAF, and their subsequent “gluing” into a single MM. According to [10], the transformation is using the following formulas:

$$ f_{{\left( {i_{1} , \ldots i_{n} } \right)}} \left( {\vec{x}} \right) = \varphi_{{\left( {i_{1} , \ldots i_{n} } \right)}} \left( {\vec{x}} \right) \cdot \lambda_{{\left( {i_{1} , \ldots i_{n} } \right)}} \left( {\vec{x},\vec{x}_{{\left( {i_{1} - 1, \ldots i_{n} - 1} \right)}} ,\vec{x}_{{\left( {i_{1} , \ldots i_{n} } \right)}} ,\varepsilon_{j} } \right), $$
(7)
$$ \lambda_{{\left( {i_{1} , \ldots i_{n} } \right)}} \left( {\vec{x},\vec{x}_{{\left( {i_{1} - 1, \ldots i_{n} - 1} \right)}} ,\vec{x}_{{\left( {i_{1} , \ldots i_{n} } \right)}} ,\varepsilon_{j} } \right) = \prod\nolimits_{j = 1}^{n} {} \lambda_{{j_{i} }} \left( {x_{j} ,x_{{j_{i - 1} }} ,x_{{j_{i} }} ,\varepsilon_{j} } \right), $$
(8)
$$ \lambda_{{j_{i} }} \left( {x_{j} ,x_{{j_{i - 1} }} ,x_{{j_{i} }} ,\varepsilon_{j} } \right) = 0.25 \cdot \sigma_{l} \left( {x_{j} ,x_{{j_{i - 1} }} ,\varepsilon_{j} } \right) \cdot {{\sigma_{r} \left( {x_{j} ,x_{{j_{i} }} ,\varepsilon_{j} } \right)} \mathord{\left/ {\vphantom {{\sigma_{r} \left( {x_{j} ,x_{{j_{i} }} ,\varepsilon_{j} } \right)} {\delta \left( {x_{j} ,x_{{j_{i - 1} }} ,x_{{j_{i} }} ,\varepsilon_{j} } \right)}}} \right. \kern-0pt} {\delta \left( {x_{j} ,x_{{j_{i - 1} }} ,x_{{j_{i} }} ,\varepsilon_{j} } \right)}}, $$
(9)

where:

$$ \begin{aligned} \sigma_{l} \left( {x_{j} ,x_{{j_{i - 1} }} ,\varepsilon_{j} } \right) &= x_{j} - x_{{j_{i - 1} }} + \sqrt {\left( {x_{j} - x_{{j_{i - 1} }} } \right)^{2} + \varepsilon_{j}^{2} } ;\\ \sigma_{r} \left( {x_{j} ,x_{{j_{i} }} ,\varepsilon_{j} } \right) &= x_{{j_{i} }} - x_{j} + \sqrt {\left( {x_{{j_{i} }} - x_{j} } \right)^{2} + \varepsilon_{j}^{2} } . \end{aligned}$$
$$ \delta \left( {x_{j} ,x_{{j_{i - 1} }} ,x_{{j_{i} }} ,\varepsilon_{j} } \right) = \sqrt {\left[ {\left( {x_{j} - x_{{j_{i - 1} }} } \right)^{2} + \varepsilon_{j}^{2} } \right] \cdot \left[ {\left( {x_{{j_{i} }} - x_{j} } \right)^{2} + \varepsilon_{j}^{2} } \right],} $$
(10)
$$ f\left( {\vec{x}} \right) = \sum\nolimits_{j = 1}^{n} {\sum\nolimits_{{i_{j} = 1}}^{{n_{j} }} {f_{{\left( {i_{1} , \ldots i_{j} , \ldots i_{n} } \right)}} \left( {\vec{x}} \right).} } $$
(11)

The initial data for the preliminary problem solution have been generated by the authors. As a result, for the selected conditional experiment parameters: the equation in the form of a 3rd degree polynomial function with 2 variables and corresponding coefficients b is defined as follows:

$$ \begin{aligned} {\text{F}}\left( {{\text{x}},{\text{y}}} \right) & = b_{0} + b_{1} x + b_{2} y + b_{11} x^{2} + b_{12} xy + b_{22} y^{2} \\ & \quad + b_{111} x^{3} + b_{112} x^{2} y + b_{122} xy^{2} + b_{222} y^{3} , \\ \end{aligned} $$
(12)

where: b 0 = 200, b 1 = 8, b 2 = −12, b 11 = 1.95, b 12 = −0.18, b 22 = 1.72, b 111 = 0.08, b 112 = 0.023, b 122 = −0.08, b 222 = 0.1; 10-dimension vector x, 8-dimension vector y, defining the simulated experiment grid.

The resulting matrix is divided into 4 contiguous areas with common borders. Figure 1 displays the original experimental data. The rows in the figure correspond to the x values, the columns correspond to the y values. Figure 2 displays the data graphics.

Fig. 1
figure 1

Experimental data matrix

Fig. 2
figure 2

Experimental data graphs: a entire, b by fragment

For each fragment, the 2nd regression equation with the corresponding coefficients b (see Table 1) is defined as:

Table 1 Obtained b coefficients from 4-regression equation
$$ \varphi^{i} \left( {x,y} \right) = b_{0}^{i} + b_{1}^{i} x + b_{2}^{i} y + b_{11}^{i} x^{2} + b_{12}^{i} xy + b_{22}^{i} y^{2} ,\;i \in \{ 1,2,3,4\} , $$
(13)

In accordance with the problem statement, for the experiments the following data are selected: (εxi, εyi) ∈ (0, 1], i ∈ {1, 2, 3, 4}, the iterations number—300, the particles number—100. In addition, other PSO mechanical model parameters were set for the problem under consideration. The assessment criterion and the minimization of the error for the entire dependence approximation and fragments in the pilot research are the mean-square deviation (MSD) and the max error in the absolute errors matrix. In addition, the experience has shown that it is appropriate to identify the matrix key areas, which also apply to the selected assessment criterion. Therefore, the objects approximation accuracy ranking can be result in several mathematical constructs derived from CGA. First, these include the entire matrix of the experimental data. Second, the following can be considered: the matrix without border values ​​(according to (9), corner and edge function value, except the conjugating values, little dependence on ε, and, to a greater extent, depending on the order approximated). Third, the “gluing” fragments common border, not including the border values of the entire matrix (these elements are mostly depending on ε). Fourth and fifth, viewed separately the “gluing” fragments common edges (vertical and horizontal). All these CGA accuracy ranking objects are used in the current work.

In this research, the PSO agents search is done in the 8-dimensional space and their movement is displayed without releasing the projections in the subspace (3 degree maximum). For clarity, Figs. 3 and 4 illustrate the data, displayed in the window parts of the developed software, resulting from the search for an extremum in 2-dimensional space. Figure 3 shows the output data. Figure 4 shows the visualization of the swarm movement at the extremum localization time. The two experiments results are performed with the selected criteria and considering the areas defined in the absolute errors matrix, as shown in Table 2.

Fig. 3
figure 3

Outputs in “Glue_MSP” software

Fig. 4
figure 4

Visualization the swarm movement in “Glue_MSP” software

Table 2 Experimental result

The total operation time spent to carry out all the experiments with 300 iterations is ~1.1 s. The PSO operation time spent on finding the extrema, is described in Table 2, with ~160 iteration— ~0.7 s. As can be seen from Table 2, the obtained values of MSD, Max, εx and εy are highly dependent on the selected criteria range values.

Table 3 contains the results obtained from the ε parameter optimization, performed for each fragment and the ε parameter optimization for all fragments within the pilot research.

Table 3 Test results comparison

The data comparison have shown the following: the total operation time spent on carrying out all experiments with 300 iterations, has reduced by ~50%, MSD and max errors have decreased by ~17 and ~8.3%, respectively.

6 Conclusion

The following conclusions can be drawn from the current work results:

  • ε parameter has not, in general, a universal value for all the fragments;

  • in ε parameter optimization for each fragment, the values of these parameters depend only on the problem properties, and the visible relationships were found between them;

  • ε parameter in 2 dimensions for each fragment has only one value, which varies according to the chosen criterion, and within the considered range of values in the absolute errors matrix;

  • when optimizing ε parameter for each fragment, MSD and max absolute error decreased by ~17 and ~8.3% respectively, which is relative to the common ε parameter optimization results for all the fragments, obtained in the pilot research;

  • the authors developed the PSO modification, which has proved to be an effective tool for the ε parameter sub-optimization problems solution in 2-dimensional CGA MAF.