#include <ored/model/calibrationconfiguration.hpp>
Public Member Functions | |
CalibrationConfiguration (QuantLib::Real rmseTolerance=0.0001, QuantLib::Size maxIterations=50) | |
Constructor. More... | |
Inspectors | |
QuantLib::Real | rmseTolerance () const |
A final tolerance on the RMSE of the calibration that may be used by various builders. More... | |
QuantLib::Size | maxIterations () const |
does not have a constraint, a | |
Return constraint for the parameter Currently, only boundary constraints are supported. If the parameter NoConstraint instance is returned. | |
QuantLib::ext::shared_ptr< QuantLib::Constraint > | constraint (const std::string &name) const |
std::pair< QuantLib::Real, QuantLib::Real > | boundaries (const std::string &name) const |
void | add (const std::string &name, QuantLib::Real lowerBound, QuantLib::Real upperBound) |
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... | |
Serialisation | |
QuantLib::Real | rmseTolerance_ |
QuantLib::Size | maxIterations_ |
std::map< std::string, std::pair< QuantLib::Real, QuantLib::Real > > | constraints_ |
void | fromXML (XMLNode *node) override |
XMLNode * | toXML (XMLDocument &doc) const override |
Class for holding calibration configuration details.
Definition at line 38 of file calibrationconfiguration.hpp.
CalibrationConfiguration | ( | QuantLib::Real | rmseTolerance = 0.0001 , |
QuantLib::Size | maxIterations = 50 |
||
) |
Constructor.
Definition at line 36 of file calibrationconfiguration.cpp.
Real rmseTolerance | ( | ) | const |
A final tolerance on the RMSE of the calibration that may be used by various builders.
Definition at line 39 of file calibrationconfiguration.cpp.
Size maxIterations | ( | ) | const |
High level maximum iterations. This may mean different to things to different builders. This is not the maximum number of iterations used by the EndCriteria for optimisation. If this is needed, this should be added in another XML object along with the other EndCriteria elements and included as a CalibrationConfiguration member.
Definition at line 43 of file calibrationconfiguration.cpp.
QuantLib::ext::shared_ptr< Constraint > constraint | ( | const std::string & | name | ) | const |
Definition at line 47 of file calibrationconfiguration.cpp.
pair< Real, Real > boundaries | ( | const std::string & | name | ) | const |
Return the boundaries for the parameter name
.
If no boundaries have been given for parameter name
, a pair with both elements set to Null<Real>() is returned.
Definition at line 56 of file calibrationconfiguration.cpp.
void add | ( | const std::string & | name, |
QuantLib::Real | lowerBound, | ||
QuantLib::Real | upperBound | ||
) |
Add a boundary constraint on the parameter name
.
Definition at line 65 of file calibrationconfiguration.cpp.
|
overridevirtual |
Implements XMLSerializable.
Definition at line 72 of file calibrationconfiguration.cpp.
|
overridevirtual |
Implements XMLSerializable.
Definition at line 105 of file calibrationconfiguration.cpp.
|
protected |
Definition at line 82 of file calibrationconfiguration.hpp.
|
protected |
Definition at line 83 of file calibrationconfiguration.hpp.
|
protected |
Definition at line 84 of file calibrationconfiguration.hpp.