ROL
ROL_TypeE_AugmentedLagrangianAlgorithm.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_TYPEE_AUGMENTEDLAGRANGIANALGORITHM_H
11#define ROL_TYPEE_AUGMENTEDLAGRANGIANALGORITHM_H
12
15#include "ROL_Secant.hpp"
16
22namespace ROL {
23namespace TypeE {
24
25template<typename Real>
27private:
28 const Ptr<Secant<Real>> secant_;
29 ParameterList list_;
31 // Lagrange multiplier update
38 // Optimality tolerance update
43 // Feasibility tolerance update
48 // Subproblem information
49 bool print_;
50 int maxit_;
52 std::string subStep_;
57 // Scaling information
59 Real fscale_;
60 Real cscale_;
61 // Verbosity flag
64
65 using TypeE::Algorithm<Real>::state_;
66 using TypeE::Algorithm<Real>::status_;
67
69 const Vector<Real> &g,
70 const Vector<Real> &l,
71 const Vector<Real> &c,
74 std::ostream &outStream = std::cout);
75
76public:
77
78 AugmentedLagrangianAlgorithm(ParameterList &list, const Ptr<Secant<Real>> &secant = nullPtr);
79
80 using TypeE::Algorithm<Real>::run;
81 virtual void run( Vector<Real> &x,
82 const Vector<Real> &g,
83 Objective<Real> &obj,
84 Constraint<Real> &econ,
85 Vector<Real> &emul,
86 const Vector<Real> &eres,
87 std::ostream &outStream = std::cout) override;
88
89 virtual void writeHeader( std::ostream& os ) const override;
90
91 virtual void writeName( std::ostream& os ) const override;
92
93 virtual void writeOutput( std::ostream& os, const bool print_header = false ) const override;
94
95}; // class ROL::TypeE::AugmentedLagrangianAlgorithm
96
97} // namespace TypeE
98} // namespace ROL
99
101
102#endif
Provides the interface to evaluate the augmented Lagrangian.
Defines the general constraint operator interface.
Provides the interface to evaluate objective functions.
Provides interface for and implements limited-memory secant operators.
const Ptr< AlgorithmState< Real > > state_
const Ptr< CombinedStatusTest< Real > > status_
Provides an interface to run equality constrained optimization algorithms using Augmented Lagrangians...
virtual void writeName(std::ostream &os) const override
Print step name.
virtual void writeHeader(std::ostream &os) const override
Print iterate header.
void initialize(Vector< Real > &x, const Vector< Real > &g, const Vector< Real > &l, const Vector< Real > &c, AugmentedLagrangianObjective< Real > &alobj, Constraint< Real > &con, std::ostream &outStream=std::cout)
virtual void writeOutput(std::ostream &os, const bool print_header=false) const override
Print iterate status.
virtual void run(Vector< Real > &x, const Vector< Real > &g, Objective< Real > &obj, Constraint< Real > &econ, Vector< Real > &emul, const Vector< Real > &eres, std::ostream &outStream=std::cout) override
Run algorithm on equality constrained problems (Type-E). This general interface supports the use of d...
Defines the linear algebra or vector space interface.