35 Real qtold,
t = t_ini;
Armijo line-search class.
Real operator()(Problem &P, EndCriteria::Type &ecType, const EndCriteria &, Real t_ini) override
Perform line search.
1-D array used in linear algebra.
bool empty() const
whether the array is empty
Size size() const
dimension of the array
Criteria to end optimization process:
bool checkMaxIterations(Size iteration, EndCriteria::Type &ecType) const
bool succeed_
flag to know if linesearch succeed
Array searchDirection_
current values of the search direction
Real update(Array ¶ms, const Array &direction, Real beta, const Constraint &constraint)
Array xtd_
new x and its gradient
Real qt_
cost function value and gradient norm corresponding to xtd_
Constrained optimization problem.
const Array & currentValue() const
current value of the local minimum
Real functionValue() const
value of cost function
Real gradientNormValue() const
value of cost function gradient norm
Constraint & constraint() const
Constraint.
Real value(const Array &x)
call cost function computation and increment evaluation counter
void gradient(Array &grad_f, const Array &x)
call cost function gradient computation and increment
std::size_t Size
size of a container
Abstract optimization method class.
Real DotProduct(const Array &v1, const Array &v2)
Abstract optimization problem class.