ACADO Toolkit
1.2.0beta
Toolkit for Automatic Control and Dynamic Optimization
|
Implements the scalar power operator with integer exponent within the symbolic operators family. More...
#include <powerint.hpp>
Public Member Functions | |
Power_Int () | |
Default constructor. | |
Power_Int (Operator *_argument, int _exponent) | |
Default constructor. | |
Power_Int (const Power_Int &arg) | |
Copy constructor (deep copy). | |
~Power_Int () | |
Default destructor. | |
Power_Int & | operator= (const Power_Int &arg) |
Assignment Operator (deep copy). | |
virtual returnValue | evaluate (int number, double *x, double *result) |
Evaluates the expression and stores the intermediate results in a buffer (needed for automatic differentiation in backward mode) . | |
virtual returnValue | evaluate (EvaluationBase *x) |
Evaluates the expression (templated version) | |
virtual Operator * | differentiate (int index) |
Returns the derivative of the expression with respect to the variable var(index). | |
virtual Operator * | AD_forward (int dim, VariableType *varType, int *component, Operator **seed, int &nNewIS, TreeProjection ***newIS) |
Automatic Differentiation in forward mode on the symbolic level. | |
virtual returnValue | AD_backward (int dim, VariableType *varType, int *component, Operator *seed, Operator **df) |
Automatic Differentiation in backward mode on the symbolic level. | |
virtual Operator * | substitute (int index, const Operator *sub) |
Substitutes var(index) with the expression sub. | |
virtual NeutralElement | isOneOrZero () const |
Checks whether the expression is zero or one . | |
virtual BooleanType | isDependingOn (VariableType var) const |
Asks the expression whether it is depending on a certian type of variable. | |
virtual BooleanType | isDependingOn (int dim, VariableType *varType, int *component, BooleanType *implicit_dep) |
Checks whether the expression is depending on a variable . | |
virtual BooleanType | isLinearIn (int dim, VariableType *varType, int *component, BooleanType *implicit_dep) |
Checks whether the expression is linear in (or not depending on) a variable . | |
virtual BooleanType | isPolynomialIn (int dim, VariableType *varType, int *component, BooleanType *implicit_dep) |
Checks whether the expression is polynomial in the specified variables . | |
virtual BooleanType | isRationalIn (int dim, VariableType *varType, int *component, BooleanType *implicit_dep) |
Checks whether the expression is rational in the specified variables . | |
virtual MonotonicityType | getMonotonicity () |
Returns the monotonicity of the expression. | |
virtual CurvatureType | getCurvature () |
Returns the curvature of the expression . | |
virtual returnValue | setMonotonicity (MonotonicityType monotonicity_) |
Overwrites the monotonicity of the expression. | |
virtual returnValue | setCurvature (CurvatureType curvature_) |
Overwrites the curvature of the expression. | |
virtual returnValue | AD_forward (int number, double *seed, double *df) |
Automatic Differentiation in forward mode. | |
virtual returnValue | AD_forward (int number, double *x, double *seed, double *f, double *df) |
Automatic Differentiation in forward mode. | |
virtual returnValue | AD_backward (int number, double seed, double *df) |
Automatic Differentiation in backward mode based on buffered values . | |
virtual returnValue | AD_forward2 (int number, double *seed1, double *seed2, double *df, double *ddf) |
Automatic Differentiation in forward mode for 2nd derivatives. | |
virtual returnValue | AD_backward2 (int number, double seed1, double seed2, double *df, double *ddf) |
Automatic Differentiation in backward mode for 2nd order derivatives based on buffered values. | |
virtual Stream & | print (Stream &stream) const |
Prints the expression into a stream. | |
virtual Operator * | clone () const |
Provides a deep copy of the expression. | |
virtual returnValue | clearBuffer () |
Clears the buffer and resets the buffer size to 1. | |
virtual returnValue | enumerateVariables (SymbolicIndexList *indexList) |
Enumerates all variables based on a common IndexList. | |
virtual OperatorName | getName () |
Asks the expression for its name. | |
virtual BooleanType | isVariable (VariableType &varType, int &component) const |
Asks the expression whether it is a variable. | |
virtual returnValue | loadIndices (SymbolicIndexList *indexList) |
The function loadIndices passes an IndexList through the whole expression tree. | |
virtual BooleanType | isSymbolic () const |
Asks whether all elements are purely symbolic. | |
virtual returnValue | setVariableExportName (const VariableType &_type, const Stream *_name) |
Sets the name of the variable that is used for code export. | |
TreeProjection & | operator+= (const double &arg) |
TreeProjection & | operator+= (const Vector &arg) |
TreeProjection & | operator+= (const Matrix &arg) |
TreeProjection & | operator+= (const Expression &arg) |
TreeProjection & | operator-= (const double &arg) |
TreeProjection & | operator-= (const Vector &arg) |
TreeProjection & | operator-= (const Matrix &arg) |
TreeProjection & | operator-= (const Expression &arg) |
TreeProjection & | operator*= (const double &arg) |
TreeProjection & | operator*= (const Vector &arg) |
TreeProjection & | operator*= (const Matrix &arg) |
TreeProjection & | operator*= (const Expression &arg) |
TreeProjection & | operator/= (const double &arg) |
TreeProjection & | operator/= (const Expression &arg) |
Expression | operator+ (const double &arg) const |
Expression | operator+ (const Vector &arg) const |
Expression | operator+ (const Matrix &arg) const |
Expression | operator+ (const Operator &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 Operator &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 Operator &arg) const |
Expression | operator* (const Expression &arg) const |
Expression | operator/ (const double &arg) const |
Expression | operator/ (const Operator &arg) const |
Expression | operator/ (const Expression &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 |
virtual BooleanType | isSmooth () const |
Checks whether the expression is smooth in time . | |
Stream | operator<< (Stream &stream) |
Prints the expression into a stream ("flush" version). | |
Stream & | operator<< (Stream &stream) const |
Prints the expression into a stream ("flush" version). | |
virtual TreeProjection * | cloneTreeProjection () const |
Provides a deep copy of a tree projection. | |
virtual int | getGlobalIndex () const |
Asks the variable for its relative index. | |
virtual double | getValue () const |
Return the value of the constant. | |
virtual Operator * | passArgument () const |
Returns the argument or NULL if no intermediate argument available. | |
Public Attributes | |
int | nCount |
Protected Attributes | |
Operator * | argument |
The basis argument of the power. | |
int | exponent |
The integer valued exponent. | |
Operator * | dargument |
The derivative of the argument. | |
double * | argument_result |
The results for the argument. | |
double * | dargument_result |
The results for the first derivative of the argument. | |
int | bufferSize |
The size of the buffer. | |
CurvatureType | curvature |
MonotonicityType | monotonicity |
Friends | |
Expression | operator+ (const double &arg1, const Operator &arg2) |
Expression | operator+ (const Vector &arg1, const Operator &arg2) |
Expression | operator+ (const Matrix &arg1, const Operator &arg2) |
Expression | operator- (const double &arg1, const Operator &arg2) |
Expression | operator- (const Vector &arg1, const Operator &arg2) |
Expression | operator- (const Matrix &arg1, const Operator &arg2) |
Expression | operator* (const double &arg1, const Operator &arg2) |
Expression | operator* (const Vector &arg1, const Operator &arg2) |
Expression | operator* (const Matrix &arg1, const Operator &arg2) |
Expression | operator/ (const double &arg1, const Operator &arg2) |
Expression | operator/ (const Vector &arg1, const Operator &arg2) |
Expression | operator/ (const Matrix &arg1, const Operator &arg2) |
ConstraintComponent | operator<= (double lb, const Operator &arg) |
ConstraintComponent | operator<= (Vector lb, const Operator &arg) |
ConstraintComponent | operator<= (VariablesGrid lb, const Operator &arg) |
ConstraintComponent | operator>= (double ub, const Operator &arg) |
ConstraintComponent | operator>= (Vector ub, const Operator &arg) |
ConstraintComponent | operator>= (VariablesGrid ub, const Operator &arg) |
ConstraintComponent | operator== (double b, const Operator &arg) |
ConstraintComponent | operator== (Vector b, const Operator &arg) |
ConstraintComponent | operator== (VariablesGrid b, const Operator &arg) |
Stream & | operator<< (Stream &stream, const Operator &arg) |
Prints the expression into a stream ("flush" version). | |
returnValue | operator<< (FILE *file, const Operator &arg) |
Prints the expression into a stream ("flush" version). |
The class Power_Int implements the scalar power operator with integer exponent within the symbolic operators family.
References SmoothOperator::nCount.
Referenced by AD_backward(), AD_forward(), clone(), differentiate(), and substitute().
Power_Int::Power_Int | ( | Operator * | _argument, |
int | _exponent | ||
) |
References argument, argument_result, bufferSize, CT_UNKNOWN, curvature, dargument, dargument_result, exponent, monotonicity, MT_UNKNOWN, and SmoothOperator::nCount.
Power_Int::Power_Int | ( | const Power_Int & | arg | ) |
References argument, argument_result, bufferSize, Operator::clone(), curvature, dargument, dargument_result, exponent, monotonicity, and SmoothOperator::nCount.
References argument, argument_result, dargument, and dargument_result.
returnValue Power_Int::AD_backward | ( | int | dim, |
VariableType * | varType, | ||
int * | component, | ||
Operator * | seed, | ||
Operator ** | df | ||
) | [virtual] |
This function generates an expression for a
backward derivative
dim | number of directions |
varType | the variable types |
component | and their components |
seed | the backward seed |
df | the result |
Implements SmoothOperator.
References Operator::AD_backward(), argument, Operator::clone(), exponent, Operator::isOneOrZero(), NE_NEITHER_ONE_NOR_ZERO, NE_ONE, NE_ZERO, Power_Int(), and SUCCESSFUL_RETURN.
returnValue Power_Int::AD_backward | ( | int | number, |
double | seed, | ||
double * | df | ||
) | [virtual] |
number | the buffer position |
seed | the seed |
df | the derivative of the expression |
Implements SmoothOperator.
References Operator::AD_backward(), argument, argument_result, exponent, and pow().
returnValue Power_Int::AD_backward2 | ( | int | number, |
double | seed1, | ||
double | seed2, | ||
double * | df, | ||
double * | ddf | ||
) | [virtual] |
number | the buffer position |
seed1 | the seed1 |
seed2 | the seed2 |
df | the 1st derivative of the expression |
ddf | the 2nd derivative of the expression |
Implements SmoothOperator.
References Operator::AD_backward2(), argument, argument_result, dargument_result, exponent, pow(), and SUCCESSFUL_RETURN.
Operator * Power_Int::AD_forward | ( | int | dim, |
VariableType * | varType, | ||
int * | component, | ||
Operator ** | seed, | ||
int & | nNewIS, | ||
TreeProjection *** | newIS | ||
) | [virtual] |
This function generates an expression for a
forward derivative
dim | dimension of the seed |
varType | the variable types |
component | and their components |
seed | the forward seed |
nNewIS | the number of new IS |
newIS | the new IS-pointer |
Implements SmoothOperator.
References Operator::AD_forward(), argument, Operator::clone(), dargument, exponent, Operator::isOneOrZero(), NE_NEITHER_ONE_NOR_ZERO, NE_ONE, NE_ZERO, and Power_Int().
returnValue Power_Int::AD_forward | ( | int | number, |
double * | seed, | ||
double * | df | ||
) | [virtual] |
This function uses the intermediate
results from a buffer
number | storage position |
seed | the seed |
df | the derivative of the expression |
Implements SmoothOperator.
References Operator::AD_forward(), argument, argument_result, dargument_result, exponent, pow(), and SUCCESSFUL_RETURN.
returnValue Power_Int::AD_forward | ( | int | number, |
double * | x, | ||
double * | seed, | ||
double * | f, | ||
double * | df | ||
) | [virtual] |
This function stores the intermediate
results in a buffer (needed for 2nd order automatic
differentiation in backward mode)
number | storage position |
x | The evaluation point x |
seed | the seed |
f | the value of the expression at x |
df | the derivative of the expression |
Implements SmoothOperator.
References Operator::AD_forward(), argument, argument_result, bufferSize, dargument_result, exponent, pow(), and SUCCESSFUL_RETURN.
returnValue Power_Int::AD_forward2 | ( | int | number, |
double * | seed1, | ||
double * | seed2, | ||
double * | df, | ||
double * | ddf | ||
) | [virtual] |
This function uses intermediate
results from a buffer.
number | the buffer position |
seed1 | the seed |
seed2 | the seed for the first derivative |
df | the derivative of the expression |
ddf | the 2nd derivative of the expression |
Implements SmoothOperator.
References Operator::AD_forward2(), argument, argument_result, dargument_result, exponent, pow(), and SUCCESSFUL_RETURN.
returnValue Power_Int::clearBuffer | ( | ) | [virtual] |
Implements SmoothOperator.
References argument_result, bufferSize, dargument_result, and SUCCESSFUL_RETURN.
Operator * Power_Int::clone | ( | ) | const [virtual] |
TreeProjection * SmoothOperator::cloneTreeProjection | ( | ) | const [virtual, inherited] |
Reimplemented from Operator.
Reimplemented in TreeProjection.
References ACADOERROR, ASSERT, and RET_UNKNOWN_BUG.
Operator * Power_Int::differentiate | ( | int | index | ) | [virtual] |
index | diff. index |
Implements SmoothOperator.
References argument, Operator::clone(), dargument, Operator::differentiate(), exponent, Operator::isOneOrZero(), NE_NEITHER_ONE_NOR_ZERO, NE_ONE, NE_ZERO, and Power_Int().
returnValue Power_Int::enumerateVariables | ( | SymbolicIndexList * | indexList | ) | [virtual] |
Implements SmoothOperator.
References argument, and Operator::enumerateVariables().
returnValue Power_Int::evaluate | ( | int | number, |
double * | x, | ||
double * | result | ||
) | [virtual] |
number | storage position |
x | the input variable x |
result | the result |
Implements SmoothOperator.
References argument, argument_result, bufferSize, dargument_result, Operator::evaluate(), exponent, pow(), and SUCCESSFUL_RETURN.
returnValue Power_Int::evaluate | ( | EvaluationBase * | x | ) | [virtual] |
Implements SmoothOperator.
References argument, exponent, EvaluationBase::powerInt(), and SUCCESSFUL_RETURN.
CurvatureType Power_Int::getCurvature | ( | ) | [virtual] |
Implements SmoothOperator.
References argument, CT_AFFINE, CT_CONSTANT, CT_CONVEX, CT_NEITHER_CONVEX_NOR_CONCAVE, CT_UNKNOWN, curvature, EPS, exponent, fabs(), and Operator::getCurvature().
int SmoothOperator::getGlobalIndex | ( | ) | const [virtual, inherited] |
Asks the variable for its global index.
Reimplemented from Operator.
Reimplemented in Projection.
References ACADOERROR, and RET_UNKNOWN_BUG.
MonotonicityType Power_Int::getMonotonicity | ( | ) | [virtual] |
Implements SmoothOperator.
References argument, EPS, exponent, fabs(), Operator::getMonotonicity(), monotonicity, MT_CONSTANT, MT_NONMONOTONIC, and MT_UNKNOWN.
OperatorName Power_Int::getName | ( | ) | [virtual] |
double SmoothOperator::getValue | ( | ) | const [virtual, inherited] |
Reimplemented from Operator.
Reimplemented in DoubleConstant, Addition, Product, Quotient, and Subtraction.
References INFTY.
BooleanType Power_Int::isDependingOn | ( | VariableType | var | ) | const [virtual] |
Implements SmoothOperator.
References argument, and Operator::isDependingOn().
BooleanType Power_Int::isDependingOn | ( | int | dim, |
VariableType * | varType, | ||
int * | component, | ||
BooleanType * | implicit_dep | ||
) | [virtual] |
dim | number of directions |
varType | the variable types |
component | and their components |
implicit_dep | implicit dependencies |
Implements SmoothOperator.
References argument, BT_FALSE, exponent, and Operator::isDependingOn().
BooleanType Power_Int::isLinearIn | ( | int | dim, |
VariableType * | varType, | ||
int * | component, | ||
BooleanType * | implicit_dep | ||
) | [virtual] |
dim | number of directions |
varType | the variable types |
component | and their components |
implicit_dep | implicit dependencies |
Implements SmoothOperator.
References argument, BT_FALSE, BT_TRUE, exponent, and Operator::isLinearIn().
NeutralElement Power_Int::isOneOrZero | ( | ) | const [virtual] |
Implements SmoothOperator.
References NE_NEITHER_ONE_NOR_ZERO.
BooleanType Power_Int::isPolynomialIn | ( | int | dim, |
VariableType * | varType, | ||
int * | component, | ||
BooleanType * | implicit_dep | ||
) | [virtual] |
dim | number of directions |
varType | the variable types |
component | and their components |
implicit_dep | implicit dependencies |
Implements SmoothOperator.
References argument, BT_FALSE, BT_TRUE, exponent, and Operator::isPolynomialIn().
BooleanType Power_Int::isRationalIn | ( | int | dim, |
VariableType * | varType, | ||
int * | component, | ||
BooleanType * | implicit_dep | ||
) | [virtual] |
dim | number of directions |
varType | the variable types |
component | and their components |
implicit_dep | implicit dependencies |
Implements SmoothOperator.
References argument, BT_FALSE, BT_TRUE, and Operator::isRationalIn().
BooleanType SmoothOperator::isSmooth | ( | ) | const [virtual, inherited] |
BooleanType Power_Int::isSymbolic | ( | ) | const [virtual] |
Implements SmoothOperator.
References argument, BT_FALSE, BT_TRUE, and Operator::isSymbolic().
BooleanType Power_Int::isVariable | ( | VariableType & | varType, |
int & | component | ||
) | const [virtual] |
returnValue Power_Int::loadIndices | ( | SymbolicIndexList * | indexList | ) | [virtual] |
Whenever a variable gets the
IndexList it tries to make an entry. However if a
variable recognices that it has already been added
before it will not be allowed to make a second entry.
Note that all variables, in paticular the intermediate
states, will keep in mind whether they were allowed
to make an entry or not. This guarantees that
intermediate states are never evaluated twice if they
occur at several knots of the tree.
THIS FUNCTION IS FOR INTERNAL USE ONLY.
PLEASE CALL THIS FUNTION AT MOST ONES FOR AN EXPRESSION
AS A KIND OF INIT ROUTINE.
indexList | The index list to be filled with entries |
Implements SmoothOperator.
References argument, and Operator::loadIndices().
Expression SmoothOperator::operator* | ( | const double & | arg | ) | const [inherited] |
Reimplemented from Operator.
Expression SmoothOperator::operator* | ( | const Vector & | arg | ) | const [inherited] |
Reimplemented from Operator.
Expression SmoothOperator::operator* | ( | const Matrix & | arg | ) | const [inherited] |
Reimplemented from Operator.
Expression SmoothOperator::operator* | ( | const Operator & | arg | ) | const [inherited] |
Reimplemented from Operator.
Expression SmoothOperator::operator* | ( | const Expression & | arg | ) | const [inherited] |
Reimplemented from Operator.
TreeProjection & SmoothOperator::operator*= | ( | const double & | arg | ) | [inherited] |
Reimplemented from Operator.
References SmoothOperator::operator=().
TreeProjection & SmoothOperator::operator*= | ( | const Vector & | arg | ) | [inherited] |
Reimplemented from Operator.
References SmoothOperator::operator=().
TreeProjection & SmoothOperator::operator*= | ( | const Matrix & | arg | ) | [inherited] |
Reimplemented from Operator.
References SmoothOperator::operator=().
TreeProjection & SmoothOperator::operator*= | ( | const Expression & | arg | ) | [inherited] |
Reimplemented from Operator.
References SmoothOperator::operator=().
Expression SmoothOperator::operator+ | ( | const double & | arg | ) | const [inherited] |
Reimplemented from Operator.
Expression SmoothOperator::operator+ | ( | const Vector & | arg | ) | const [inherited] |
Reimplemented from Operator.
Expression SmoothOperator::operator+ | ( | const Matrix & | arg | ) | const [inherited] |
Reimplemented from Operator.
Expression SmoothOperator::operator+ | ( | const Operator & | arg | ) | const [inherited] |
Reimplemented from Operator.
Expression SmoothOperator::operator+ | ( | const Expression & | arg | ) | const [inherited] |
Reimplemented from Operator.
TreeProjection & SmoothOperator::operator+= | ( | const double & | arg | ) | [inherited] |
Reimplemented from Operator.
References SmoothOperator::operator=().
TreeProjection & SmoothOperator::operator+= | ( | const Vector & | arg | ) | [inherited] |
Reimplemented from Operator.
References SmoothOperator::operator=().
TreeProjection & SmoothOperator::operator+= | ( | const Matrix & | arg | ) | [inherited] |
Reimplemented from Operator.
References SmoothOperator::operator=().
TreeProjection & SmoothOperator::operator+= | ( | const Expression & | arg | ) | [inherited] |
Reimplemented from Operator.
References SmoothOperator::operator=().
Expression SmoothOperator::operator- | ( | const double & | arg | ) | const [inherited] |
Reimplemented from Operator.
Expression SmoothOperator::operator- | ( | const Vector & | arg | ) | const [inherited] |
Reimplemented from Operator.
Expression SmoothOperator::operator- | ( | const Matrix & | arg | ) | const [inherited] |
Reimplemented from Operator.
Expression SmoothOperator::operator- | ( | const Operator & | arg | ) | const [inherited] |
Reimplemented from Operator.
Expression SmoothOperator::operator- | ( | const Expression & | arg | ) | const [inherited] |
Reimplemented from Operator.
Expression SmoothOperator::operator- | ( | ) | const [inherited] |
Reimplemented from Operator.
TreeProjection & SmoothOperator::operator-= | ( | const double & | arg | ) | [inherited] |
Reimplemented from Operator.
References SmoothOperator::operator=().
TreeProjection & SmoothOperator::operator-= | ( | const Vector & | arg | ) | [inherited] |
Reimplemented from Operator.
References SmoothOperator::operator=().
TreeProjection & SmoothOperator::operator-= | ( | const Matrix & | arg | ) | [inherited] |
Reimplemented from Operator.
References SmoothOperator::operator=().
TreeProjection & SmoothOperator::operator-= | ( | const Expression & | arg | ) | [inherited] |
Reimplemented from Operator.
References SmoothOperator::operator=().
Expression SmoothOperator::operator/ | ( | const double & | arg | ) | const [inherited] |
Reimplemented from Operator.
Expression SmoothOperator::operator/ | ( | const Operator & | arg | ) | const [inherited] |
Reimplemented from Operator.
Expression SmoothOperator::operator/ | ( | const Expression & | arg | ) | const [inherited] |
Reimplemented from Operator.
TreeProjection & SmoothOperator::operator/= | ( | const double & | arg | ) | [inherited] |
Reimplemented from Operator.
References SmoothOperator::operator=().
TreeProjection & SmoothOperator::operator/= | ( | const Expression & | arg | ) | [inherited] |
Reimplemented from Operator.
References SmoothOperator::operator=().
ConstraintComponent SmoothOperator::operator<= | ( | const double & | ub | ) | const [inherited] |
Reimplemented from Operator.
ConstraintComponent SmoothOperator::operator<= | ( | const Vector & | ub | ) | const [inherited] |
Reimplemented from Operator.
ConstraintComponent SmoothOperator::operator<= | ( | const VariablesGrid & | ub | ) | const [inherited] |
Reimplemented from Operator.
References argument, argument_result, bufferSize, Operator::clone(), curvature, dargument, dargument_result, exponent, monotonicity, and SmoothOperator::nCount.
ConstraintComponent SmoothOperator::operator== | ( | const double & | b | ) | const [inherited] |
Reimplemented from Operator.
ConstraintComponent SmoothOperator::operator== | ( | const Vector & | b | ) | const [inherited] |
Reimplemented from Operator.
ConstraintComponent SmoothOperator::operator== | ( | const VariablesGrid & | b | ) | const [inherited] |
Reimplemented from Operator.
ConstraintComponent SmoothOperator::operator>= | ( | const double & | lb | ) | const [inherited] |
Reimplemented from Operator.
ConstraintComponent SmoothOperator::operator>= | ( | const Vector & | lb | ) | const [inherited] |
Reimplemented from Operator.
ConstraintComponent SmoothOperator::operator>= | ( | const VariablesGrid & | lb | ) | const [inherited] |
Reimplemented from Operator.
Operator * SmoothOperator::passArgument | ( | ) | const [virtual, inherited] |
Reimplemented from Operator.
Reimplemented in TreeProjection.
Stream & Power_Int::print | ( | Stream & | stream | ) | const [virtual] |
Implements SmoothOperator.
References acadoIsEqual(), argument, BinaryOperator::argument1, BinaryOperator::argument2, BT_TRUE, exponent, Operator::getName(), Operator::getValue(), Operator::isVariable(), and ON_POWER.
returnValue Power_Int::setCurvature | ( | CurvatureType | curvature_ | ) | [virtual] |
(For the case that the curvature is explicitly known)
Implements SmoothOperator.
References curvature, and SUCCESSFUL_RETURN.
returnValue Power_Int::setMonotonicity | ( | MonotonicityType | monotonicity_ | ) | [virtual] |
(For the case that the monotonicity is explicitly known)
Implements SmoothOperator.
References monotonicity, and SUCCESSFUL_RETURN.
returnValue Power_Int::setVariableExportName | ( | const VariableType & | _type, |
const Stream * | _name | ||
) | [virtual] |
Reimplemented from Operator.
References argument, and Operator::setVariableExportName().
Operator * Power_Int::substitute | ( | int | index, |
const Operator * | sub | ||
) | [virtual] |
index | subst. index |
sub | the substitution |
Implements SmoothOperator.
References argument, exponent, Power_Int(), and Operator::substitute().
Expression operator* | ( | const double & | arg1, |
const Operator & | arg2 | ||
) | [friend, inherited] |
Expression operator* | ( | const Vector & | arg1, |
const Operator & | arg2 | ||
) | [friend, inherited] |
Expression operator* | ( | const Matrix & | arg1, |
const Operator & | arg2 | ||
) | [friend, inherited] |
Expression operator+ | ( | const double & | arg1, |
const Operator & | arg2 | ||
) | [friend, inherited] |
Expression operator+ | ( | const Vector & | arg1, |
const Operator & | arg2 | ||
) | [friend, inherited] |
Expression operator+ | ( | const Matrix & | arg1, |
const Operator & | arg2 | ||
) | [friend, inherited] |
Expression operator- | ( | const double & | arg1, |
const Operator & | arg2 | ||
) | [friend, inherited] |
Expression operator- | ( | const Vector & | arg1, |
const Operator & | arg2 | ||
) | [friend, inherited] |
Expression operator- | ( | const Matrix & | arg1, |
const Operator & | arg2 | ||
) | [friend, inherited] |
Expression operator/ | ( | const double & | arg1, |
const Operator & | arg2 | ||
) | [friend, inherited] |
Expression operator/ | ( | const Vector & | arg1, |
const Operator & | arg2 | ||
) | [friend, inherited] |
Expression operator/ | ( | const Matrix & | arg1, |
const Operator & | arg2 | ||
) | [friend, inherited] |
returnValue operator<< | ( | FILE * | file, |
const Operator & | arg | ||
) | [friend, inherited] |
ConstraintComponent operator<= | ( | double | lb, |
const Operator & | arg | ||
) | [friend, inherited] |
ConstraintComponent operator<= | ( | Vector | lb, |
const Operator & | arg | ||
) | [friend, inherited] |
ConstraintComponent operator<= | ( | VariablesGrid | lb, |
const Operator & | arg | ||
) | [friend, inherited] |
ConstraintComponent operator== | ( | double | b, |
const Operator & | arg | ||
) | [friend, inherited] |
ConstraintComponent operator== | ( | Vector | b, |
const Operator & | arg | ||
) | [friend, inherited] |
ConstraintComponent operator== | ( | VariablesGrid | b, |
const Operator & | arg | ||
) | [friend, inherited] |
ConstraintComponent operator>= | ( | double | ub, |
const Operator & | arg | ||
) | [friend, inherited] |
ConstraintComponent operator>= | ( | Vector | ub, |
const Operator & | arg | ||
) | [friend, inherited] |
ConstraintComponent operator>= | ( | VariablesGrid | ub, |
const Operator & | arg | ||
) | [friend, inherited] |
Operator* Power_Int::argument [protected] |
Referenced by AD_backward(), AD_backward2(), AD_forward(), AD_forward2(), differentiate(), enumerateVariables(), evaluate(), getCurvature(), getMonotonicity(), isDependingOn(), isLinearIn(), isPolynomialIn(), isRationalIn(), isSymbolic(), loadIndices(), operator=(), Power_Int(), print(), setVariableExportName(), substitute(), and ~Power_Int().
double* Power_Int::argument_result [protected] |
Referenced by AD_backward(), AD_backward2(), AD_forward(), AD_forward2(), clearBuffer(), evaluate(), operator=(), Power_Int(), and ~Power_Int().
int Power_Int::bufferSize [protected] |
Referenced by AD_forward(), clearBuffer(), evaluate(), operator=(), and Power_Int().
CurvatureType Power_Int::curvature [protected] |
Referenced by getCurvature(), operator=(), Power_Int(), and setCurvature().
Operator* Power_Int::dargument [protected] |
Referenced by AD_forward(), differentiate(), operator=(), Power_Int(), and ~Power_Int().
double* Power_Int::dargument_result [protected] |
Referenced by AD_backward2(), AD_forward(), AD_forward2(), clearBuffer(), evaluate(), operator=(), Power_Int(), and ~Power_Int().
int Power_Int::exponent [protected] |
MonotonicityType Power_Int::monotonicity [protected] |
Referenced by getMonotonicity(), operator=(), Power_Int(), and setMonotonicity().
int SmoothOperator::nCount [inherited] |
Reimplemented from Operator.
Referenced by BinaryOperator::BinaryOperator(), COperator::COperator(), BinaryOperator::copy(), COperator::copy(), Projection::copy(), DoubleConstant::DoubleConstant(), UnaryOperator::operator=(), DoubleConstant::operator=(), operator=(), Power_Int(), Projection::Projection(), and UnaryOperator::UnaryOperator().