215 return arg.
print( stream );
224 const std::vector< std::string >& _name
298 if( b == 1 )
return a->
clone();
345 S, dimS, dfS, ldf, H, nNewLIS, newLIS, nNewSIS, newSIS, nNewHIS, newHIS
354 for( run1 = 0; run1 < dimS; run1++ ){
355 for( run2 = 0; run2 <= run1; run2++ ){
357 delete H[run1*dimS+run2];
360 H[run1*dimS+run2] =
myAdd( tmp1, tmp4 );
372 for( run1 = 0; run1 < dimS; run1++ ){
419 for( run2 = 0; run2 < dimS; run2++ ){
424 for( run2 = 0; run2 < dimS*dimS; run2++ ){
430 S, dimS, S1, ldf, H1, nNewLIS, newLIS, nNewSIS, newSIS, nNewHIS, newHIS );
434 S, dimS, S2, ldf, H2, nNewLIS, newLIS, nNewSIS, newSIS, nNewHIS, newHIS );
445 for( run1 = 0; run1 < dimS; run1++ ){
446 for( run2 = 0; run2 <= run1; run2++ ){
447 delete H[run1*dimS+run2];
453 if( run1 == run2 ) tmp5 =
myAdd(tmp2,tmp2);
454 else tmp5 =
myAdd(tmp2,tmp3);
461 H[run1*dimS+run2] =
myAdd ( tmp12 , H2[run1*dimS+run2] );
484 for( run1 = 0; run1 < dimS; run1++ ){
488 dfS[run1] =
myAdd(tmp1,tmp2);
496 for( run2 = 0; run2 < dimS; run2++ ){
500 for( run2 = 0; run2 < dimS*dimS; run2++ ){
virtual int getGlobalIndex() const
ConstraintComponent operator==(const double &b) const
Abstract base class for all scalar-valued symbolic operators.
ConstraintComponent operator>=(const double &lb) const
virtual NeutralElement isOneOrZero() const =0
Expression operator*(const double &arg) const
virtual Operator * myPowerInt(Operator *a, int b)
Provides a time grid consisting of vector-valued optimization variables at each grid point...
Allows to pass back messages to the calling function.
Expression operator+(const double &arg) const
Implements the scalar power operator within the symbolic operators family.
virtual Operator * clone() const =0
virtual returnValue setVariableExportName(const VariableType &_type, const std::vector< std::string > &_name)
virtual double getValue() const
#define CLOSE_NAMESPACE_ACADO
Data class for symbolically formulating constraints within optimal control problems.
virtual Operator * mySubtract(Operator *a, Operator *b)
Expression operator/(const double &arg) const
Operator & operator+=(const double &arg)
Base class for all variables within the symbolic expressions family.
returnValue ADsymCommon2(Operator *a, Operator *b, TreeProjection &dx, TreeProjection &dy, TreeProjection &dxx, TreeProjection &dxy, TreeProjection &dyy, int dim, VariableType *varType, int *component, Operator *l, Operator **S, int dimS, Operator **dfS, Operator **ldf, Operator **H, int &nNewLIS, TreeProjection ***newLIS, int &nNewSIS, TreeProjection ***newSIS, int &nNewHIS, TreeProjection ***newHIS)
Operator & operator*=(const double &arg)
virtual Operator & operator=(const double &arg)
Implements the scalar power operator with integer exponent within the symbolic operators family...
virtual Operator * myProd(Operator *a, Operator *b)
virtual TreeProjection * cloneTreeProjection() const
virtual returnValue initDerivative()
Implements the scalar addition operator within the symbolic expressions family.
Implements the scalar subtraction operator within the symbolic operators family.
virtual Operator * myAdd(Operator *a, Operator *b)
static TreeProjection emptyTreeProjection
returnValue ADsymCommon(Operator *a, TreeProjection &da, TreeProjection &dda, int dim, VariableType *varType, int *component, Operator *l, Operator **S, int dimS, Operator **dfS, Operator **ldf, Operator **H, int &nNewLIS, TreeProjection ***newLIS, int &nNewSIS, TreeProjection ***newSIS, int &nNewHIS, TreeProjection ***newHIS)
virtual std::ostream & print(std::ostream &stream) const =0
ConstraintComponent operator<=(const double &ub) const
friend std::ostream & operator<<(std::ostream &stream, const Operator &arg)
Expression operator-() const
virtual Operator * myLogarithm(Operator *a)
virtual Operator * passArgument() const
Implements the tree-projection operator within the family of SymbolicOperators.
virtual TreeProjection * convert2TreeProjection(Operator *a) const
#define BEGIN_NAMESPACE_ACADO
Implements the scalar logarithm operator within the symbolic operators family.
virtual TreeProjection * clone() const
virtual BooleanType isTrivial() const
Operator & operator-=(const double &arg)
virtual Operator * myPower(Operator *a, Operator *b)
Operator & operator/=(const double &arg)
virtual returnValue AD_symmetric(int dim, VariableType *varType, int *component, Operator *l, Operator **S, int dimS, Operator **dfS, Operator **ldf, Operator **H, int &nNewLIS, TreeProjection ***newLIS, int &nNewSIS, TreeProjection ***newSIS, int &nNewHIS, TreeProjection ***newHIS)=0
Implements a scalar constant within the symbolic operators family.
#define ACADOERROR(retval)
Implements the scalar product operator within the symbolic operators family.