Optimization

Overview

functions to construct and use Optimization objects.

Function List

qlArmijoLineSearch ()
qlConjugateGradient ()
qlEndCriteria ()
qlEndCriteriaFunctionEpsilon ()
qlEndCriteriaGradientNormEpsilon ()
qlEndCriteriaMaxIterations ()
qlEndCriteriaMaxStationaryStateIterations ()
qlLevenbergMarquardt ()
qlNoConstraint ()
qlSecondsToString ()
qlSimplex ()
qlSphereCylinderOptimizerClosest ()
qlSteepestDescent ()

Function Documentation

qlArmijoLineSearch

string returnValue
qlArmijoLineSearch(
string ObjectId
double Epsilon
double Alpha
double Beta
bool Permanent
any Trigger
bool Overwrite)
Description:

Construct an object of class ArmijoLineSearch and return its id

Supported Platforms:

Excel, C++

Parameters
ObjectIdid of object to be created
Epsilonepsilon. Default value = 1e-8.
Alphaalpha. Default value = 0.05.
Betabeta. Default value = 0.65.
Permanentobject permanent/nonpermanent
Triggerdependency tracking trigger
Overwriteoverwrite flag

qlConjugateGradient

string returnValue
qlConjugateGradient(
string ObjectId
string LineSearch
bool Permanent
any Trigger
bool Overwrite)
Description:

Construct an object of class ConjugateGradient and return its id

Supported Platforms:

Excel, C++

Parameters
ObjectIdid of object to be created
LineSearchLineSearch object ID. Default value = .
Permanentobject permanent/nonpermanent
Triggerdependency tracking trigger
Overwriteoverwrite flag

qlEndCriteria

string returnValue
qlEndCriteria(
string ObjectId
long MaxIterations
long MaxStationaryStateIterations
double RootEpsilon
double FunctionEpsilon
double GradientNormEpsilon
bool Permanent
any Trigger
bool Overwrite)
Description:

Construct an object of class EndCriteria and return its id

Supported Platforms:

Excel, C++

Parameters
ObjectIdid of object to be created
MaxIterationsmax number of iterations.
MaxStationaryStateIterationsmax number of iterations in a stationary state.
RootEpsilontolerance on the root value.
FunctionEpsilontolerance on the function value.
GradientNormEpsilontolerance on the function gradient norm value.
Permanentobject permanent/nonpermanent
Triggerdependency tracking trigger
Overwriteoverwrite flag

qlEndCriteriaFunctionEpsilon

double returnValue
qlEndCriteriaFunctionEpsilon(
string ObjectId
any Trigger)
Description:

Returns the function epsilon for the given EndCriteria object.

Supported Platforms:

Excel

Parameters
ObjectIdid of existing QuantLib::EndCriteria object
Triggerdependency tracking trigger

qlEndCriteriaGradientNormEpsilon

double returnValue
qlEndCriteriaGradientNormEpsilon(
string ObjectId
any Trigger)
Description:

Returns the gradient norm epsilon for the given EndCriteria object.

Supported Platforms:

Excel

Parameters
ObjectIdid of existing QuantLib::EndCriteria object
Triggerdependency tracking trigger

qlEndCriteriaMaxIterations

long returnValue
qlEndCriteriaMaxIterations(
string ObjectId
any Trigger)
Description:

Returns the number of max interation for the given EndCriteria object.

Supported Platforms:

Excel

Parameters
ObjectIdid of existing QuantLib::EndCriteria object
Triggerdependency tracking trigger

qlEndCriteriaMaxStationaryStateIterations

long returnValue
qlEndCriteriaMaxStationaryStateIterations(
string ObjectId
any Trigger)
Description:

Returns the number of max interation in a stationary state for the given EndCriteria object.

Supported Platforms:

Excel

Parameters
ObjectIdid of existing QuantLib::EndCriteria object
Triggerdependency tracking trigger

qlLevenbergMarquardt

string returnValue
qlLevenbergMarquardt(
string ObjectId
double Epsfcn
double Xtol
double Gtol
bool Permanent
any Trigger
bool Overwrite)
Description:

Construct an object of class LevenbergMarquardt and return its id

Supported Platforms:

Excel, C++

Parameters
ObjectIdid of object to be created
Epsfcnepsfcn. Default value = 1.0e-8.
Xtolxtol. Default value = 1.0e-8.
Gtolgtol. Default value = 1.0e-8.
Permanentobject permanent/nonpermanent
Triggerdependency tracking trigger
Overwriteoverwrite flag

qlNoConstraint

string returnValue
qlNoConstraint(
string ObjectId
bool Permanent
any Trigger
bool Overwrite)
Description:

Construct an object of class NoConstraint and return its id

Supported Platforms:

Excel, C++

Parameters
ObjectIdid of object to be created
Permanentobject permanent/nonpermanent
Triggerdependency tracking trigger
Overwriteoverwrite flag

qlSecondsToString

string returnValue
qlSecondsToString(
double Seconds
any Trigger)
Description:

returns a hh:mm:ss string from the number of seconds provided as input.

Supported Platforms:

Excel

Parameters
Secondsnumber of seconds.
Triggerdependency tracking trigger

qlSimplex

string returnValue
qlSimplex(
string ObjectId
double Lambda
bool Permanent
any Trigger
bool Overwrite)
Description:

Construct an object of class Simplex and return its id

Supported Platforms:

Excel, C++

Parameters
ObjectIdid of object to be created
Lambdalambda (typical scale length of the problem).
Permanentobject permanent/nonpermanent
Triggerdependency tracking trigger
Overwriteoverwrite flag

qlSphereCylinderOptimizerClosest

vector<double> returnValue
qlSphereCylinderOptimizerClosest(
double R
double S
double Alpha
double Z1
double Z2
double Z3
long MaxIter
double Tol
any Trigger)
Description:

Sphere Cylinder Optimizer Closest.

Supported Platforms:

Excel

Parameters
Rr.
Ss.
Alphaalpha.
Z1z1.
Z2z2.
Z3z3.
MaxItermaxIter.
Toltolerance.
Triggerdependency tracking trigger

qlSteepestDescent

string returnValue
qlSteepestDescent(
string ObjectId
string LineSearch
bool Permanent
any Trigger
bool Overwrite)
Description:

Construct an object of class SteepestDescent and return its id

Supported Platforms:

Excel, C++

Parameters
ObjectIdid of object to be created
LineSearchLineSearch object ID. Default value = .
Permanentobject permanent/nonpermanent
Triggerdependency tracking trigger
Overwriteoverwrite flag