63 if ( _userInteraction == 0 ){
114 for( run1 = 0; run1 <
N; run1++ ){
136 for( run1 = 0; run1 <
N; run1++ )
149 residuum_.
init(
N, 1 );
151 for( run1 = 0; run1 <
N; run1++ ){
154 tmp( run2, 0 ) =
residuum(run1,run2);
273 uint nEvaluationPoints = 0;
281 case LOW : nEvaluationPoints = (
uint)(10.0 /
sqrt((
double)nShoot) + 2.0);
break;
282 case MEDIUM: nEvaluationPoints = (
uint)(30.0 /
sqrt((
double)nShoot) + 2.0);
break;
283 case HIGH : nEvaluationPoints = (
uint)(100.0 /
sqrt((
double)nShoot) + 2.0);
break;
284 default : nEvaluationPoints = (
uint)(10.0 /
sqrt((
double)nShoot) + 2.0);
break;
286 return nEvaluationPoints;
virtual returnValue getForwardSensitivities(BlockMatrix &D) const
Implements a very rudimentary block sparse matrix class.
const int defaultFeasibilityCheck
returnValue addItem(LogName _name, const char *const _label=DEFAULT_LABEL)
IntermediateState sqrt(const Expression &arg)
virtual returnValue getResiduum(BlockMatrix &residuum_) const
const double defaultRelaxationParameter
const double defaultMaxStepsize
virtual ~DynamicDiscretization()
returnValue setDense(uint rowIdx, uint colIdx, const DMatrix &value)
const int defaultFreezeIntegrator
Allows to pass back messages to the calling function.
AlgorithmicBase & operator=(const AlgorithmicBase &rhs)
Base class for all algorithmic modules within the ACADO Toolkit providing some basic functionality...
virtual returnValue setBackwardSeed(const BlockMatrix &seed)
const double defaultStepsizeTuning
BEGIN_NAMESPACE_ACADO typedef unsigned int uint
const double defaultMinStepsize
DynamicDiscretization & operator=(const DynamicDiscretization &rhs)
const int defaultMaxNumSteps
virtual returnValue deleteAllSeeds()
#define CLOSE_NAMESPACE_ACADO
Base class for discretizing a DifferentialEquation for use in optimal control algorithms.
const double defaultIntegratorTolerance
const int defaultIntegratorPrintlevel
virtual returnValue setUnitForwardSeed()
void initializeVariables()
virtual returnValue setupOptions()
returnValue init(uint _nRows, uint _nCols)
const double defaultCorrectorTolerance
Encapsulates all user interaction for setting options, logging data and plotting results.
const double defaultInitialStepsize
const int defaultAlgebraicRelaxation
uint getNumIntervals() const
virtual returnValue setForwardSeed(const BlockMatrix &xSeed_, const BlockMatrix &pSeed_, const BlockMatrix &uSeed_, const BlockMatrix &wSeed_)
Allows to setup and store user-specified log records of algorithmic information.
#define BEGIN_NAMESPACE_ACADO
int addLogRecord(LogRecord &_record)
const int defaultPlotResoltion
const int defaultLinearAlgebraSolver
virtual returnValue getBackwardSensitivities(BlockMatrix &D) const
virtual returnValue setUnitBackwardSeed()
uint getNumValues() const
returnValue addOption(OptionsName name, int value)
returnValue setIdentity(uint rowIdx, uint colIdx, uint dim)
uint getNumEvaluationPoints() const
virtual returnValue setupLogging()
const double defaultAbsoluteTolerance
void copy(const DynamicDiscretization &rhs)