89 if( fabs( alpha ) >=
EPS )
105 const double kappa = 1.2;
119 result += kappa*tmp(0,0);
136 result -= kappa*tmp(0,0);
141 result += kappa*tmp(0,0);
148 result -= kappa*tmp(0,0);
159 result += kappa*tmp(0,0);
Data class for storing generic optimization variables.
virtual ~SCPmeritFunction()
returnValue clearDynamicDiscretization()
BlockMatrix upperConstraintResiduum
BEGIN_NAMESPACE_ACADO const double EPS
Allows to pass back messages to the calling function.
AlgorithmicBase & operator=(const AlgorithmicBase &rhs)
virtual returnValue evaluate(double alpha, const OCPiterate &iter, BandedCP &cp, SCPevaluation &eval, double &result)
Base class for all algorithmic modules within the ACADO Toolkit providing some basic functionality...
BlockMatrix getAbsolute() const
virtual returnValue evaluate(OCPiterate &iter, BandedCP &cp)
BlockMatrix lambdaConstraint
#define CLOSE_NAMESPACE_ACADO
BlockMatrix getNegative() const
virtual double getObjectiveValue() const
BlockMatrix lambdaDynamic
BlockMatrix lowerBoundResiduum
BooleanType isDynamicNLP() const
Allows to evaluate a merit function within an SCPmethod for solving NLPs.
returnValue applyStep(const BlockMatrix &bm, double alpha)
BlockMatrix lowerConstraintResiduum
BlockMatrix upperBoundResiduum
Encapsulates all user interaction for setting options, logging data and plotting results.
void rhs(const real_t *x, real_t *f)
virtual SCPmeritFunction * clone() const
BlockMatrix getPositive() const
Base class for different ways to evaluate functions and derivatives within an SCPmethod for solving N...
#define BEGIN_NAMESPACE_ACADO
SCPmeritFunction & operator=(const SCPmeritFunction &rhs)
Data class for storing conic programs arising from optimal control.