C API Documentation
|
Public Member Functions | |
NLEQ2Solver (ExecutableModel *_model=NULL) | |
virtual void | syncWithModel (ExecutableModel *m) |
Called whenever a new model is loaded to allow integrator to reset internal state. More... | |
void | loadConfigSettings () |
void | resetSettings () |
Reset all integrator settings to their respective default values. More... | |
std::string | getName () const |
Get the name for this Solver. More... | |
std::string | getDescription () const |
Get the description for this Solver. More... | |
std::string | getHint () const |
Get the hint for this Solver. More... | |
double | solve () |
![]() | |
std::string | getSettingsRepr () const |
Get the solver settings as a string. More... | |
std::string | settingsPyDictRepr () const |
Python dictionary-style string representation of settings. More... | |
virtual std::string | toString () const |
Return a string representation of the solver. More... | |
virtual std::string | toRepr () const |
Return string representation a la Python repr method. More... | |
![]() | |
std::vector< std::string > | getSettings () const |
Get a list of all settings for this solver. More... | |
virtual Variant | getValue (std::string key) const |
Get the value of an integrator setting. More... | |
virtual Variant | hasValue (std::string key) const |
Return true if this setting is supported by the integrator. More... | |
virtual size_t | getNumParams () const |
Get the number of parameters. More... | |
virtual std::string | getParamName (size_t n) const |
Get the name of the parameter at index n. More... | |
virtual std::string | getParamDisplayName (int n) const |
Get the display name of the parameter at index n. More... | |
virtual std::string | getParamHint (int n) const |
Get the hint of the parameter at index n. More... | |
virtual std::string | getParamDesc (int n) const |
Get the description of the parameter at index n. More... | |
virtual int | getValueAsInt (std::string key) |
Wrapper for getValue which converts output to a specific type. More... | |
virtual unsigned int | getValueAsUInt (std::string key) |
Wrapper for getValue which converts output to a specific type. More... | |
virtual long | getValueAsLong (std::string key) |
Wrapper for getValue which converts output to a specific type. More... | |
virtual unsigned long | getValueAsULong (std::string key) |
Wrapper for getValue which converts output to a specific type. More... | |
virtual float | getValueAsFloat (std::string key) |
Wrapper for getValue which converts output to a specific type. More... | |
virtual double | getValueAsDouble (std::string key) |
Wrapper for getValue which converts output to a specific type. More... | |
virtual std::vector< double > | getValueAsDoubleVector (std::string key) |
Wrapper for getValue which converts output to a specific type. | |
virtual char | getValueAsChar (std::string key) |
Wrapper for getValue which converts output to a specific type. More... | |
virtual unsigned char | getValueAsUChar (std::string key) |
Wrapper for getValue which converts output to a specific type. More... | |
virtual std::string | getValueAsString (std::string key) |
Wrapper for getValue which converts output to a specific type. More... | |
virtual bool | getValueAsBool (std::string key) |
Wrapper for getValue which converts output to a specific type. More... | |
virtual void | setValue (std::string key, const Variant &value) |
const std::string & | getDisplayName (std::string key) const |
Gets the hint associated with a given key. More... | |
const std::string & | getHint (std::string key) const |
Gets the hint associated with a given key. More... | |
const std::string & | getDescription (std::string key) const |
Gets the description associated with a given key. More... | |
const Variant::TypeId | getType (std::string key) |
Gets the type associated with a given key. More... | |
std::string | getSettingsRepr () const |
Get the solver settings as a string. More... | |
std::string | settingsPyDictRepr () const |
Python dictionary-style string representation of settings. More... | |
Static Public Member Functions | |
static std::string | getNLEQName () |
Get the name for this Solver. More... | |
static std::string | getNLEQDescription () |
Get the description for this Solver. More... | |
static std::string | getNLEQHint () |
Get the hint for this Solver. More... | |
Additional Inherited Members | |
![]() | |
typedef std::vector< std::string > | SettingsList |
typedef RR_UNORDERED_MAP< std::string, Variant > | SettingsMap |
typedef RR_UNORDERED_MAP< std::string, std::string > | DisplayNameMap |
typedef RR_UNORDERED_MAP< std::string, std::string > | HintMap |
typedef RR_UNORDERED_MAP< std::string, std::string > | DescriptionMap |
![]() | |
void | addSetting (std::string name, Variant val, string display_name, std::string hint, std::string description) |
![]() | |
SettingsList | sorted_settings |
SettingsMap | settings |
DisplayNameMap | display_names_ |
HintMap | hints |
DescriptionMap | descriptions |
rr::NLEQ2Solver::NLEQ2Solver | ( | ExecutableModel * | _model = NULL | ) |
Creates a new Instance of NLEQ for the given Model
|
virtual |
|
virtual |
|
virtual |
|
static |
Get the description for this Solver.
|
static |
Get the hint for this Solver.
|
static |
Get the name for this Solver.
|
virtual |
Reset all integrator settings to their respective default values.
Reimplemented from rr::Solver.
|
virtual |
Called whenever a new model is loaded to allow integrator to reset internal state.
Implements rr::SteadyStateSolver.