- 3.0.2 optimal control module.
|
Contains the NLP solver settings. More...
#include <NlpSolverSettings.h>
Public Member Functions | |
NlpSolverSettings () | |
Default constructor, set default settings. More... | |
void | print () |
Prints out settings. More... | |
bool | parametersOk () const |
Checks whether to settings are filled with meaningful values. More... | |
void | load (const std::string &filename, bool verbose=true, const std::string &ns="solver") |
Loads the settings from a .info file. More... | |
Public Attributes | |
NlpSolverType | solverType_ |
bool | useGeneratedCostGradient_ |
bool | useGeneratedConstraintJacobian_ |
SnoptSettings | snoptSettings_ |
IpoptSettings | ipoptSettings_ |
Contains the NLP solver settings.
|
inline |
Default constructor, set default settings.
|
inline |
Prints out settings.
References ct::optcon::IPOPT, ct::optcon::SnoptSettings::print(), ct::optcon::IpoptSettings::print(), and ct::optcon::SNOPT.
Referenced by ct::optcon::DmsSettings::print().
|
inline |
Checks whether to settings are filled with meaningful values.
References ct::optcon::IPOPT, ct::optcon::SnoptSettings::parametersOk(), ct::optcon::IpoptSettings::parametersOk(), and ct::optcon::SNOPT.
Referenced by ct::optcon::DmsSettings::parametersOk().
|
inline |
Loads the settings from a .info file.
[in] | filename | The filename |
[in] | verbose | True if parameters to be printed out |
[in] | ns | The namespace in the .info fil |
References ct::optcon::IPOPT, ct::optcon::SnoptSettings::load(), ct::optcon::IpoptSettings::load(), ct::optcon::SNOPT, and ct::optcon::example::verbose.
Referenced by ct::optcon::DmsSettings::load().
NlpSolverType ct::optcon::NlpSolverSettings::solverType_ |
Referenced by ct::optcon::example::OscDms::getIpoptSolution(), ct::optcon::example::OscDms::getSnoptSolution(), main(), and ct::optcon::example::TEST().
bool ct::optcon::NlpSolverSettings::useGeneratedCostGradient_ |
bool ct::optcon::NlpSolverSettings::useGeneratedConstraintJacobian_ |
SnoptSettings ct::optcon::NlpSolverSettings::snoptSettings_ |
IpoptSettings ct::optcon::NlpSolverSettings::ipoptSettings_ |
Referenced by main().