ROL
Loading...
Searching...
No Matches
ROL_TypeG_AugmentedLagrangianAlgorithm2.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_TYPEG_AUGMENTEDLAGRANGIANALGORITHM2_H
11#define ROL_TYPEG_AUGMENTEDLAGRANGIANALGORITHM2_H
12
14#include "ROL_Secant.hpp"
15
21namespace ROL {
22namespace TypeG {
23
24
25template<typename Real>
27private:
28 const Ptr<Secant<Real>> secant_;
29 ParameterList list_;
30 // Penalty parameter quantities
35 // Dual feasiblity parameters
36 Real alphat_;
37 Real betat_;
38 Real tau0_;
39 Real theta_;
40 // Subproblem information
42 Real delta_;
44 int maxit_;
45 std::string subStep_;
46 // Optimality tolerance update
49 // Verbosity
52 // Outer tolerances
53
58 // Scaling information
61 Real fscale_;
62 Real cscale_;
64
67 std::vector<std::string> group_names_;
68 std::vector<Real> feasibilities_;
69 std::vector<Real> penalty_growthf_;
70
71 using TypeG::Algorithm<Real>::state_;
72 using TypeG::Algorithm<Real>::status_;
73 using TypeG::Algorithm<Real>::proj_;
74
76 const Vector<Real> &g,
78 std::ostream &outStream = std::cout);
79
80public:
81
82 AugmentedLagrangianAlgorithm2(ParameterList &list, const Ptr<Secant<Real>> &secant = nullPtr);
83
84 using TypeG::Algorithm<Real>::run;
85
86 void run( Problem<Real> &problem,
87 std::ostream &outStream = std::cout ) override;
88
89 void run( Vector<Real> &x,
90 const Vector<Real> &g,
91 Objective<Real> &obj,
93 Constraint<Real> &econ,
94 Vector<Real> &emul,
95 const Vector<Real> &eres,
96 std::ostream &outStream = std::cout ) override ;
97
98 void writeHeader( std::ostream& os ) const override;
99
100 void writeName( std::ostream& os ) const override;
101
102 void writeOutput( std::ostream& os, const bool print_header = false ) const override;
103
104}; // class ROL::TypeG::AugmentedLagrangianAlgorithm2
105
106} // namespace TypeG
107} // namespace ROL
108
110
111#endif
Provides the interface to apply upper and lower bound constraints.
Defines the general constraint operator interface.
Provides the interface to evaluate objective functions.
Provides interface for and implements limited-memory secant operators.
Provides an interface to run general constrained optimization algorithms.
const Ptr< CombinedStatusTest< Real > > status_
Ptr< PolyhedralProjection< Real > > proj_
const Ptr< AlgorithmState< Real > > state_
void initialize(Vector< Real > &x, const Vector< Real > &g, AugmentedLagrangianObjective2< Real > &alobj, std::ostream &outStream=std::cout)
void writeOutput(std::ostream &os, const bool print_header=false) const override
Print iterate status.
void writeName(std::ostream &os) const override
Print step name.
void writeHeader(std::ostream &os) const override
Print iterate header.
void run(Problem< Real > &problem, std::ostream &outStream=std::cout) override
Run algorithm on general constrained problems (Type-G). This is the primary Type-G interface.
Defines the linear algebra or vector space interface.