25 struct GlobalEnclosureError :
public std::runtime_error {
26 GlobalEnclosureError() : std::runtime_error(
27 "Exceeded loop maximum range while looking for a global enclosure for the system.") {}
38 constexpr static const double FWD = 1., BWD = -1.;
107 const AnalyticFunction<VectorType> *_f;
127 CtcLohner(
const AnalyticFunction<VectorType>& f,
int contractions = 5,
double eps = 0.1);
140 AnalyticFunction<VectorType>
_f;
CtcLohner(const AnalyticFunction< VectorType > &f, int contractions=5, double eps=0.1)
Creates the contractor.
AnalyticFunction< VectorType > _f
forward function
Definition codac2_CtcLohner.h:140
double _eps
inflation parameter for the global enclosure
Definition codac2_CtcLohner.h:143
int _dim
dimension of the state vector
Definition codac2_CtcLohner.h:142
int _contractions
number of contractions of the global enclosure by the estimated local enclosure
Definition codac2_CtcLohner.h:141
void contract(SlicedTube< IntervalVector > &tube, TimePropag t_propa=TimePropag::FWD_BWD) const
Applies .
void contractStep(const IntervalVector &x)
contract the global & local enclosure of the previous integration step
const IntervalVector & integrate(unsigned int steps, double H=-1)
integrate the system over a given number of steps
const IntervalVector & getLocalEnclosure() const
Returns the current global enclosure, i.e. the box enclosing the trajectories between times and .
LohnerAlgorithm(const AnalyticFunction< VectorType > *f, double h, bool forward, const IntervalVector &u0, int contractions=1, double eps=0.1)
Creates a Lohner algorithm object.
const IntervalVector & getGlobalEnclosure() const
Returns the current local enclosure, i.e. the box enclosing the trajectories at time .
Definition codac2_OctaSym.h:21
Eigen::Matrix< double,-1, 1 > Vector
Alias for a dynamically-sized column vector of doubles.
Definition codac2_Vector.h:24
Eigen::Matrix< Interval,-1, 1 > IntervalVector
Alias for a dynamic-size column vector of intervals.
Definition codac2_IntervalVector.h:25
Eigen::Matrix< double,-1,-1 > Matrix
Alias for a dynamic-size matrix of doubles.
Definition codac2_Matrix.h:26
TimePropag
Enumeration specifying the temporal propagation way (forward or backward in time).
Definition codac2_TimePropag.h:23