ACADO Toolkit
1.2.0beta
Toolkit for Automatic Control and Dynamic Optimization
|
Implements an integer-valued parameter. More...
#include <integer_parameter.hpp>
Public Member Functions | |
IntegerParameter () | |
Default constructor. | |
IntegerParameter (uint nRows_, uint nCols_=1, String name_="") | |
Default constructor. | |
IntegerParameter (const IntegerParameter &arg) | |
Copy constructor (deep copy). | |
virtual | ~IntegerParameter () |
Default destructor. | |
IntegerParameter & | operator= (const IntegerParameter &arg) |
Assignment Operator (deep copy). | |
virtual Expression * | clone () const |
Provides a deep copy of the expression. | |
returnValue | clearStaticCounters () |
This function clears all static counters. | |
Expression & | operator<< (const double &arg) |
Expression & | operator<< (const Vector &arg) |
Expression & | operator<< (const Matrix &arg) |
Expression & | operator<< (const Expression &arg) |
Expression & | appendRows (const Expression &arg) |
Appends an Expression matrix (n x m) with an argument matrix (s x m) in the row direction, such that the result is ( (n + s) x m). | |
Expression & | appendCols (const Expression &arg) |
Appends an Expression matrix (n x m) with an argument matrix (n x s) in the column direction, such that the result is ( n x (m + s) ). | |
Expression | operator() (uint idx) const |
Expression | operator() (uint rowIdx, uint colIdx) const |
Operator & | operator() (uint idx) |
Operator & | operator() (uint rowIdx, uint colIdx) |
Expression | operator+ (const double &arg) const |
Expression | operator+ (const Vector &arg) const |
Expression | operator+ (const Matrix &arg) const |
Expression | operator+ (const Expression &arg) const |
Expression | operator- (const double &arg) const |
Expression | operator- (const Vector &arg) const |
Expression | operator- (const Matrix &arg) const |
Expression | operator- (const Expression &arg) const |
Expression | operator- () const |
Expression | operator* (const double &arg) const |
Expression | operator* (const Vector &arg) const |
Expression | operator* (const Matrix &arg) const |
Expression | operator* (const Expression &arg) const |
Expression | operator/ (const double &arg) const |
Expression | operator/ (const Expression &arg) const |
Stream | print (Stream &stream) const |
Expression | getInverse () const |
Returns the symbolic inverse of a matrix (only for square matrices) | |
Expression | getRow (const uint &rowIdx) const |
Expression | getCol (const uint &colIdx) const |
Matrix | getDependencyPattern (const Expression &arg) const |
When operated on an n x 1 Expression, returns an m x n Matrix. | |
Expression | getSin () const |
Expression | getCos () const |
Expression | getTan () const |
Expression | getAsin () const |
Expression | getAcos () const |
Expression | getAtan () const |
Expression | getExp () const |
Expression | getSqrt () const |
Expression | getLn () const |
Expression | getPow (const Expression &arg) const |
Expression | getPowInt (const int &arg) const |
Expression | getSumSquare () const |
Expression | getLogSumExp () const |
Expression | getEuclideanNorm () const |
Expression | getEntropy () const |
Expression | getDot () const |
Expression | getNext () const |
Expression | ADforward (const Expression &arg) const |
Expression | ADforward (const VariableType &varType_, const int *arg, int nV) const |
Expression | ADforward (const Expression &arg, const Expression &seed) const |
Expression | ADforward (const VariableType &varType_, const int *arg, const Expression &seed) const |
Expression | ADforward (const VariableType *varType_, const int *arg, const Expression &seed) const |
Expression | ADbackward (const Expression &arg) const |
Expression | ADbackward (const Expression &arg, const Expression &seed) const |
Expression | getODEexpansion (const int &order, const int *arg) const |
ConstraintComponent | operator<= (const double &ub) const |
ConstraintComponent | operator<= (const Vector &ub) const |
ConstraintComponent | operator<= (const VariablesGrid &ub) const |
ConstraintComponent | operator>= (const double &lb) const |
ConstraintComponent | operator>= (const Vector &lb) const |
ConstraintComponent | operator>= (const VariablesGrid &lb) const |
ConstraintComponent | operator== (const double &b) const |
ConstraintComponent | operator== (const Vector &b) const |
ConstraintComponent | operator== (const VariablesGrid &b) const |
Expression | transpose () const |
Returns the transpose of this expression. | |
uint | getDim () const |
Returns dimension of vector space. | |
uint | getNumRows () const |
Returns the number of rows. | |
uint | getNumCols () const |
Returns the number of columns. | |
uint | getComponent (const unsigned int idx) const |
Returns the global type idea of the idx-component. | |
BooleanType | isVariable () const |
Returns the number of columns. | |
Operator * | getOperatorClone (uint idx) const |
Returns a clone of the operator with index idx. | |
VariableType | getVariableType () const |
Returns the variable type. | |
BooleanType | isDependingOn (VariableType type) const |
BooleanType | isDependingOn (const Expression &e) const |
returnValue | substitute (int idx, const Expression &arg) const |
Substitutes a given variable with an expression. | |
Expression | convert (const double &arg) const |
Expression | convert (const Vector &arg) const |
Expression | convert (const Matrix &arg) const |
TreeProjection | getTreeProjection (const uint &idx, String name_="") const |
Returns a tree projection with respect to the specified index. | |
Protected Member Functions | |
void | construct (VariableType variableType_, uint globalTypeID_, uint nRows_, uint nCols_, const String &name_) |
Generic constructor (protected, only for internal use). | |
void | copy (const Expression &rhs) |
Generic copy routine (protected, only for internal use). | |
void | deleteAll () |
Generic destructor (protected, only for internal use). | |
Expression & | assignmentSetup (const Expression &arg) |
Generic copy routine (protected, only for internal use). | |
Operator * | product (const Operator *a, const Operator *b) const |
Internal product routine (protected, only for internal use). | |
Protected Attributes | |
Operator ** | element |
Element of vector space. | |
uint | dim |
Vector space dimension. | |
uint | nRows |
uint | nCols |
Matrix dimension. | |
VariableType | variableType |
Variable type. | |
uint | component |
The expression component. | |
String | name |
The name of the expression. | |
Static Protected Attributes | |
static int | count = 0 |
Friends | |
Stream | operator<< (Stream &stream, const Expression &arg) |
Expression | operator+ (const double &arg1, const Expression &arg2) |
Expression | operator+ (const Vector &arg1, const Expression &arg2) |
Expression | operator+ (const Matrix &arg1, const Expression &arg2) |
Expression | operator- (const double &arg1, const Expression &arg2) |
Expression | operator- (const Vector &arg1, const Expression &arg2) |
Expression | operator- (const Matrix &arg1, const Expression &arg2) |
Expression | operator* (const double &arg1, const Expression &arg2) |
Expression | operator* (const Vector &arg1, const Expression &arg2) |
Expression | operator* (const Matrix &arg1, const Expression &arg2) |
Expression | operator/ (const double &arg1, const Expression &arg2) |
Expression | operator/ (const Vector &arg1, const Expression &arg2) |
Expression | operator/ (const Matrix &arg1, const Expression &arg2) |
ConstraintComponent | operator<= (double lb, const Expression &arg) |
ConstraintComponent | operator<= (Vector lb, const Expression &arg) |
ConstraintComponent | operator<= (VariablesGrid lb, const Expression &arg) |
ConstraintComponent | operator>= (double ub, const Expression &arg) |
ConstraintComponent | operator>= (Vector ub, const Expression &arg) |
ConstraintComponent | operator>= (VariablesGrid ub, const Expression &arg) |
ConstraintComponent | operator== (double b, const Expression &arg) |
ConstraintComponent | operator== (Vector b, const Expression &arg) |
ConstraintComponent | operator== (VariablesGrid b, const Expression &arg) |
The class IntegerParameter implements an integer-valued parameter within the family of Expressions.
IntegerParameter::IntegerParameter | ( | uint | nRows_, |
uint | nCols_ = 1 , |
||
String | name_ = "" |
||
) |
References count.
IntegerParameter::IntegerParameter | ( | const IntegerParameter & | arg | ) |
IntegerParameter::~IntegerParameter | ( | ) | [virtual] |
Expression Expression::ADbackward | ( | const Expression & | arg | ) | const [inherited] |
References ASSERT, Operator::clone(), Expression::element, Expression::getNumCols(), Expression::getNumRows(), NE_ONE, NE_ZERO, and uint.
Referenced by backwardDerivative().
Expression Expression::ADbackward | ( | const Expression & | arg, |
const Expression & | seed | ||
) | const [inherited] |
Expression Expression::ADforward | ( | const Expression & | arg | ) | const [inherited] |
References ASSERT, Operator::clone(), Expression::element, Expression::getNumCols(), Expression::getNumRows(), NE_ONE, NE_ZERO, and uint.
Referenced by Expression::ADforward(), der(), KinVec::der(), forwardDerivative(), and EllipsoidalIntegrator::init().
Expression Expression::ADforward | ( | const VariableType & | varType_, |
const int * | arg, | ||
int | nV | ||
) | const [inherited] |
Expression Expression::ADforward | ( | const Expression & | arg, |
const Expression & | seed | ||
) | const [inherited] |
Expression Expression::ADforward | ( | const VariableType & | varType_, |
const int * | arg, | ||
const Expression & | seed | ||
) | const [inherited] |
References Expression::ADforward(), Expression::getDim(), and uint.
Expression Expression::ADforward | ( | const VariableType * | varType_, |
const int * | arg, | ||
const Expression & | seed | ||
) | const [inherited] |
Expression & Expression::appendCols | ( | const Expression & | arg | ) | [inherited] |
As a special case, when applied on an empty Expression, the Expression will be assigned the argument.
References ASSERT, Expression::getDim(), Expression::getNumRows(), Expression::operator=(), and Expression::transpose().
Expression & Expression::appendRows | ( | const Expression & | arg | ) | [inherited] |
As a special case, when applied on an empty Expression, the Expression will be assigned the argument.
References ASSERT, Operator::clone(), Expression::dim, Expression::element, Expression::getDim(), Expression::getNumCols(), Expression::getNumRows(), Expression::nRows, Expression::operator=(), uint, Expression::variableType, and VT_UNKNOWN.
Expression & Expression::assignmentSetup | ( | const Expression & | arg | ) | [protected, inherited] |
References ASSERT, BT_FALSE, ExportVariable::clone(), Operator::clone(), Expression::deleteAll(), Expression::dim, Expression::element, Expression::getNumCols(), Expression::getNumRows(), Expression::getTreeProjection(), String::isEmpty(), Operator::isVariable(), Expression::name, Expression::nCols, Expression::nRows, uint, Expression::variableType, VT_INTERMEDIATE_STATE, and VT_UNKNOWN.
Referenced by Expression::Expression(), and IntermediateState::operator=().
Although this
function is public it should never be used in C-code.
It is necessary for some Matlab-specific interfaces.
Please have a look into the header file
include/global/utils/matlab_acado_utils.hpp
for more details.
References count, and SUCCESSFUL_RETURN.
Referenced by clearAllStaticCounters().
Expression * IntegerParameter::clone | ( | ) | const [virtual] |
void Expression::construct | ( | VariableType | variableType_, |
uint | globalTypeID_, | ||
uint | nRows_, | ||
uint | nCols_, | ||
const String & | name_ | ||
) | [protected, inherited] |
variableType_ | The variable type. |
globalTypeID_ | the global type ID |
nRows_ | The number of rows. |
nCols_ | The number of columns. |
name_ | The name |
References Expression::component, Expression::dim, Expression::element, Expression::name, Expression::nCols, NE_ZERO, Expression::nRows, uint, Expression::variableType, VT_INTERMEDIATE_STATE, and VT_UNKNOWN.
Referenced by Expression::Expression().
Expression Expression::convert | ( | const double & | arg | ) | const [inherited] |
References Expression::element, and NE_NEITHER_ONE_NOR_ZERO.
Referenced by Expression::Expression(), operator*(), Expression::operator*(), operator+(), Expression::operator+(), operator-(), Expression::operator-(), operator/(), Expression::operator/(), Expression::operator<<(), IntermediateState::operator=(), TreeProjection::operator=(), Expression::operator=(), and pow().
Expression Expression::convert | ( | const Vector & | arg | ) | const [inherited] |
References Expression::element, VectorspaceElement::getDim(), NE_NEITHER_ONE_NOR_ZERO, and uint.
Expression Expression::convert | ( | const Matrix & | arg | ) | const [inherited] |
References Expression::element, Matrix::getNumCols(), Matrix::getNumRows(), NE_NEITHER_ONE_NOR_ZERO, and uint.
void Expression::copy | ( | const Expression & | rhs | ) | [protected, inherited] |
References Operator::clone(), Expression::component, Expression::dim, Expression::element, Expression::nCols, Expression::nRows, uint, and Expression::variableType.
Referenced by Expression::Expression(), and Expression::operator=().
void Expression::deleteAll | ( | ) | [protected, inherited] |
References Expression::dim, Expression::element, and uint.
Referenced by Expression::assignmentSetup(), Expression::operator=(), and Expression::~Expression().
Expression Expression::getAcos | ( | ) | const [inherited] |
References ExportVariable::clone(), Expression::dim, Expression::element, Expression::nCols, Expression::nRows, and uint.
Referenced by acos().
Expression Expression::getAsin | ( | ) | const [inherited] |
References ExportVariable::clone(), Expression::dim, Expression::element, Expression::nCols, Expression::nRows, and uint.
Referenced by asin().
Expression Expression::getAtan | ( | ) | const [inherited] |
References ExportVariable::clone(), Expression::dim, Expression::element, Expression::nCols, Expression::nRows, and uint.
Referenced by atan().
Expression Expression::getCol | ( | const uint & | colIdx | ) | const [inherited] |
References ASSERT, Operator::clone(), Expression::element, Expression::getNumCols(), Expression::getNumRows(), and uint.
Referenced by EllipsoidalIntegrator::init().
unsigned int Expression::getComponent | ( | const unsigned int | idx | ) | const [inline, inherited] |
References ASSERT, Expression::component, and Expression::getDim().
Referenced by Expression::ADbackward(), PointConstraint::add(), Constraint::add(), Expression::ADforward(), LogCollection::find(), LogRecord::find(), LogCollection::getAll(), LogRecord::getAll(), DifferentialEquation::getEndTimeIdx(), LogCollection::getFirst(), LogRecord::getFirst(), LogCollection::getLast(), LogRecord::getLast(), DifferentialEquation::getStartTimeIdx(), PlotWindow::getVariableDataGrids(), LogCollection::hasNonEmptyItem(), LogRecord::hasNonEmptyItem(), LogRecordItem::LogRecordItem(), Transition::operator<<(), DifferentialEquation::operator<<(), LogCollection::setAll(), LogRecord::setAll(), LogCollection::setLast(), and LogRecord::setLast().
Expression Expression::getCos | ( | ) | const [inherited] |
References ExportVariable::clone(), Expression::dim, Expression::element, Expression::nCols, Expression::nRows, and uint.
Referenced by cos().
Matrix Expression::getDependencyPattern | ( | const Expression & | arg | ) | const [inherited] |
The element (i,j) of this matrix is zero when this(i) does not depend on arg(j)
arg | m x 1 Expression |
References backwardDerivative(), Function::evaluate(), Function::getDim(), Expression::getDim(), and Function::getNumberOfVariables().
Referenced by Expression::isDependingOn().
BEGIN_NAMESPACE_ACADO unsigned int Expression::getDim | ( | ) | const [inline, inherited] |
References Expression::dim.
Referenced by COperator::AD_forward(), COperator::AD_forward2(), Expression::ADbackward(), ModelData::addOutput(), PlotWindow::addSubplot(), Expression::ADforward(), Expression::appendCols(), Expression::appendRows(), Frame::chain(), COperator::COperator(), COperator::copy(), DifferentialEquation::DifferentialEquation(), COperator::enumerateVariables(), COperator::evaluate(), KinVec::explicitize(), Expression::getComponent(), Expression::getDependencyPattern(), ConstraintComponent::getDim(), Expression::getEuclideanNorm(), Expression::getLogSumExp(), Expression::getOperatorClone(), Expression::getPow(), getRiccatiODE(), Expression::getSumSquare(), COperator::isDependingOn(), FunctionEvaluationTree::isDependingOn(), Expression::isDependingOn(), Lyapunov::isEmpty(), FunctionEvaluationTree::isLinearIn(), FunctionEvaluationTree::isPolynomialIn(), FunctionEvaluationTree::isRationalIn(), COperator::loadIndices(), CFunction::operator()(), Expression::operator()(), Expression::operator*(), KinVec::operator+(), Expression::operator/(), Transition::operator<<(), DifferentialEquation::operator<<(), Expression::operator<=(), TreeProjection::operator=(), Expression::operator==(), Expression::operator>=(), ImplicitRungeKuttaExport::setDifferentialEquation(), DiscreteTimeExport::setDifferentialEquation(), ConstraintComponent::setLB(), IntegratorExport::setLinearOutput(), NARXExport::setLinearOutput(), ModelData::setModel(), ConstraintComponent::setUB(), and Expression::substitute().
Expression Expression::getDot | ( | ) | const [inherited] |
References ACADOERROR, ASSERT, Expression::component, Expression::getNumCols(), Expression::getNumRows(), RET_INVALID_ARGUMENTS, Expression::variableType, VT_DDIFFERENTIAL_STATE, and VT_DIFFERENTIAL_STATE.
Referenced by dot(), and Expression::getNext().
Expression Expression::getEntropy | ( | ) | const [inherited] |
References ACADOWARNING, and RET_NOT_IMPLEMENTED_YET.
Referenced by entropy().
Expression Expression::getEuclideanNorm | ( | ) | const [inherited] |
References CT_AFFINE, CT_CONSTANT, CT_CONVEX, CT_NEITHER_CONVEX_NOR_CONCAVE, Expression::element, Operator::getCurvature(), Expression::getDim(), Expression::getSumSquare(), Operator::setCurvature(), sqrt(), and uint.
Referenced by euclidean_norm().
Expression Expression::getExp | ( | ) | const [inherited] |
References ExportVariable::clone(), Expression::dim, Expression::element, Expression::nCols, Expression::nRows, and uint.
Referenced by exp().
Expression Expression::getInverse | ( | ) | const [inherited] |
Expression Expression::getLn | ( | ) | const [inherited] |
References ExportVariable::clone(), Expression::dim, Expression::element, Expression::nCols, Expression::nRows, and uint.
Expression Expression::getLogSumExp | ( | ) | const [inherited] |
References CT_AFFINE, CT_CONSTANT, CT_CONVEX, CT_NEITHER_CONVEX_NOR_CONCAVE, Expression::element, exp(), Operator::getCurvature(), Expression::getDim(), ln(), Operator::setCurvature(), and uint.
Referenced by log_sum_exp().
Expression Expression::getNext | ( | ) | const [inherited] |
References Expression::getDot().
Referenced by next().
unsigned int Expression::getNumCols | ( | ) | const [inline, inherited] |
References Expression::nCols.
Referenced by Expression::ADbackward(), Expression::ADforward(), Expression::appendRows(), Expression::assignmentSetup(), chol(), Expression::getCol(), Expression::getDot(), Expression::getInverse(), Expression::getRow(), IntermediateState::IntermediateState(), Expression::operator()(), Expression::operator*(), Expression::operator+(), Expression::operator-(), Expression::operator/(), IntermediateState::operator=(), and Expression::transpose().
unsigned int Expression::getNumRows | ( | ) | const [inline, inherited] |
References Expression::nRows.
Referenced by Expression::ADbackward(), Expression::ADforward(), Expression::appendCols(), Expression::appendRows(), Expression::assignmentSetup(), chol(), Expression::getCol(), Expression::getDot(), Expression::getInverse(), Expression::getRow(), IntermediateState::IntermediateState(), Expression::operator()(), Expression::operator*(), Expression::operator+(), Expression::operator-(), Expression::operator/(), IntermediateState::operator=(), ExplicitRungeKuttaExport::setDifferentialEquation(), and Expression::transpose().
Expression Expression::getODEexpansion | ( | const int & | order, |
const int * | arg | ||
) | const [inherited] |
Operator * Expression::getOperatorClone | ( | uint | idx | ) | const [inline, inherited] |
References ASSERT, Operator::clone(), Expression::element, Expression::getDim(), and Operator::passArgument().
Referenced by TreeProjection::operator=().
Expression Expression::getPow | ( | const Expression & | arg | ) | const [inherited] |
References ASSERT, ExportVariable::clone(), Operator::clone(), Expression::dim, Expression::element, Expression::getDim(), Expression::nCols, Expression::nRows, and uint.
Referenced by pow().
Expression Expression::getPowInt | ( | const int & | arg | ) | const [inherited] |
References ExportVariable::clone(), Expression::dim, Expression::element, Expression::nCols, Expression::nRows, and uint.
Referenced by pow().
Expression Expression::getRow | ( | const uint & | rowIdx | ) | const [inherited] |
References ASSERT, Operator::clone(), Expression::element, Expression::getNumCols(), Expression::getNumRows(), and uint.
Expression Expression::getSin | ( | ) | const [inherited] |
References ExportVariable::clone(), Expression::dim, Expression::element, Expression::nCols, Expression::nRows, and uint.
Referenced by sin().
Expression Expression::getSqrt | ( | ) | const [inherited] |
References ExportVariable::clone(), Expression::dim, Expression::element, Expression::nCols, NE_NEITHER_ONE_NOR_ZERO, Expression::nRows, and uint.
Referenced by sqrt().
Expression Expression::getSumSquare | ( | ) | const [inherited] |
References CT_AFFINE, CT_CONSTANT, CT_CONVEX, CT_NEITHER_CONVEX_NOR_CONCAVE, Expression::element, Operator::getCurvature(), Expression::getDim(), Operator::setCurvature(), Expression::transpose(), and uint.
Referenced by Expression::getEuclideanNorm(), square(), and sum_square().
Expression Expression::getTan | ( | ) | const [inherited] |
References ExportVariable::clone(), Expression::dim, Expression::element, Expression::nCols, Expression::nRows, and uint.
Referenced by tan().
TreeProjection Expression::getTreeProjection | ( | const uint & | idx, |
String | name_ = "" |
||
) | const [inline, inherited] |
References Expression::element.
Referenced by Expression::assignmentSetup().
VariableType Expression::getVariableType | ( | ) | const [inline, inherited] |
References Expression::variableType.
Referenced by Expression::ADbackward(), PointConstraint::add(), Constraint::add(), PlotWindow::addPlotDataItem(), Expression::ADforward(), PlotWindow::getExpressionDataGrids(), LogRecord::getFirst(), PlotWindow::getVariableDataGrids(), PlotWindowSubplot::getXVariableType(), PlotWindowSubplot::getYVariableType(), Expression::isVariable(), DifferentialEquation::operator<<(), and ExportNLPSolver::setConstraints().
BooleanType Expression::isDependingOn | ( | VariableType | type | ) | const [inherited] |
References BT_FALSE, BT_TRUE, Expression::element, Expression::getDim(), and uint.
Referenced by DifferentialEquation::addDifferential().
BooleanType Expression::isDependingOn | ( | const Expression & | e | ) | const [inherited] |
References ASSERT, BT_FALSE, BT_TRUE, EPS, fabs(), Expression::getDependencyPattern(), Expression::getDim(), and sumRow().
BooleanType Expression::isVariable | ( | ) | const [inline, inherited] |
References BT_FALSE, BT_TRUE, Expression::getVariableType(), VT_INTERMEDIATE_STATE, and VT_UNKNOWN.
Referenced by Expression::ADbackward(), PointConstraint::add(), Constraint::add(), PlotWindow::addPlotDataItem(), Expression::ADforward(), PlotWindow::getVariableDataGrids(), and PlotWindowSubplot::PlotWindowSubplot().
Expression Expression::operator() | ( | uint | idx | ) | const [inherited] |
References ASSERT, Operator::clone(), Expression::component, Expression::element, Expression::getDim(), and Expression::variableType.
Referenced by Expression::getInverse(), and Expression::getODEexpansion().
Expression Expression::operator() | ( | uint | rowIdx, |
uint | colIdx | ||
) | const [inherited] |
References ASSERT, Expression::element, Expression::getDim(), Expression::variableType, VT_INTERMEDIATE_STATE, and VT_UNKNOWN.
Expression Expression::operator* | ( | const double & | arg | ) | const [inherited] |
References Expression::convert().
Referenced by Expression::operator*().
Expression Expression::operator* | ( | const Vector & | arg | ) | const [inherited] |
References Expression::convert(), and Expression::operator*().
Expression Expression::operator* | ( | const Matrix & | arg | ) | const [inherited] |
References Expression::convert(), and Expression::operator*().
Expression Expression::operator* | ( | const Expression & | arg | ) | const [inherited] |
Expression Expression::operator+ | ( | const double & | arg | ) | const [inherited] |
References Expression::convert().
Referenced by Expression::operator+().
Expression Expression::operator+ | ( | const Vector & | arg | ) | const [inherited] |
References Expression::convert(), and Expression::operator+().
Expression Expression::operator+ | ( | const Matrix & | arg | ) | const [inherited] |
References Expression::convert(), and Expression::operator+().
Expression Expression::operator+ | ( | const Expression & | arg | ) | const [inherited] |
Expression Expression::operator- | ( | const double & | arg | ) | const [inherited] |
References Expression::convert(), and Expression::operator-().
Expression Expression::operator- | ( | const Vector & | arg | ) | const [inherited] |
References Expression::convert(), and Expression::operator-().
Expression Expression::operator- | ( | const Matrix & | arg | ) | const [inherited] |
References Expression::convert(), and Expression::operator-().
Expression Expression::operator- | ( | const Expression & | arg | ) | const [inherited] |
Expression Expression::operator- | ( | ) | const [inherited] |
References ExportVariable::clone(), Expression::element, Expression::getNumCols(), Expression::getNumRows(), NE_ZERO, and uint.
Referenced by Expression::operator-().
Expression Expression::operator/ | ( | const double & | arg | ) | const [inherited] |
References Expression::convert().
Expression Expression::operator/ | ( | const Expression & | arg | ) | const [inherited] |
Expression & Expression::operator<< | ( | const double & | arg | ) | [inherited] |
References Expression::convert().
Referenced by Expression::operator<<().
Expression & Expression::operator<< | ( | const Vector & | arg | ) | [inherited] |
References Expression::convert(), and Expression::operator<<().
Expression & Expression::operator<< | ( | const Matrix & | arg | ) | [inherited] |
References Expression::convert(), and Expression::operator<<().
Expression & Expression::operator<< | ( | const Expression & | arg | ) | [inherited] |
ConstraintComponent Expression::operator<= | ( | const double & | ub | ) | const [inherited] |
References Expression::getDim(), and VectorspaceElement::setAll().
ConstraintComponent Expression::operator<= | ( | const Vector & | ub | ) | const [inherited] |
References INFTY, ConstraintComponent::initialize(), and VectorspaceElement::setAll().
ConstraintComponent Expression::operator<= | ( | const VariablesGrid & | ub | ) | const [inherited] |
References INFTY, ConstraintComponent::initialize(), and MatrixVariablesGrid::setAll().
IntegerParameter & IntegerParameter::operator= | ( | const IntegerParameter & | arg | ) |
ConstraintComponent Expression::operator== | ( | const double & | b | ) | const [inherited] |
References Expression::getDim(), and VectorspaceElement::setAll().
ConstraintComponent Expression::operator== | ( | const Vector & | b | ) | const [inherited] |
References ConstraintComponent::initialize().
ConstraintComponent Expression::operator== | ( | const VariablesGrid & | b | ) | const [inherited] |
References ConstraintComponent::initialize().
ConstraintComponent Expression::operator>= | ( | const double & | lb | ) | const [inherited] |
References Expression::getDim(), and VectorspaceElement::setAll().
ConstraintComponent Expression::operator>= | ( | const Vector & | lb | ) | const [inherited] |
References INFTY, ConstraintComponent::initialize(), and VectorspaceElement::setAll().
ConstraintComponent Expression::operator>= | ( | const VariablesGrid & | lb | ) | const [inherited] |
References INFTY, ConstraintComponent::initialize(), and MatrixVariablesGrid::setAll().
Stream Expression::print | ( | Stream & | stream | ) | const [inherited] |
References Expression::dim, Expression::element, and uint.
Referenced by operator<<().
Operator * Expression::product | ( | const Operator * | a, |
const Operator * | b | ||
) | const [protected, inherited] |
References Operator::clone(), Operator::isOneOrZero(), NE_ONE, and NE_ZERO.
Referenced by Expression::operator*().
returnValue Expression::substitute | ( | int | idx, |
const Expression & | arg | ||
) | const [inherited] |
References ASSERT, Expression::element, Expression::getDim(), Operator::substitute(), SUCCESSFUL_RETURN, and uint.
Expression Expression::transpose | ( | ) | const [inherited] |
References Operator::clone(), Expression::element, Expression::getNumCols(), Expression::getNumRows(), and uint.
Referenced by Expression::appendCols(), getRiccatiODE(), Expression::getSumSquare(), DifferentialEquation::operator==(), rotAcc(), and rotVel().
Expression operator* | ( | const double & | arg1, |
const Expression & | arg2 | ||
) | [friend, inherited] |
Expression operator* | ( | const Vector & | arg1, |
const Expression & | arg2 | ||
) | [friend, inherited] |
Expression operator* | ( | const Matrix & | arg1, |
const Expression & | arg2 | ||
) | [friend, inherited] |
Expression operator+ | ( | const double & | arg1, |
const Expression & | arg2 | ||
) | [friend, inherited] |
Expression operator+ | ( | const Vector & | arg1, |
const Expression & | arg2 | ||
) | [friend, inherited] |
Expression operator+ | ( | const Matrix & | arg1, |
const Expression & | arg2 | ||
) | [friend, inherited] |
Expression operator- | ( | const double & | arg1, |
const Expression & | arg2 | ||
) | [friend, inherited] |
Expression operator- | ( | const Vector & | arg1, |
const Expression & | arg2 | ||
) | [friend, inherited] |
Expression operator- | ( | const Matrix & | arg1, |
const Expression & | arg2 | ||
) | [friend, inherited] |
Expression operator/ | ( | const double & | arg1, |
const Expression & | arg2 | ||
) | [friend, inherited] |
Expression operator/ | ( | const Vector & | arg1, |
const Expression & | arg2 | ||
) | [friend, inherited] |
Expression operator/ | ( | const Matrix & | arg1, |
const Expression & | arg2 | ||
) | [friend, inherited] |
Stream operator<< | ( | Stream & | stream, |
const Expression & | arg | ||
) | [friend, inherited] |
ConstraintComponent operator<= | ( | double | lb, |
const Expression & | arg | ||
) | [friend, inherited] |
ConstraintComponent operator<= | ( | Vector | lb, |
const Expression & | arg | ||
) | [friend, inherited] |
ConstraintComponent operator<= | ( | VariablesGrid | lb, |
const Expression & | arg | ||
) | [friend, inherited] |
ConstraintComponent operator== | ( | double | b, |
const Expression & | arg | ||
) | [friend, inherited] |
ConstraintComponent operator== | ( | Vector | b, |
const Expression & | arg | ||
) | [friend, inherited] |
ConstraintComponent operator== | ( | VariablesGrid | b, |
const Expression & | arg | ||
) | [friend, inherited] |
ConstraintComponent operator>= | ( | double | ub, |
const Expression & | arg | ||
) | [friend, inherited] |
ConstraintComponent operator>= | ( | Vector | ub, |
const Expression & | arg | ||
) | [friend, inherited] |
ConstraintComponent operator>= | ( | VariablesGrid | ub, |
const Expression & | arg | ||
) | [friend, inherited] |
uint Expression::component [protected, inherited] |
BEGIN_NAMESPACE_ACADO int IntegerParameter::count = 0 [static, protected] |
Referenced by clearStaticCounters(), and IntegerParameter().
uint Expression::dim [protected, inherited] |
Referenced by Expression::appendRows(), Expression::assignmentSetup(), Expression::construct(), Expression::copy(), Expression::deleteAll(), Expression::Expression(), Expression::getAcos(), Expression::getAsin(), Expression::getAtan(), Expression::getCos(), Expression::getDim(), Expression::getExp(), Expression::getLn(), Expression::getODEexpansion(), Expression::getPow(), Expression::getPowInt(), Expression::getSin(), Expression::getSqrt(), Expression::getTan(), Expression::operator<<(), and Expression::print().
Operator** Expression::element [protected, inherited] |
Referenced by COperator::AD_forward(), COperator::AD_forward2(), Expression::ADbackward(), Expression::ADforward(), Expression::appendRows(), Expression::assignmentSetup(), Expression::construct(), Expression::convert(), Expression::copy(), Expression::deleteAll(), COperator::enumerateVariables(), COperator::evaluate(), Expression::Expression(), Expression::getAcos(), Expression::getAsin(), Expression::getAtan(), Expression::getCol(), Expression::getCos(), Expression::getEuclideanNorm(), Expression::getExp(), Expression::getInverse(), Expression::getLn(), Expression::getLogSumExp(), Expression::getODEexpansion(), Expression::getOperatorClone(), Expression::getPow(), Expression::getPowInt(), Expression::getRow(), Expression::getSin(), Expression::getSqrt(), Expression::getSumSquare(), Expression::getTan(), Expression::getTreeProjection(), COperator::isDependingOn(), FunctionEvaluationTree::isDependingOn(), Expression::isDependingOn(), FunctionEvaluationTree::isLinearIn(), FunctionEvaluationTree::isPolynomialIn(), FunctionEvaluationTree::isRationalIn(), COperator::loadIndices(), CFunction::operator()(), Expression::operator()(), Expression::operator*(), Expression::operator+(), Expression::operator-(), Expression::operator/(), Expression::operator<<(), Expression::print(), Expression::substitute(), and Expression::transpose().
String Expression::name [protected, inherited] |
Referenced by Expression::assignmentSetup(), and Expression::construct().
uint Expression::nCols [protected, inherited] |
Referenced by Expression::assignmentSetup(), Expression::construct(), Expression::copy(), Expression::Expression(), Expression::getAcos(), Expression::getAsin(), Expression::getAtan(), Expression::getCos(), Expression::getExp(), Expression::getLn(), Expression::getNumCols(), Expression::getPow(), Expression::getPowInt(), Expression::getSin(), Expression::getSqrt(), Expression::getTan(), IntermediateState::IntermediateState(), and IntermediateState::operator=().
uint Expression::nRows [protected, inherited] |
Referenced by Expression::appendRows(), Expression::assignmentSetup(), Expression::construct(), Expression::copy(), Expression::Expression(), Expression::getAcos(), Expression::getAsin(), Expression::getAtan(), Expression::getCos(), Expression::getExp(), Expression::getLn(), Expression::getNumRows(), Expression::getPow(), Expression::getPowInt(), Expression::getSin(), Expression::getSqrt(), Expression::getTan(), IntermediateState::IntermediateState(), Expression::operator<<(), and IntermediateState::operator=().
VariableType Expression::variableType [protected, inherited] |