75 for(
int i=0; i<
nx*
nx; i++ )
Q(i) = 0.0;
142 for(
int i=0; i<(int) x.
getDim(); i++ ){
143 if( diam(x(i)) >
EQUALITY_EPS ){ xx(i) =
T( &Mod, nn, x(i) ); nn++; }
146 for(
int i=0; i<(int) p.
getDim(); i++ ){
147 if( diam(p(i)) >
EQUALITY_EPS ){ pp->operator()(i) =
T( &Mod, nn, p(i) ); nn++; }
148 else pp->operator()(i) = p(i);
150 for(
int i=0; i<(int) w.
getDim(); i++ ){
151 if( diam(w(i)) >
EQUALITY_EPS ){ ww->operator()(i) =
T( &Mod, nn, w(i) ); nn++; }
152 else ww->operator()(i) = w(i);
182 for(
int i=0; i<
nx*
nx; i++ ){
186 for(
int j=0; j<
N; j++ ) r_i += ::
pow(h,j+1)*C(i+(j+1)*nx*nx);
197 for(
int i=0; i<
nx*
nx; i++ ){
201 for(
int j=0; j<
N; j++ ) r_i += ::
pow(h,j+1)*C(i+(j+1)*nx*nx);
213 return 0.5*
acadoMax( ::fabs(E.
l()), ::fabs(E.
u()) )/
214 ( TOL*
acadoMax( ::fabs(X.
l()), ::fabs(X.
u()) ) + ATOL );
224 for(
int i=0; i < (int) E.
getDim(); i++ ) sum +=
scale(
E(i),X(i));
226 return sum/((double) E.
getDim());
234 for(
int i=0; i<
nx; i++ )
235 for(
int j=0;j<
nx;j++)
241 for(
int i=0; i<
nx; i++ ) trQ +=
Q(i,i)/(
Q(i,i)+1e-8);
245 for(
int i=0; i<
nx; i++ ) sqrR(i) =
acadoMax(::fabs(
R(i).l()),::fabs(
R(i).u()))/
::sqrt(
Q(i,i)+1e-8);
248 for(
int i=0; i<
nx; i++ ) kappa += sqrR(i);
250 Q *= kappa/(trQ+
EPS);
251 for(
int i=0; i<
nx; i++ ){
252 double tmp =
acadoMax(::fabs(
R(i).l()),::fabs(
R(i).u()));
254 Q(i,i) += tmp*tmp+
EPS;
271 for(
int i=0; i < (int) A.
getDim(); i++ ){
272 if(
A(i).l() < B(i).l() ||
A(i).u() > B(i).u() ){ result =
BT_FALSE; }
virtual returnValue setupOptions()
virtual ~EllipsoidalIntegrator()
int * getComponents() const
Implements a templated dense matrix class.
IntermediateState sqrt(const Expression &arg)
Tmatrix< Interval > getStateBound(const Tmatrix< T > &x) const
USING_NAMESPACE_ACADO typedef TaylorVariable< Interval > T
void copy(const EllipsoidalIntegrator &arg)
C++ template class for definition of and operation on variables in a Taylor model.
Tmatrix< Interval > integrate(double t0, double tf, int M, const Tmatrix< Interval > &x)
const double defaultMaxStepsize
int acadoMax(const int x, const int y)
Expression getCol(const uint &colIdx) const
const double & l() const
Returns the lower bounding value.
BEGIN_NAMESPACE_ACADO const double EPS
Allows to pass back messages to the calling function.
Tmatrix< Interval > boundQ() const
AlgorithmicBase & operator=(const AlgorithmicBase &rhs)
IntermediateState pow(const Expression &arg1, const Expression &arg2)
Base class for all algorithmic modules within the ACADO Toolkit providing some basic functionality...
void updateQ(Tmatrix< double > C, Tmatrix< Interval > R)
double norm(const Tmatrix< Interval > &E, Tmatrix< Interval > &X) const
const double defaultStepsizeTuning
BooleanType isIncluded(const Tmatrix< Interval > &A, const Tmatrix< Interval > &B) const
const double defaultMinStepsize
virtual EllipsoidalIntegrator & operator=(const EllipsoidalIntegrator &arg)
const int defaultMaxNumSteps
#define CLOSE_NAMESPACE_ACADO
Implements a rudimentary interval class.
const double defaultIntegratorTolerance
BooleanType isODE() const
int acadoFactorial(int n)
const int defaultIntegratorPrintlevel
Expression ADforward(const Expression &arg) const
double scale(const Interval &E, const Interval &X) const
Expression getODEexpansion(const int &order) const
Validated integrator for ODEs based on Taylor models with ellipsoidal remainder term.
const double & u() const
Returns the upper bounding value.
unsigned int getDim() const
returnValue init(const DifferentialEquation &rhs_, const int &N_=3)
const int defaultprintIntegratorProfile
Tmatrix< Interval > evalC(const Tmatrix< double > &C, double h) const
const double EQUALITY_EPS
#define BEGIN_NAMESPACE_ACADO
Tmatrix< double > evalC2(const Tmatrix< double > &C, double h) const
returnValue addOption(OptionsName name, int value)
const double defaultAbsoluteTolerance
#define ACADOERROR(retval)
Allows to setup and evaluate differential equations (ODEs and DAEs) based on SymbolicExpressions.
void resize(const unsigned int nr, const unsigned int nc=1, const bool alloc=true)
Resets the dimension of a Tmatrix objects.
C++ class supporting the definition and computation of Taylor models for factorable functions...