89 for(
uint run1=0; run1<
N; ++run1 )
91 if ( iter.
getNX() != 0 )
97 if ( ( iter.
getNP() != 0 ) && ( run1 != N-1 ) )
100 if ( ( iter.
getNU() != 0 ) && ( run1 != N-1 ) )
103 if ( ( iter.
getNW() != 0 ) && ( run1 != N-1 ) )
109 if ( iter.
getNP() != 0 )
112 if ( iter.
getNU() != 0 )
115 if ( iter.
getNW() != 0 )
130 (x^x).getSubBlock(0,0,scale1,1,1);
131 (y^
y).getSubBlock(0,0,scale2,1,1);
133 if ( ( scale1(0,0) <= 1000.0*
EPS ) || ( scale2(0,0) <= 1000.0*
EPS ) )
Data class for storing generic optimization variables.
Implements a very rudimentary block sparse matrix class.
IntermediateState sqrt(const Expression &arg)
Implements an exact Hessian computation for obtaining second-order derivatives within NLPsolvers...
virtual NLPderivativeApproximation * clone() const
BEGIN_NAMESPACE_ACADO const double EPS
Allows to pass back messages to the calling function.
BEGIN_NAMESPACE_ACADO typedef unsigned int uint
virtual returnValue initHessian(BlockMatrix &B, uint N, const OCPiterate &iter)
#define CLOSE_NAMESPACE_ACADO
virtual returnValue apply(BlockMatrix &B, const BlockMatrix &x, const BlockMatrix &y)
Encapsulates all user interaction for setting options, logging data and plotting results.
void rhs(const real_t *x, real_t *f)
#define BEGIN_NAMESPACE_ACADO
ExactHessian & operator=(const ExactHessian &rhs)
virtual returnValue initScaling(BlockMatrix &B, const BlockMatrix &x, const BlockMatrix &y)
NLPderivativeApproximation & operator=(const NLPderivativeApproximation &rhs)
returnValue setIdentity(uint rowIdx, uint colIdx, uint dim)
Base class for techniques of approximating second-order derivatives within NLPsolvers.