Note that a generic analyzer based on the ALIAS parser has been developed and will be presented in the chapter devoted to the parser. This generic analyzer enable to analyze almost any type of system in which at least one equation is algebraic in at least one of the unknowns.
The previous test is implemented for and . The procedure is implemented as:
int Krawczyk_Analyzer(int m,int n, INTERVAL_VECTOR (* IntervalFunction)(int,int,INTERVAL_VECTOR &), INTERVAL_MATRIX (* J)(int, int, INTERVAL_VECTOR &),INTERVAL_VECTOR &Input)with
int Kantorovitch(int m,VECTOR (* TheFunction)(VECTOR &),MATRIX (* Gradient)(VECTOR &), INTERVAL_MATRIX (* Hessian)(int, int, INTERVAL_VECTOR &),VECTOR &Input,double *eps)
int Kantorovitch(int m, INTERVAL_VECTOR (* TheIntervalFunction)(int,int,INTERVAL_VECTOR &), INTERVAL_MATRIX (* Gradient)(int, int, INTERVAL_VECTOR &), INTERVAL_MATRIX (* Hessian)(int, int, INTERVAL_VECTOR &), VECTOR &Input,double *eps)There is also an implementation of Kantorovitch theorem for univariate polynomial, see section 5.2.12.
The most difficult part for using this theorem is to determine
. For algebraic equations it is easy to determine a value
, that we will call the order of Rouche theorem, such that
and consequently may be
obtained by computing
For non algebraic finding requires an analysis of the system.
Rouche theorem may be more efficient than Moore or Kantorovitvh theorems. For example when combined with a polynomial deflation (see section 5.9.6) it allows one to solve Wilkinson polynomial of order up to 18 with the C++ arithmetic on a PC, while stand solving procedure fails for order 13.
Rouche theorem is implemented in the following way:
int Rouche(int DimensionEq,int DimVar,int order, INTERVAL_VECTOR (* TheIntervalFunction)(int,int,INTERVAL_VECTOR &), INTERVAL_VECTOR (* Jacobian)(int, int, INTERVAL_VECTOR &), INTERVAL_MATRIX (* Gradient)(int, int, INTERVAL_VECTOR &), INTERVAL_VECTOR (* OtherDerivatives)(int, int, INTERVAL_VECTOR &), double Accuracy, int MaxIter, INTERVAL_VECTOR &Input, INTERVAL_VECTOR &UnicityBox)where
If a ball with a single solution has been found it will be returned in UnicityBox and the procedure returns 1, otherwise it returns 0.
If the flag ALIAS_Always_Use_Inflation is set to 1, then an inflation procedure is used to try to enlarge the box up to the accuracy ALIAS_Eps_Inflation.
The classical interval Newton method is embedded in the procedure
GradientSolve and HessianSolve but may also be useful in
other procedures. Furthermore this method relies on the use of the
product
where is the Jacobian of the system of
equations and the inverse of computed at some
particular point . In the classical method this product is
cimputed numerically and this does not take into account that the
element of
are functions of the same parameters. For example if the first column of
is where is some parameter with interval value, the
first element of
will be computer as
The procedure IntervalNewton is a sophisticated interval Newton algorithm that allows one to introduce knowledge on the product in the classical scheme. Its syntax is:
int IntervalNewton(int Dim,INTERVAL_VECTOR &P,INTERVAL_VECTOR &FDIM, INTERVAL_MATRIX &Grad,MATRIX &GradMid, MATRIX &InvGradMid, int hasBGrad, INTERVAL_VECTOR (* BgradFunc)(int,int,INTERVAL_VECTOR &), INTERVAL_MATRIX (* BgradJFunc)(int, int,INTERVAL_VECTOR &), int grad1, int grad3B1)where
Various variants of IntervalNewton are available:
int IntervalNewton(int Dim,INTERVAL_VECTOR &P,INTERVAL_VECTOR &FMID, INTERVAL_MATRIX &Grad,MATRIX &GradMid,MATRIX &InvGradMid)is the classical interval Newton method with hasBgrad=grad1=grad3B1=0.
int IntervalNewton(int Dim,INTERVAL_VECTOR &P,int DimVar,int DimEq, int TypeGradMid,MATRIX &InvGradMid, INTERVAL_VECTOR (*TheIntervalFunction)(int,int,INTERVAL_VECTOR &), INTERVAL_MATRIX (* Gradient)(int, int, INTERVAL_VECTOR &))is also the classical interval Newton method for a system having DimVar unknowns and DimEq equations (here DimVar and DimEq are not required to have the same value: only the Dim first equations will be considered). The flag TypeGradMid is used to determine how the mid jacobian matrix is calculated: if 0 this matrix is calculated for the mid-point of P, if 1 the mid-jacobian is calculated as the mid-matrix of the interval jacobian calculated for P.
int IntervalNewton(int Dim,INTERVAL_VECTOR &P,int DimEq,int DimVar, int has_BGrad, INTERVAL_VECTOR (* BgradFunc)(int,int,INTERVAL_VECTOR &), INTERVAL_MATRIX (* BgradJFunc)(int, int,INTERVAL_VECTOR &), int grad1,int grad3B1, int TypeGradMid, MATRIX &GradFuncMid, MATRIX &InvGradFuncMid, INTERVAL_VECTOR (* TheIntervalFunction)(int,int,INTERVAL_VECTOR &), INTERVAL_MATRIX (* Gradient)(int, int, INTERVAL_VECTOR &))Here the the mid jacobian GradFuncMid and its inverse InvGradFuncMid will be provided by the procedure.
Miranda theorem provides a simple way to determine if there is one, or more, solution of a system of equations in a given box. It has the advantage of not requiring the derivatives of the equations but the drawback of not provinding the proof of the existence of a single solution in the box.
Let a system with . Let us consider a ball for and define
The simplest implementation of the Miranda theorem is
int Miranda(int Dim,INTERVAL_VECTOR (* F)(int,int,INTERVAL_VECTOR &), INTERVAL_VECTOR &Input)where Dim is the number of equations, Input is a ball for the variables and F is a procedure in MakeF format that allows to compute an interval evaluation of the equations. This procedure returns 1 if Miranda theorem is satisfied for Input, 0 otherwise. This implementation is embedded in the Solve_General_Interval solving algorithm.
Another implementation uses the derivatives for improving the interval evaluation:
\begin{verbatim} int Miranda(int Dim, INTERVAL_VECTOR (* F)(int,int,INTERVAL_VECTOR &), INTERVAL_MATRIX (* J)(int,int,INTERVAL_VECTOR &), INTERVAL_VECTOR &Input)J is a procedure in MakeJ format that allows to compute the derivative of the equations.
Let a system , the Jacobian matrix of this system and a solution of the system. The purpose of the inflation method is to build a box that will contain only this solution. Let be a ball centered at : if for any point in is not singular, then the ball contains only one solution of the system.
The problem now is to determine a ball such for any point in the ball the Jacobian is regular. Let be the matrix whose components are intervals. Let be the diagonal element of H having the lowest absolute value, let be the maximum of the absolute value of the sum of the elements at row of , discarding the diagonal element of the row and let be the maximum of the 's. If , then the matrix is denoted diagonally dominant and all the matrices are regular [19].
Let be a small constant: we will build incrementally the ball by using an iterative scheme defined as:
int ALIAS_Epsilon_Inflation(int Dimension,int Dimension_Eq, INTERVAL_VECTOR (* TheIntervalFunction)(int,int,INTERVAL_VECTOR &), INTERVAL_MATRIX (* Gradient)(int, int, INTERVAL_VECTOR &), INTERVAL_MATRIX (* Hessian)(int, int, INTERVAL_VECTOR &), VECTOR &X0, INTERVAL_VECTOR &B)Note that the Hessian argument is not used in this procedure. This routine will return 1 if the inflation has succeeded. The value of can be found in the global variable. ALIAS_Eps_Inflation
jean-pierre merlet