62 for(
uint i=0; i<_dim; ++i )
199 double horizonLength = endTime - startTime;
200 if ( horizonLength <= 0.0 )
218 noiseGrid.
init( startTime,endTime );
237 currentNoise( j,i ) = noiseVector( 0 );
239 currentNoise( currentNoise.
getNumPoints( )-1,i ) = noiseVector( 0 );
returnValue setTime(double _time)
virtual returnValue init(uint seed=0)=0
returnValue setStatus(BlockStatus _status)
virtual ~TransferDevice()
void init(unsigned _dim=0)
Provides a time grid consisting of vector-valued optimization variables at each grid point...
Allows to pass back messages to the calling function.
virtual returnValue step(DVector &_w)=0
Base class for generating pseudo-random noise for simulating the Process.
BEGIN_NAMESPACE_ACADO typedef unsigned int uint
Allows to conveniently handle (one-dimensional) grids consisting of time points.
#define CLOSE_NAMESPACE_ACADO
returnValue setVector(uint pointIdx, const DVector &_values)
BEGIN_NAMESPACE_ACADO BooleanType acadoIsInteger(double x)
virtual returnValue generateNoise(double startTime, double endTime, VariablesGrid ¤tNoise) const
virtual returnValue init(double _startTime=0.0, const DVector &_startValue=emptyConstVector)
returnValue init(uint _nPoints=0, const double *const _times=0)
BooleanType acadoIsPositive(double x, double TOL)
void rhs(const real_t *x, real_t *f)
Grid & shiftTimes(double timeShift)
returnValue addTime(double _time)
uint getNumPoints() const
Base class for building-blocks of the SimulationEnvironment.
void setAll(const T &_value)
DVector noiseSamplingTimes
#define BEGIN_NAMESPACE_ACADO
SimulationBlock & operator=(const SimulationBlock &rhs)
TransferDevice & operator=(const TransferDevice &rhs)
#define ACADOERROR(retval)
Base class for simulating Actuator and Sensor behaviour wihtin the Process.