#include <ored/configuration/onedimsolverconfig.hpp>
Public Member Functions | |
OneDimSolverConfig () | |
Default constructor with everything QuantLib::Null . More... | |
OneDimSolverConfig (QuantLib::Size maxEvaluations, QuantLib::Real initialGuess, QuantLib::Real accuracy, const std::pair< QuantLib::Real, QuantLib::Real > &minMax, QuantLib::Real lowerBound=QuantLib::Null< QuantLib::Real >(), QuantLib::Real upperBound=QuantLib::Null< QuantLib::Real >()) | |
Constructor for max min based solver configuration. More... | |
OneDimSolverConfig (QuantLib::Size maxEvaluations, QuantLib::Real initialGuess, QuantLib::Real accuracy, QuantLib::Real step, QuantLib::Real lowerBound=QuantLib::Null< QuantLib::Real >(), QuantLib::Real upperBound=QuantLib::Null< QuantLib::Real >()) | |
Constructor for step based solver configuration. More... | |
XMLSerializable interface | |
void | fromXML (ore::data::XMLNode *node) override |
ore::data::XMLNode * | toXML (ore::data::XMLDocument &doc) const override |
Public Member Functions inherited from XMLSerializable | |
virtual | ~XMLSerializable () |
virtual void | fromXML (XMLNode *node)=0 |
virtual XMLNode * | toXML (XMLDocument &doc) const =0 |
void | fromFile (const std::string &filename) |
void | toFile (const std::string &filename) const |
void | fromXMLString (const std::string &xml) |
Parse from XML string. More... | |
std::string | toXMLString () const |
Parse from XML string. More... | |
Inspectors | |
QuantLib::Size | maxEvaluations_ |
QuantLib::Real | initialGuess_ |
QuantLib::Real | accuracy_ |
std::pair< QuantLib::Real, QuantLib::Real > | minMax_ |
QuantLib::Real | step_ |
QuantLib::Real | lowerBound_ |
QuantLib::Real | upperBound_ |
bool | empty_ |
QuantLib::Size | maxEvaluations () const |
QuantLib::Real | initialGuess () const |
QuantLib::Real | accuracy () const |
const std::pair< QuantLib::Real, QuantLib::Real > & | minMax () const |
QuantLib::Real | step () const |
QuantLib::Real | lowerBound () const |
QuantLib::Real | upperBound () const |
bool | empty () const |
Return true if default constructed and not populated i.e. no useful configuration. More... | |
operator QuantExt::Solver1DOptions () const | |
Conversion to QuantExt::Solver1DOptions. More... | |
void | check () const |
Basic checks. More... | |
Serializable 1-D solver configuration
Definition at line 36 of file onedimsolverconfig.hpp.
Default constructor with everything QuantLib::Null
.
Definition at line 30 of file onedimsolverconfig.cpp.
OneDimSolverConfig | ( | QuantLib::Size | maxEvaluations, |
QuantLib::Real | initialGuess, | ||
QuantLib::Real | accuracy, | ||
const std::pair< QuantLib::Real, QuantLib::Real > & | minMax, | ||
QuantLib::Real | lowerBound = QuantLib::Null< QuantLib::Real >() , |
||
QuantLib::Real | upperBound = QuantLib::Null< QuantLib::Real >() |
||
) |
Constructor for max min based solver configuration.
OneDimSolverConfig | ( | QuantLib::Size | maxEvaluations, |
QuantLib::Real | initialGuess, | ||
QuantLib::Real | accuracy, | ||
QuantLib::Real | step, | ||
QuantLib::Real | lowerBound = QuantLib::Null< QuantLib::Real >() , |
||
QuantLib::Real | upperBound = QuantLib::Null< QuantLib::Real >() |
||
) |
Constructor for step based solver configuration.
|
overridevirtual |
Implements XMLSerializable.
Definition at line 74 of file onedimsolverconfig.cpp.
|
overridevirtual |
Implements XMLSerializable.
Definition at line 108 of file onedimsolverconfig.cpp.
QuantLib::Size maxEvaluations | ( | ) | const |
Definition at line 65 of file onedimsolverconfig.hpp.
QuantLib::Real initialGuess | ( | ) | const |
Definition at line 66 of file onedimsolverconfig.hpp.
QuantLib::Real accuracy | ( | ) | const |
Definition at line 67 of file onedimsolverconfig.hpp.
const std::pair< QuantLib::Real, QuantLib::Real > & minMax | ( | ) | const |
Definition at line 68 of file onedimsolverconfig.hpp.
QuantLib::Real step | ( | ) | const |
Definition at line 69 of file onedimsolverconfig.hpp.
QuantLib::Real lowerBound | ( | ) | const |
Definition at line 70 of file onedimsolverconfig.hpp.
QuantLib::Real upperBound | ( | ) | const |
Definition at line 71 of file onedimsolverconfig.hpp.
bool empty | ( | ) | const |
Return true
if default constructed and not populated i.e. no useful configuration.
Definition at line 75 of file onedimsolverconfig.hpp.
operator QuantExt::Solver1DOptions | ( | ) | const |
Conversion to QuantExt::Solver1DOptions.
Definition at line 136 of file onedimsolverconfig.cpp.
|
private |
Basic checks.
Definition at line 153 of file onedimsolverconfig.cpp.
|
private |
Definition at line 81 of file onedimsolverconfig.hpp.
|
private |
Definition at line 82 of file onedimsolverconfig.hpp.
|
private |
Definition at line 83 of file onedimsolverconfig.hpp.
|
private |
Definition at line 84 of file onedimsolverconfig.hpp.
|
private |
Definition at line 85 of file onedimsolverconfig.hpp.
|
private |
Definition at line 86 of file onedimsolverconfig.hpp.
|
private |
Definition at line 87 of file onedimsolverconfig.hpp.
|
private |
Definition at line 90 of file onedimsolverconfig.hpp.