|
ROL
|
#include <ROL_AugmentedLagrangianObjective2.hpp>
Inheritance diagram for ROL::AugmentedLagrangianObjective2< Real >:Public Member Functions | |
| AugmentedLagrangianObjective2 (const Ptr< Objective< Real > > &obj, const std::vector< Ptr< AugmentedLagrangianPenalty< Real > > > &pen, const Vector< Real > &dualOptVec, ParameterList &parlist) | |
| AugmentedLagrangianObjective2 (const Ptr< Objective< Real > > &obj, const std::vector< Ptr< AugmentedLagrangianPenalty< Real > > > &pen, const Vector< Real > &dualOptVec, const bool scaleLagrangian) | |
| virtual void | update (const Vector< Real > &x, UpdateType type, int iter=-1) |
| Update objective function. | |
| void | setScaling (const Real fscale=1.0) |
| void | setScaling (const Real cscale, const int k) |
| Real | getScaling (const int k) |
| virtual Real | value (const Vector< Real > &x, Real &tol) |
| Compute value. | |
| virtual void | gradient (Vector< Real > &g, const Vector< Real > &x, Real &tol) |
| Compute gradient. | |
| virtual void | hessVec (Vector< Real > &hv, const Vector< Real > &v, const Vector< Real > &x, Real &tol) |
| Apply Hessian approximation to vector. | |
| Real | dualNorm (const Vector< Real > &x, Real &tol, const int k) |
| Real | dualResidual (const Vector< Real > &x, Real &tol, const int k) |
| Real | feasibility (const Vector< Real > &x, Real &tol, const int k) |
| void | setPenaltyParameter (const Real penaltyParameter, const int k) |
| Real | getPenaltyParameter (const int k) |
| void | setMultiplier (const Vector< Real > &multiplier, const int k) |
| void | updateMultiplier (const Vector< Real > &x, Real &tol, const int k) |
| Real | getObjectiveValue (const Vector< Real > &x, Real &tol) |
| const Ptr< const Vector< Real > > | getObjectiveGradient (const Vector< Real > &x, Real &tol) |
| const Ptr< const Vector< Real > > | getConstraintVec (const Vector< Real > &x, Real &tol, const int k) |
| int | getNumberConstraints (void) const |
| int | getNumberConstraintEvaluations (void) const |
| int | getNumberFunctionEvaluations (void) const |
| int | getNumberGradientEvaluations (void) const |
| void | reset (void) |
Public Member Functions inherited from ROL::Objective< Real > | |
| virtual | ~Objective () |
| Objective () | |
| virtual void | update (const Vector< Real > &x, bool flag=true, int iter=-1) |
| Update objective function. | |
| virtual Real | dirDeriv (const Vector< Real > &x, const Vector< Real > &d, Real &tol) |
| Compute directional derivative. | |
| virtual void | invHessVec (Vector< Real > &hv, const Vector< Real > &v, const Vector< Real > &x, Real &tol) |
| Apply inverse Hessian approximation to vector. | |
| virtual void | precond (Vector< Real > &Pv, const Vector< Real > &v, const Vector< Real > &x, Real &tol) |
| Apply preconditioner to vector. | |
| virtual void | prox (Vector< Real > &Pv, const Vector< Real > &v, Real t, Real &tol) |
| Compute the proximity operator. | |
| virtual void | proxJacVec (Vector< Real > &Jv, const Vector< Real > &v, const Vector< Real > &x, Real t, Real &tol) |
| Apply the Jacobian of the proximity operator. | |
| virtual std::vector< std::vector< Real > > | checkGradient (const Vector< Real > &x, const Vector< Real > &d, const bool printToStream=true, std::ostream &outStream=std::cout, const int numSteps=ROL_NUM_CHECKDERIV_STEPS, const int order=1) |
| Finite-difference gradient check. | |
| virtual std::vector< std::vector< Real > > | checkGradient (const Vector< Real > &x, const Vector< Real > &g, const Vector< Real > &d, const bool printToStream=true, std::ostream &outStream=std::cout, const int numSteps=ROL_NUM_CHECKDERIV_STEPS, const int order=1) |
| Finite-difference gradient check. | |
| virtual std::vector< std::vector< Real > > | checkGradient (const Vector< Real > &x, const Vector< Real > &d, const std::vector< Real > &steps, const bool printToStream=true, std::ostream &outStream=std::cout, const int order=1) |
| Finite-difference gradient check with specified step sizes. | |
| virtual std::vector< std::vector< Real > > | checkGradient (const Vector< Real > &x, const Vector< Real > &g, const Vector< Real > &d, const std::vector< Real > &steps, const bool printToStream=true, std::ostream &outStream=std::cout, const int order=1) |
| Finite-difference gradient check with specified step sizes. | |
| virtual std::vector< std::vector< Real > > | checkHessVec (const Vector< Real > &x, const Vector< Real > &v, const bool printToStream=true, std::ostream &outStream=std::cout, const int numSteps=ROL_NUM_CHECKDERIV_STEPS, const int order=1) |
| Finite-difference Hessian-applied-to-vector check. | |
| virtual std::vector< std::vector< Real > > | checkHessVec (const Vector< Real > &x, const Vector< Real > &hv, const Vector< Real > &v, const bool printToStream=true, std::ostream &outStream=std::cout, const int numSteps=ROL_NUM_CHECKDERIV_STEPS, const int order=1) |
| Finite-difference Hessian-applied-to-vector check. | |
| virtual std::vector< std::vector< Real > > | checkHessVec (const Vector< Real > &x, const Vector< Real > &v, const std::vector< Real > &steps, const bool printToStream=true, std::ostream &outStream=std::cout, const int order=1) |
| Finite-difference Hessian-applied-to-vector check with specified step sizes. | |
| virtual std::vector< std::vector< Real > > | checkHessVec (const Vector< Real > &x, const Vector< Real > &hv, const Vector< Real > &v, const std::vector< Real > &steps, const bool printToStream=true, std::ostream &outStream=std::cout, const int order=1) |
| Finite-difference Hessian-applied-to-vector check with specified step sizes. | |
| virtual std::vector< Real > | checkHessSym (const Vector< Real > &x, const Vector< Real > &v, const Vector< Real > &w, const bool printToStream=true, std::ostream &outStream=std::cout) |
| Hessian symmetry check. | |
| virtual std::vector< Real > | checkHessSym (const Vector< Real > &x, const Vector< Real > &hv, const Vector< Real > &v, const Vector< Real > &w, const bool printToStream=true, std::ostream &outStream=std::cout) |
| Hessian symmetry check. | |
| virtual std::vector< std::vector< Real > > | checkProxJacVec (const Vector< Real > &x, const Vector< Real > &v, Real t=Real(1), bool printToStream=true, std::ostream &outStream=std::cout, int numSteps=ROL_NUM_CHECKDERIV_STEPS) |
| Finite-difference proximity operator Jacobian-applied-to-vector check. | |
| virtual void | setParameter (const std::vector< Real > ¶m) |
Private Attributes | |
| const Ptr< Objective< Real > > | obj_ |
| const std::vector< Ptr< AugmentedLagrangianPenalty< Real > > > | pvec_ |
| Ptr< Vector< Real > > | dualOptVector_ |
| Ptr< ScalarController< Real, int > > | fval_ |
| Ptr< VectorController< Real, int > > | gradient_ |
| Real | fscale_ |
| int | nfval_ |
| int | ngval_ |
| bool | scaleLagrangian_ |
Additional Inherited Members | |
Protected Member Functions inherited from ROL::Objective< Real > | |
| const std::vector< Real > | getParameter (void) const |
Definition at line 19 of file ROL_AugmentedLagrangianObjective2.hpp.
|
inline |
Definition at line 47 of file ROL_AugmentedLagrangianObjective2.hpp.
References ROL::Vector< Real >::clone(), ROL::AugmentedLagrangianObjective2< Real >::dualOptVector_, ROL::AugmentedLagrangianObjective2< Real >::fval_, ROL::AugmentedLagrangianObjective2< Real >::gradient_, and ROL::AugmentedLagrangianObjective2< Real >::scaleLagrangian_.
|
inline |
|
inlinevirtual |
Update objective function.
This function updates the objective function at new iterations.
| [in] | x | is the new iterate. |
| [in] | type | is the type of update requested. |
| [in] | iter | is the outer algorithm iterations count. |
Reimplemented from ROL::Objective< Real >.
Definition at line 75 of file ROL_AugmentedLagrangianObjective2.hpp.
References ROL::AugmentedLagrangianObjective2< Real >::fval_, ROL::AugmentedLagrangianObjective2< Real >::getNumberConstraints(), ROL::AugmentedLagrangianObjective2< Real >::gradient_, ROL::AugmentedLagrangianObjective2< Real >::obj_, ROL::AugmentedLagrangianObjective2< Real >::pvec_, and ROL::AugmentedLagrangianObjective2< Real >::update().
Referenced by ROL::TypeG::AugmentedLagrangianAlgorithm2< Real >::initialize(), and ROL::AugmentedLagrangianObjective2< Real >::update().
|
inline |
Definition at line 82 of file ROL_AugmentedLagrangianObjective2.hpp.
References ROL::AugmentedLagrangianObjective2< Real >::fscale_.
Referenced by ROL::TypeG::AugmentedLagrangianAlgorithm2< Real >::initialize().
|
inline |
Definition at line 86 of file ROL_AugmentedLagrangianObjective2.hpp.
References ROL::AugmentedLagrangianObjective2< Real >::pvec_.
|
inline |
Definition at line 90 of file ROL_AugmentedLagrangianObjective2.hpp.
References ROL::AugmentedLagrangianObjective2< Real >::pvec_.
|
inlinevirtual |
Compute value.
This function returns the objective function value.
| [in] | x | is the current iterate. |
| [in] | tol | is a tolerance for inexact objective function computation. |
Implements ROL::Objective< Real >.
Definition at line 94 of file ROL_AugmentedLagrangianObjective2.hpp.
References ROL::AugmentedLagrangianObjective2< Real >::fscale_, ROL::AugmentedLagrangianObjective2< Real >::getNumberConstraints(), ROL::AugmentedLagrangianObjective2< Real >::getObjectiveValue(), ROL::AugmentedLagrangianObjective2< Real >::pvec_, and ROL::AugmentedLagrangianObjective2< Real >::value().
Referenced by ROL::AugmentedLagrangianObjective2< Real >::value().
|
inlinevirtual |
Compute gradient.
This function returns the objective function gradient.
| [out] | g | is the gradient. |
| [in] | x | is the current iterate. |
| [in] | tol | is a tolerance for inexact objective function computation. |
The default implementation is a finite-difference approximation based on the function value. This requires the definition of a basis \(\{\phi_i\}\) for the optimization vectors x and the definition of a basis \(\{\psi_j\}\) for the dual optimization vectors (gradient vectors g). The bases must be related through the Riesz map, i.e., \( R \{\phi_i\} = \{\psi_j\}\), and this must be reflected in the implementation of the ROL::Vector::dual() method.
Reimplemented from ROL::Objective< Real >.
Definition at line 104 of file ROL_AugmentedLagrangianObjective2.hpp.
References ROL::AugmentedLagrangianObjective2< Real >::dualOptVector_, ROL::AugmentedLagrangianObjective2< Real >::fscale_, ROL::AugmentedLagrangianObjective2< Real >::getNumberConstraints(), ROL::AugmentedLagrangianObjective2< Real >::getObjectiveGradient(), ROL::Vector< Real >::plus(), ROL::AugmentedLagrangianObjective2< Real >::pvec_, ROL::Vector< Real >::scale(), and ROL::Vector< Real >::set().
|
inlinevirtual |
Apply Hessian approximation to vector.
This function applies the Hessian of the objective function to the vector \(v\).
| [out] | hv | is the the action of the Hessian on \(v\). |
| [in] | v | is the direction vector. |
| [in] | x | is the current iterate. |
| [in] | tol | is a tolerance for inexact objective function computation. |
Reimplemented from ROL::Objective< Real >.
Definition at line 115 of file ROL_AugmentedLagrangianObjective2.hpp.
References ROL::AugmentedLagrangianObjective2< Real >::dualOptVector_, ROL::AugmentedLagrangianObjective2< Real >::fscale_, ROL::AugmentedLagrangianObjective2< Real >::getNumberConstraints(), ROL::AugmentedLagrangianObjective2< Real >::obj_, ROL::Vector< Real >::plus(), ROL::AugmentedLagrangianObjective2< Real >::pvec_, and ROL::Vector< Real >::scale().
|
inline |
Definition at line 126 of file ROL_AugmentedLagrangianObjective2.hpp.
References ROL::AugmentedLagrangianObjective2< Real >::pvec_.
Referenced by ROL::TypeG::AugmentedLagrangianAlgorithm2< Real >::initialize().
|
inline |
Definition at line 130 of file ROL_AugmentedLagrangianObjective2.hpp.
References ROL::AugmentedLagrangianObjective2< Real >::pvec_.
|
inline |
Definition at line 134 of file ROL_AugmentedLagrangianObjective2.hpp.
References ROL::AugmentedLagrangianObjective2< Real >::pvec_.
Referenced by ROL::TypeG::AugmentedLagrangianAlgorithm2< Real >::initialize().
|
inline |
Definition at line 138 of file ROL_AugmentedLagrangianObjective2.hpp.
References ROL::AugmentedLagrangianObjective2< Real >::pvec_.
Referenced by ROL::TypeG::AugmentedLagrangianAlgorithm2< Real >::initialize().
|
inline |
Definition at line 142 of file ROL_AugmentedLagrangianObjective2.hpp.
References ROL::AugmentedLagrangianObjective2< Real >::pvec_.
Referenced by ROL::TypeG::AugmentedLagrangianAlgorithm2< Real >::initialize().
|
inline |
Definition at line 145 of file ROL_AugmentedLagrangianObjective2.hpp.
References ROL::AugmentedLagrangianObjective2< Real >::pvec_.
|
inline |
Definition at line 149 of file ROL_AugmentedLagrangianObjective2.hpp.
References ROL::AugmentedLagrangianObjective2< Real >::pvec_.
|
inline |
Definition at line 154 of file ROL_AugmentedLagrangianObjective2.hpp.
References ROL::AugmentedLagrangianObjective2< Real >::fval_, ROL::AugmentedLagrangianObjective2< Real >::nfval_, and ROL::AugmentedLagrangianObjective2< Real >::obj_.
Referenced by ROL::TypeG::AugmentedLagrangianAlgorithm2< Real >::initialize(), and ROL::AugmentedLagrangianObjective2< Real >::value().
|
inline |
Definition at line 166 of file ROL_AugmentedLagrangianObjective2.hpp.
References ROL::AugmentedLagrangianObjective2< Real >::dualOptVector_, ROL::AugmentedLagrangianObjective2< Real >::gradient_, ROL::AugmentedLagrangianObjective2< Real >::ngval_, and ROL::AugmentedLagrangianObjective2< Real >::obj_.
Referenced by ROL::AugmentedLagrangianObjective2< Real >::gradient(), and ROL::TypeG::AugmentedLagrangianAlgorithm2< Real >::initialize().
|
inline |
Definition at line 176 of file ROL_AugmentedLagrangianObjective2.hpp.
References ROL::AugmentedLagrangianObjective2< Real >::pvec_.
|
inline |
Definition at line 180 of file ROL_AugmentedLagrangianObjective2.hpp.
References ROL::AugmentedLagrangianObjective2< Real >::pvec_.
Referenced by ROL::AugmentedLagrangianObjective2< Real >::getNumberConstraintEvaluations(), ROL::AugmentedLagrangianObjective2< Real >::gradient(), ROL::AugmentedLagrangianObjective2< Real >::hessVec(), ROL::TypeG::AugmentedLagrangianAlgorithm2< Real >::initialize(), ROL::AugmentedLagrangianObjective2< Real >::reset(), ROL::AugmentedLagrangianObjective2< Real >::update(), and ROL::AugmentedLagrangianObjective2< Real >::value().
|
inline |
Definition at line 185 of file ROL_AugmentedLagrangianObjective2.hpp.
References ROL::AugmentedLagrangianObjective2< Real >::getNumberConstraintEvaluations(), ROL::AugmentedLagrangianObjective2< Real >::getNumberConstraints(), and ROL::AugmentedLagrangianObjective2< Real >::pvec_.
Referenced by ROL::AugmentedLagrangianObjective2< Real >::getNumberConstraintEvaluations(), and ROL::TypeG::AugmentedLagrangianAlgorithm2< Real >::initialize().
|
inline |
Definition at line 193 of file ROL_AugmentedLagrangianObjective2.hpp.
References ROL::AugmentedLagrangianObjective2< Real >::nfval_.
Referenced by ROL::TypeG::AugmentedLagrangianAlgorithm2< Real >::initialize().
|
inline |
Definition at line 198 of file ROL_AugmentedLagrangianObjective2.hpp.
References ROL::AugmentedLagrangianObjective2< Real >::ngval_.
Referenced by ROL::TypeG::AugmentedLagrangianAlgorithm2< Real >::initialize().
|
inline |
Definition at line 203 of file ROL_AugmentedLagrangianObjective2.hpp.
References ROL::AugmentedLagrangianObjective2< Real >::getNumberConstraints(), ROL::AugmentedLagrangianObjective2< Real >::nfval_, ROL::AugmentedLagrangianObjective2< Real >::ngval_, ROL::AugmentedLagrangianObjective2< Real >::pvec_, and ROL::AugmentedLagrangianObjective2< Real >::reset().
Referenced by ROL::TypeG::AugmentedLagrangianAlgorithm2< Real >::initialize(), and ROL::AugmentedLagrangianObjective2< Real >::reset().
|
private |
Definition at line 24 of file ROL_AugmentedLagrangianObjective2.hpp.
Referenced by ROL::AugmentedLagrangianObjective2< Real >::getObjectiveGradient(), ROL::AugmentedLagrangianObjective2< Real >::getObjectiveValue(), ROL::AugmentedLagrangianObjective2< Real >::hessVec(), and ROL::AugmentedLagrangianObjective2< Real >::update().
|
private |
Definition at line 25 of file ROL_AugmentedLagrangianObjective2.hpp.
Referenced by ROL::AugmentedLagrangianObjective2< Real >::dualNorm(), ROL::AugmentedLagrangianObjective2< Real >::dualResidual(), ROL::AugmentedLagrangianObjective2< Real >::feasibility(), ROL::AugmentedLagrangianObjective2< Real >::getConstraintVec(), ROL::AugmentedLagrangianObjective2< Real >::getNumberConstraintEvaluations(), ROL::AugmentedLagrangianObjective2< Real >::getNumberConstraints(), ROL::AugmentedLagrangianObjective2< Real >::getPenaltyParameter(), ROL::AugmentedLagrangianObjective2< Real >::getScaling(), ROL::AugmentedLagrangianObjective2< Real >::gradient(), ROL::AugmentedLagrangianObjective2< Real >::hessVec(), ROL::AugmentedLagrangianObjective2< Real >::reset(), ROL::AugmentedLagrangianObjective2< Real >::setMultiplier(), ROL::AugmentedLagrangianObjective2< Real >::setPenaltyParameter(), ROL::AugmentedLagrangianObjective2< Real >::setScaling(), ROL::AugmentedLagrangianObjective2< Real >::update(), ROL::AugmentedLagrangianObjective2< Real >::updateMultiplier(), and ROL::AugmentedLagrangianObjective2< Real >::value().
|
private |
Definition at line 28 of file ROL_AugmentedLagrangianObjective2.hpp.
Referenced by ROL::AugmentedLagrangianObjective2< Real >::AugmentedLagrangianObjective2(), ROL::AugmentedLagrangianObjective2< Real >::AugmentedLagrangianObjective2(), ROL::AugmentedLagrangianObjective2< Real >::getObjectiveGradient(), ROL::AugmentedLagrangianObjective2< Real >::gradient(), and ROL::AugmentedLagrangianObjective2< Real >::hessVec().
|
private |
Definition at line 31 of file ROL_AugmentedLagrangianObjective2.hpp.
Referenced by ROL::AugmentedLagrangianObjective2< Real >::AugmentedLagrangianObjective2(), ROL::AugmentedLagrangianObjective2< Real >::AugmentedLagrangianObjective2(), ROL::AugmentedLagrangianObjective2< Real >::getObjectiveValue(), and ROL::AugmentedLagrangianObjective2< Real >::update().
|
private |
Definition at line 32 of file ROL_AugmentedLagrangianObjective2.hpp.
Referenced by ROL::AugmentedLagrangianObjective2< Real >::AugmentedLagrangianObjective2(), ROL::AugmentedLagrangianObjective2< Real >::AugmentedLagrangianObjective2(), ROL::AugmentedLagrangianObjective2< Real >::getObjectiveGradient(), and ROL::AugmentedLagrangianObjective2< Real >::update().
|
private |
Definition at line 35 of file ROL_AugmentedLagrangianObjective2.hpp.
Referenced by ROL::AugmentedLagrangianObjective2< Real >::gradient(), ROL::AugmentedLagrangianObjective2< Real >::hessVec(), ROL::AugmentedLagrangianObjective2< Real >::setScaling(), and ROL::AugmentedLagrangianObjective2< Real >::value().
|
private |
|
private |
|
private |
Definition at line 42 of file ROL_AugmentedLagrangianObjective2.hpp.
Referenced by ROL::AugmentedLagrangianObjective2< Real >::AugmentedLagrangianObjective2().