rrNLEQ2Interface

class NLEQ2Interface : public rr::Dictionary

Public Functions

NLEQ2Interface(ExecutableModel *_model = NULL)

Creates a new Instance of NLEQ for the given Model.

~NLEQ2Interface()
double solve()

Thea actual solver routine making the call to NLEQ2.

Returns

sums of squares

virtual void setItem(const std::string &key, const rr::Setting &value)

Implement Dictionary Interface.

set an arbitrary key

virtual Setting getItem(const std::string &key) const

get a value.

Variants are POD.

virtual bool hasKey(const std::string &key) const

is there a key matching this name.

virtual size_t deleteItem(const std::string &key)

remove a value

virtual std::vector<std::string> getKeys() const

list of keys in this object.

void setup()
bool isAvailable()
void setScalingFactors(const std::vector<double> &sx)

Sets the Scaling Factors

Parameters

sx – Array of Scaling factors

int getNumberOfNewtonIterations()

Returns the Number of Newton Iterations

Returns

the Number of Newton Iterations

int getNumberOfCorrectorSteps()

Returns the Number of Corrector steps

Returns

Returns the Number of Corrector steps

int getNumberOfModelEvaluations()

Returns the Number of Model Evaluations

Returns

the Number of Model Evaluations

int getNumberOfJacobianEvaluations()

Returns the Number Of Jacobian Evaluations

Returns

the Number Of Jacobian Evaluations

int getNumberOfModelEvaluationsForJacobian()

Returns the Number of Model Evaluations For Jacobian

Returns

the Number of Model Evaluations For Jacobian

double computeSumsOfSquares()

Public Members

int nOpts
long *IWK
long LIWK
long LRWK
double *RWK
double *XScal
long ierr
long *iopt
ExecutableModel *model
long n
bool allowPreSim
double preSimTolerance
int preSimMaximumSteps
double preSimTime
bool allowApprox
double approxTolerance
int approxMaximumSteps
double approxTime
double relativeTolerance
int maxIterations
double minDamping
int broyden
int linearity

Public Static Functions

static const Dictionary *getSteadyStateOptions()

list of keys that this integrator supports.

Friends

friend class NLEQ2Solver