|
ROL
|
#include <ROL_Constraint_SerialSimOpt.hpp>
Public Member Functions | |
| AugmentedLagrangianObjective (const Ptr< Objective< Real > > &obj, const Ptr< Constraint< Real > > &con, const Real penaltyParameter, const Vector< Real > &dualOptVec, const Vector< Real > &primConVec, const Vector< Real > &dualConVec, ParameterList &parlist) | |
| AugmentedLagrangianObjective (const Ptr< Objective< Real > > &obj, const Ptr< Constraint< Real > > &con, const Real penaltyParameter, const Vector< Real > &dualOptVec, const Vector< Real > &primConVec, const Vector< Real > &dualConVec, const bool scaleLagrangian, const int HessianApprox) | |
| void | update (const Vector< Real > &x, UpdateType type, int iter=-1) |
| Update objective function. | |
| void | setScaling (const Real fscale=1.0, const Real cscale=1.0) |
| Real | value (const Vector< Real > &x, Real &tol) |
| Compute value. | |
| void | gradient (Vector< Real > &g, const Vector< Real > &x, Real &tol) |
| Compute gradient. | |
| void | hessVec (Vector< Real > &hv, const Vector< Real > &v, const Vector< Real > &x, Real &tol) |
| Apply Hessian approximation to vector. | |
| 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) |
| int | getNumberConstraintEvaluations (void) const |
| int | getNumberFunctionEvaluations (void) const |
| int | getNumberGradientEvaluations (void) const |
| void | reset (const Vector< Real > &multiplier, const Real penaltyParameter) |
| Public Member Functions inherited from ROL::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) |
| 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 void | setParameter (const std::vector< Real > ¶m) |
Private Attributes | |
| const Ptr< Objective< Real > > | obj_ |
| const Ptr< Constraint< Real > > | con_ |
| Real | penaltyParameter_ |
| Ptr< Vector< Real > > | multiplier_ |
| Ptr< Vector< Real > > | dualOptVector_ |
| Ptr< Vector< Real > > | dualConVector_ |
| Ptr< Vector< Real > > | primConVector_ |
| Ptr< ScalarController< Real, int > > | fval_ |
| Ptr< VectorController< Real, int > > | gradient_ |
| Ptr< VectorController< Real, int > > | conValue_ |
| Real | fscale_ |
| Real | cscale_ |
| int | nfval_ |
| int | ngval_ |
| int | ncval_ |
| bool | scaleLagrangian_ |
| int | HessianApprox_ |
Additional Inherited Members | |
| Protected Member Functions inherited from ROL::ROL::Objective< Real > | |
| const std::vector< Real > | getParameter (void) const |
Definition at line 87 of file ROL_Constraint_SerialSimOpt.hpp.
|
inline |
Definition at line 120 of file ROL_Constraint_SerialSimOpt.hpp.
|
inline |
Definition at line 144 of file ROL_Constraint_SerialSimOpt.hpp.
|
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::ROL::Objective< Real >.
Definition at line 166 of file ROL_Constraint_SerialSimOpt.hpp.
Referenced by ROL::ROL::TypeE::AugmentedLagrangianAlgorithm< Real >::initialize().
|
inline |
Definition at line 174 of file ROL_Constraint_SerialSimOpt.hpp.
Referenced by ROL::ROL::TypeE::AugmentedLagrangianAlgorithm< Real >::initialize().
|
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::ROL::Objective< Real >.
Definition at line 179 of file ROL_Constraint_SerialSimOpt.hpp.
|
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::ROL::Objective< Real >.
Definition at line 195 of file ROL_Constraint_SerialSimOpt.hpp.
Referenced by ROL::ROL::TypeE::AugmentedLagrangianAlgorithm< Real >::initialize(), and ROL::ROL::TypeE::AugmentedLagrangianAlgorithm< Real >::run().
|
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::ROL::Objective< Real >.
Definition at line 211 of file ROL_Constraint_SerialSimOpt.hpp.
|
inline |
Definition at line 242 of file ROL_Constraint_SerialSimOpt.hpp.
Referenced by ROL::ROL::TypeE::AugmentedLagrangianAlgorithm< Real >::initialize(), and ROL::ROL::TypeE::AugmentedLagrangianAlgorithm< Real >::run().
|
inline |
Definition at line 254 of file ROL_Constraint_SerialSimOpt.hpp.
Referenced by ROL::ROL::TypeE::AugmentedLagrangianAlgorithm< Real >::initialize().
|
inline |
Definition at line 264 of file ROL_Constraint_SerialSimOpt.hpp.
Referenced by ROL::ROL::TypeE::AugmentedLagrangianAlgorithm< Real >::initialize(), and ROL::ROL::TypeE::AugmentedLagrangianAlgorithm< Real >::run().
|
inline |
Definition at line 274 of file ROL_Constraint_SerialSimOpt.hpp.
Referenced by ROL::ROL::TypeE::AugmentedLagrangianAlgorithm< Real >::initialize(), and ROL::ROL::TypeE::AugmentedLagrangianAlgorithm< Real >::run().
|
inline |
Definition at line 279 of file ROL_Constraint_SerialSimOpt.hpp.
Referenced by ROL::ROL::TypeE::AugmentedLagrangianAlgorithm< Real >::initialize(), and ROL::ROL::TypeE::AugmentedLagrangianAlgorithm< Real >::run().
|
inline |
Definition at line 284 of file ROL_Constraint_SerialSimOpt.hpp.
References con_.
Referenced by ROL::ROL::TypeE::AugmentedLagrangianAlgorithm< Real >::initialize(), and ROL::ROL::TypeE::AugmentedLagrangianAlgorithm< Real >::run().
|
inline |
Definition at line 289 of file ROL_Constraint_SerialSimOpt.hpp.
References con_.
Referenced by ROL::ROL::TypeE::AugmentedLagrangianAlgorithm< Real >::initialize(), and ROL::ROL::TypeE::AugmentedLagrangianAlgorithm< Real >::run().
|
private |
Definition at line 90 of file ROL_Constraint_SerialSimOpt.hpp.
|
private |
Definition at line 91 of file ROL_Constraint_SerialSimOpt.hpp.
Referenced by getNumberGradientEvaluations(), and reset().
|
private |
Definition at line 93 of file ROL_Constraint_SerialSimOpt.hpp.
|
private |
Definition at line 94 of file ROL_Constraint_SerialSimOpt.hpp.
|
private |
Definition at line 97 of file ROL_Constraint_SerialSimOpt.hpp.
|
private |
Definition at line 98 of file ROL_Constraint_SerialSimOpt.hpp.
|
private |
Definition at line 99 of file ROL_Constraint_SerialSimOpt.hpp.
|
private |
Definition at line 102 of file ROL_Constraint_SerialSimOpt.hpp.
|
private |
Definition at line 103 of file ROL_Constraint_SerialSimOpt.hpp.
|
private |
Definition at line 104 of file ROL_Constraint_SerialSimOpt.hpp.
|
private |
Definition at line 107 of file ROL_Constraint_SerialSimOpt.hpp.
|
private |
Definition at line 108 of file ROL_Constraint_SerialSimOpt.hpp.
|
private |
Definition at line 111 of file ROL_Constraint_SerialSimOpt.hpp.
|
private |
Definition at line 112 of file ROL_Constraint_SerialSimOpt.hpp.
|
private |
Definition at line 113 of file ROL_Constraint_SerialSimOpt.hpp.
|
private |
Definition at line 116 of file ROL_Constraint_SerialSimOpt.hpp.
|
private |
Definition at line 117 of file ROL_Constraint_SerialSimOpt.hpp.