33 #ifndef ACADO_TOOLKIT_MATRIX_VARIABLES_GRID_HPP 34 #define ACADO_TOOLKIT_MATRIX_VARIABLES_GRID_HPP 90 const char**
const _names = 0,
91 const char**
const _units = 0,
92 const DVector*
const _scaling = 0,
117 const char**
const _names = 0,
118 const char**
const _units = 0,
119 const DVector*
const _scaling = 0,
150 const char**
const _names = 0,
151 const char**
const _units = 0,
152 const DVector*
const _scaling = 0,
319 const char**
const _names = 0,
320 const char**
const _units = 0,
321 const DVector*
const _scaling = 0,
348 const char**
const _names = 0,
349 const char**
const _units = 0,
350 const DVector*
const _scaling = 0,
383 const char**
const _names = 0,
384 const char**
const _units = 0,
385 const DVector*
const _scaling = 0,
414 double newTime = -
INFTY 580 const char*
const _name
611 const char*
const _unit
1109 const char*
const name,
1125 const char*
const name,
1164 friend std::ostream&
operator<<( std::ostream& stream,
1169 friend std::istream&
operator>>( std::istream& stream,
1208 const char**
const _names = 0,
1209 const char**
const _units = 0,
1210 const DVector*
const _scaling = 0,
1225 double newTime = -
INFTY 1239 #endif // ACADO_TOOLKIT_MATRIX_VARIABLES_GRID_HPP const char DEFAULT_END_STRING[4]
returnValue setAllMatrices(const DMatrix &_values)
returnValue setType(VariableType _type)
returnValue disableAutoInit()
BooleanType getAutoInit(uint pointIdx) const
returnValue addMatrix(const DMatrix &newMatrix, double newTime=-INFTY)
DVector getScaling(uint pointIdx) const
MatrixVariablesGrid & operator+=(const MatrixVariablesGrid &arg)
DMatrix getFirstMatrix() const
MatrixVariablesGrid & operator-=(const MatrixVariablesGrid &arg)
returnValue setScaling(uint pointIdx, const DVector &_scaling)
returnValue setUpperBounds(uint pointIdx, const DVector &_ub)
const uint DEFAULT_PRECISION
BooleanType hasScaling() const
Provides a time grid consisting of vector-valued optimization variables at each grid point...
returnValue clearValues()
Allows to pass back messages to the calling function.
const char DEFAULT_COL_SEPARATOR[2]
DVector getUpperBounds(uint pointIdx) const
double getLowerBound(uint pointIdx, uint valueIdx) const
BooleanType hasLowerBounds() const
MatrixVariablesGrid operator+(const MatrixVariablesGrid &arg) const
BEGIN_NAMESPACE_ACADO typedef unsigned int uint
Allows to conveniently handle (one-dimensional) grids consisting of time points.
MatrixVariablesGrid getTimeSubGrid(uint startIdx, uint endIdx) const
returnValue setLowerBound(uint pointIdx, uint valueIdx, double _lb)
#define CLOSE_NAMESPACE_ACADO
double getUpperBound(uint pointIdx, uint valueIdx) const
const char DEFAULT_START_STRING[3]
MatrixVariablesGrid getCoarsenedGrid(const Grid &arg) const
returnValue print() const
returnValue setAll(double _value)
MatrixVariablesGrid getRefinedGrid(const Grid &arg, InterpolationMode mode=IM_CONSTANT) const
MatrixVariablesGrid & shiftBackwards(DMatrix lastValue=emptyMatrix)
returnValue setAutoInit(uint pointIdx, BooleanType _autoInit)
returnValue appendValues(const MatrixVariablesGrid &arg)
returnValue sprint(std::ostream &stream)
static DMatrix emptyMatrix
returnValue merge(const MatrixVariablesGrid &arg, MergeMethod _mergeMethod=MM_DUPLICATE, BooleanType keepOverlap=BT_TRUE)
Grid getTimePoints() const
virtual ~MatrixVariablesGrid()
VariableType getType() const
BooleanType hasNames() const
BooleanType hasUnits() const
double & operator()(uint pointIdx, uint rowIdx, uint colIdx)
DVector linearInterpolation(double time) const
friend std::istream & operator>>(std::istream &stream, MatrixVariablesGrid &arg)
BEGIN_NAMESPACE_ACADO const Grid emptyGrid
Provides a time grid consisting of matrix-valued optimization variables at each grid point...
returnValue setUpperBound(uint pointIdx, uint valueIdx, double _ub)
returnValue getGrid(Grid &_grid) const
DMatrix getLastMatrix() const
returnValue refineGrid(const Grid &arg, InterpolationMode mode=IM_CONSTANT)
returnValue setUnit(uint pointIdx, uint idx, const char *const _unit)
returnValue getUnit(uint pointIdx, uint idx, char *const _unit) const
friend std::ostream & operator<<(std::ostream &stream, const MatrixVariablesGrid &arg)
MatrixVariablesGrid operator[](const uint pointIdx) const
returnValue initMatrixVariables(uint _nRows, uint _nCols, VariableType _type=VT_UNKNOWN, const char **const _names=0, const char **const _units=0, const DVector *const _scaling=0, const DVector *const _lb=0, const DVector *const _ub=0, const BooleanType *const _autoInit=0)
Provides matrix-valued optimization variables.
const Grid trivialGrid(1)
void rhs(const real_t *x, real_t *f)
MatrixVariablesGrid getValuesSubGrid(uint startIdx, uint endIdx) const
returnValue getName(uint pointIdx, uint idx, char *const _name) const
DMatrix getMatrix(uint pointIdx) const
returnValue read(std::istream &stream)
returnValue appendTimes(const MatrixVariablesGrid &arg, MergeMethod _mergeMethod=MM_DUPLICATE)
returnValue setMatrix(uint pointIdx, const DMatrix &_value) const
MatrixVariablesGrid & operator=(const MatrixVariablesGrid &rhs)
returnValue coarsenGrid(const Grid &arg)
returnValue enableAutoInit()
const char DEFAULT_ROW_SEPARATOR[6]
DVector getLowerBounds(uint pointIdx) const
MatrixVariablesGrid operator-(const MatrixVariablesGrid &arg) const
returnValue setLowerBounds(uint pointIdx, const DVector &_lb)
BooleanType hasUpperBounds() const
#define BEGIN_NAMESPACE_ACADO
MatrixVariablesGrid & shiftTimes(double timeShift)
returnValue setName(uint pointIdx, uint idx, const char *const _name)
const char DEFAULT_LABEL[1]
uint getNumValues() const