ROL
ROL_TypeB_QuasiNewtonAlgorithm.hpp
Go to the documentation of this file.
1// @HEADER
2// *****************************************************************************
3// Rapid Optimization Library (ROL) Package
4//
5// Copyright 2014 NTESS and the ROL contributors.
6// SPDX-License-Identifier: BSD-3-Clause
7// *****************************************************************************
8// @HEADER
9
10#ifndef ROL_TYPEB_QUASINEWTONALGORITHM_HPP
11#define ROL_TYPEB_QUASINEWTONALGORITHM_HPP
12
14#include "ROL_SecantFactory.hpp"
15
20namespace ROL {
21namespace TypeB {
22
23template<typename Real>
25private:
26 Ptr<Secant<Real>> secant_;
28 std::string secantName_;
29
30 int maxit_;
31 Real rhodec_;
32 Real c1_;
33 Real sigma1_;
34 Real sigma2_;
38 std::string algoName_;
39
40 ParameterList list_;
41
42 bool hasLEC_;
46
47 using TypeB::Algorithm<Real>::status_;
48 using TypeB::Algorithm<Real>::state_;
49 using TypeB::Algorithm<Real>::proj_;
50
52 const Vector<Real> &g,
53 Objective<Real> &obj,
55 std::ostream &outStream = std::cout);
56
57public:
58
59 QuasiNewtonAlgorithm(ParameterList &list, const Ptr<Secant<Real>> &secant = nullPtr);
60
61 using TypeB::Algorithm<Real>::run;
62
63 void run( Vector<Real> &x,
64 const Vector<Real> &g,
65 Objective<Real> &obj,
67 std::ostream &outStream = std::cout) override;
68
69 void writeHeader( std::ostream& os ) const override;
70
71 void writeName( std::ostream& os ) const override;
72
73 void writeOutput( std::ostream &os, const bool write_header = false ) const override;
74
75}; // class ROL::TypeB::QuasiNewtonAlgorithm
76
77} // namespace TypeB
78} // namespace ROL
79
81
82#endif
Provides the interface to apply upper and lower bound constraints.
Provides the interface to evaluate objective functions.
Provides interface for and implements limited-memory secant operators.
Provides an interface to run bound constrained optimization algorithms.
Ptr< PolyhedralProjection< Real > > proj_
const Ptr< AlgorithmState< Real > > state_
const Ptr< CombinedStatusTest< Real > > status_
Provides an interface to run the projected secant algorithm.
Real sigma2_
Upper safeguard for quadratic line search (default: 0.9)
Real c1_
Sufficient Decrease Parameter (default: 1e-4)
int maxit_
Maximum number of line search steps (default: 20)
Real sigma1_
Lower safeguard for quadratic line search (default: 0.1)
Ptr< Secant< Real > > secant_
Secant object (used for quasi-Newton)
void writeOutput(std::ostream &os, const bool write_header=false) const override
Print iterate status.
void writeHeader(std::ostream &os) const override
Print iterate header.
void writeName(std::ostream &os) const override
Print step name.
Real rhodec_
Backtracking rate (default: 0.5)
void run(Vector< Real > &x, const Vector< Real > &g, Objective< Real > &obj, BoundConstraint< Real > &bnd, std::ostream &outStream=std::cout) override
Run algorithm on bound constrained problems (Type-B). This general interface supports the use of dual...
void initialize(Vector< Real > &x, const Vector< Real > &g, Objective< Real > &obj, BoundConstraint< Real > &bnd, std::ostream &outStream=std::cout)
Defines the linear algebra or vector space interface.