45#ifndef quantext_optimization_problem_mt_h
46#define quantext_optimization_problem_mt_h
48#include <ql/math/optimization/method.hpp>
49#include <ql/math/optimization/costfunction.hpp>
74 const Array& initialValue = Array())
84 Real
value(
const Size i,
const Array& x);
87 Array
values(
const Size i,
const Array& x);
91 void gradient(
const Size i, Array& grad_f,
Constrained optimization problem.
Real value(const Size i, const Array &x)
call cost function i computation and increment evaluation counter
const Array & currentValue() const
current value of the local minimum
Array values(const Size i, const Array &x)
call cost values i computation and increment evaluation counter
std::vector< Integer > functionEvaluation_
number of evaluation of cost function and its gradient
Array currentValue_
current value of the local minimum
Real functionValue() const
value of cost function
void setGradientNormValue(Real squaredNorm)
Integer functionEvaluation() const
number of evaluation of cost function
Real gradientNormValue() const
value of cost function gradient norm
const std::vector< QuantLib::ext::shared_ptr< CostFunction > > & costFunctions() const
Cost funcionts.
Constraint & constraint_
Constraint.
Constraint & constraint() const
Constraint.
Integer gradientEvaluation() const
number of evaluation of cost function gradient
void gradient(const Size i, Array &grad_f, const Array &x)
call cost function i gradient computation and increment
Integer availableCostFunctions() const
number of available independent cost functions
QuantLib::ext::shared_ptr< CostFunction > costFunction(const Size i) const
Cost function.
Real valueAndGradient(const Size i, Array &grad_f, const Array &x)
call cost function i computation and it gradient
std::vector< QuantLib::ext::shared_ptr< CostFunction > > costFunctions_
Unconstrained cost function.
void setFunctionValue(Real functionValue)
void setCurrentValue(const Array ¤tValue)
Problem_MT(const std::vector< QuantLib::ext::shared_ptr< CostFunction > > &costFunctions, Constraint &constraint, const Array &initialValue=Array())
Real functionValue_
function and gradient norm values at the curentValue_ (i.e. the last step)
std::vector< Integer > gradientEvaluation_