ROL
ROL_TypeB_InteriorPointAlgorithm.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_INTERIORPOINTALGORITHM_HPP
11#define ROL_TYPEB_INTERIORPOINTALGORITHM_HPP
12
15#include "ROL_Secant.hpp"
16
20
21namespace ROL {
22namespace TypeB {
23
24template<typename Real>
26private:
27 const Ptr<Secant<Real>> secant_;
28
29 Real mumin_;
30 Real mumax_;
31 Real rho_;
33 Real kappaD_;
34 Real gtol_;
35 Real stol_;
38
39 ROL::ParameterList list_;
41
42 std::string stepname_;
43
44 bool print_;
47
49
50 using TypeB::Algorithm<Real>::status_;
51 using TypeB::Algorithm<Real>::state_;
52 using TypeB::Algorithm<Real>::proj_;
53
55 const Vector<Real> &g,
58 Vector<Real> &pwa,
59 std::ostream &outStream = std::cout);
60
61 void updateState(const Vector<Real> &x,
64 Vector<Real> &pwa,
65 std::ostream &outStream = std::cout);
66public:
67
68 InteriorPointAlgorithm(ParameterList &list, const Ptr<Secant<Real>> &secant = nullPtr);
69
70 using TypeB::Algorithm<Real>::run;
71 void run( Vector<Real> &x,
72 const Vector<Real> &g,
73 Objective<Real> &obj,
75 std::ostream &outStream = std::cout) override;
76
77 void writeHeader( std::ostream& os ) const override;
78
79 void writeName( std::ostream& os ) const override;
80
81 void writeOutput( std::ostream& os, const bool write_header = false ) const override;
82
83}; // class ROL::TypeB::InteriorPointAlgorithm
84
85} // namespace TypeB
86} // namespace ROL
87
89
90#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_
void writeName(std::ostream &os) const override
Print step name.
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 writeOutput(std::ostream &os, const bool write_header=false) const override
Print iterate status.
void updateState(const Vector< Real > &x, InteriorPointObjective< Real > &ipobj, BoundConstraint< Real > &bnd, Vector< Real > &pwa, std::ostream &outStream=std::cout)
void initialize(Vector< Real > &x, const Vector< Real > &g, InteriorPointObjective< Real > &ipobj, BoundConstraint< Real > &bnd, Vector< Real > &pwa, std::ostream &outStream=std::cout)
InteriorPointAlgorithm(ParameterList &list, const Ptr< Secant< Real > > &secant=nullPtr)
void writeHeader(std::ostream &os) const override
Print iterate header.
Defines the linear algebra or vector space interface.