ROL
|
Provides an interface to run unconstrained optimization algorithms. More...
#include <ROL_TypeU_Algorithm.hpp>
Public Member Functions | |
virtual | ~Algorithm () |
Algorithm () | |
Constructor, given a step and a status test. More... | |
void | setStatusTest (const Ptr< StatusTest< Real >> &status, bool combineStatus=false) |
virtual void | run (Problem< Real > &problem, std::ostream &outStream=std::cout) |
Run algorithm on unconstrained problems (Type-U). This is the primary Type-U interface. More... | |
virtual void | run (Vector< Real > &x, Objective< Real > &obj, std::ostream &outStream=std::cout) |
Run algorithm on unconstrained problems (Type-U). This is the primary Type-U interface. More... | |
virtual void | run (Vector< Real > &x, Objective< Real > &obj, Constraint< Real > &linear_con, Vector< Real > &linear_mul, std::ostream &outStream=std::cout) |
Run algorithm on unconstrained problems with explicit linear equality constraints (Type-U). This is the primary Type-U with explicit linear equality constraints interface. More... | |
virtual void | run (Vector< Real > &x, const Vector< Real > &g, Objective< Real > &obj, Constraint< Real > &linear_con, Vector< Real > &linear_mul, const Vector< Real > &linear_c, std::ostream &outStream=std::cout) |
Run algorithm on unconstrained problems with explicit linear equality constraints (Type-U). This general interface supports the use of dual optimization vector spaces, where the user does not define the dual() method. More... | |
virtual void | run (Vector< Real > &x, const Vector< Real > &g, Objective< Real > &obj, std::ostream &outStream=std::cout)=0 |
Run algorithm on unconstrained problems (Type-U). This general interface supports the use of dual optimization vector spaces, where the user does not define the dual() method. More... | |
virtual void | writeHeader (std::ostream &os) const |
Print iterate header. More... | |
virtual void | writeName (std::ostream &os) const |
Print step name. More... | |
virtual void | writeOutput (std::ostream &os, const bool write_header=false) const |
Print iterate status. More... | |
virtual void | writeExitStatus (std::ostream &os) const |
Ptr< const AlgorithmState< Real > > | getState () const |
void | reset () |
Protected Member Functions | |
void | initialize (const Vector< Real > &x, const Vector< Real > &g) |
Protected Attributes | |
const Ptr< CombinedStatusTest < Real > > | status_ |
const Ptr< AlgorithmState< Real > > | state_ |
Provides an interface to run unconstrained optimization algorithms.
Definition at line 83 of file ROL_TypeU_Algorithm.hpp.
|
inlinevirtual |
Definition at line 92 of file ROL_TypeU_Algorithm.hpp.
ROL::TypeU::Algorithm< Real >::Algorithm | ( | ) |
Constructor, given a step and a status test.
Definition at line 55 of file ROL_TypeU_Algorithm_Def.hpp.
References ROL::TypeU::Algorithm< Real >::status_.
|
protected |
Definition at line 63 of file ROL_TypeU_Algorithm_Def.hpp.
References ROL::Vector< Real >::clone().
Referenced by ROL::TypeU::BundleAlgorithm< Real >::initialize(), ROL::TypeU::TrustRegionAlgorithm< Real >::initialize(), and ROL::TypeU::LineSearchAlgorithm< Real >::initialize().
void ROL::TypeU::Algorithm< Real >::setStatusTest | ( | const Ptr< StatusTest< Real >> & | status, |
bool | combineStatus = false |
||
) |
Definition at line 85 of file ROL_TypeU_Algorithm_Def.hpp.
|
virtual |
Run algorithm on unconstrained problems (Type-U). This is the primary Type-U interface.
Definition at line 94 of file ROL_TypeU_Algorithm_Def.hpp.
References ROL::Problem< Real >::finalizeIteration(), ROL::Problem< Real >::getDualOptimizationVector(), ROL::Problem< Real >::getObjective(), ROL::Problem< Real >::getPrimalOptimizationVector(), ROL::Problem< Real >::getProblemType(), and ROL::TYPE_U.
|
virtual |
Run algorithm on unconstrained problems (Type-U). This is the primary Type-U interface.
Definition at line 109 of file ROL_TypeU_Algorithm_Def.hpp.
References ROL::Vector< Real >::dual().
|
virtual |
Run algorithm on unconstrained problems with explicit linear equality constraints (Type-U). This is the primary Type-U with explicit linear equality constraints interface.
Definition at line 116 of file ROL_TypeU_Algorithm_Def.hpp.
References ROL::Vector< Real >::dual().
|
virtual |
Run algorithm on unconstrained problems with explicit linear equality constraints (Type-U). This general interface supports the use of dual optimization vector spaces, where the user does not define the dual() method.
Definition at line 125 of file ROL_TypeU_Algorithm_Def.hpp.
References ROL::Vector< Real >::clone(), ROL::ReduceLinearConstraint< Real >::getFeasibleVector(), ROL::Vector< Real >::plus(), ROL::ReduceLinearConstraint< Real >::project(), and ROL::ReduceLinearConstraint< Real >::transform().
|
pure virtual |
Run algorithm on unconstrained problems (Type-U). This general interface supports the use of dual optimization vector spaces, where the user does not define the dual() method.
Implemented in ROL::TypeU::LineSearchAlgorithm< Real >, ROL::TypeU::TrustRegionAlgorithm< Real >, and ROL::TypeU::BundleAlgorithm< Real >.
|
virtual |
Print iterate header.
Reimplemented in ROL::TypeU::LineSearchAlgorithm< Real >, ROL::TypeU::TrustRegionAlgorithm< Real >, and ROL::TypeU::BundleAlgorithm< Real >.
Definition at line 142 of file ROL_TypeU_Algorithm_Def.hpp.
|
virtual |
Print step name.
Reimplemented in ROL::TypeU::LineSearchAlgorithm< Real >, ROL::TypeU::TrustRegionAlgorithm< Real >, and ROL::TypeU::BundleAlgorithm< Real >.
Definition at line 156 of file ROL_TypeU_Algorithm_Def.hpp.
|
virtual |
Print iterate status.
Reimplemented in ROL::TypeU::LineSearchAlgorithm< Real >, ROL::TypeU::TrustRegionAlgorithm< Real >, and ROL::TypeU::BundleAlgorithm< Real >.
Definition at line 161 of file ROL_TypeU_Algorithm_Def.hpp.
|
virtual |
Definition at line 186 of file ROL_TypeU_Algorithm_Def.hpp.
References ROL::EExitStatusToString().
Referenced by ROL::TypeU::BundleAlgorithm< Real >::run(), ROL::TypeU::TrustRegionAlgorithm< Real >::run(), and ROL::TypeU::LineSearchAlgorithm< Real >::run().
Ptr< const AlgorithmState< Real > > ROL::TypeU::Algorithm< Real >::getState | ( | void | ) | const |
Definition at line 196 of file ROL_TypeU_Algorithm_Def.hpp.
void ROL::TypeU::Algorithm< Real >::reset | ( | void | ) |
Definition at line 201 of file ROL_TypeU_Algorithm_Def.hpp.
|
protected |
Definition at line 85 of file ROL_TypeU_Algorithm.hpp.
Referenced by ROL::TypeU::Algorithm< Real >::Algorithm(), ROL::TypeU::BundleAlgorithm< Real >::BundleAlgorithm(), ROL::TypeU::LineSearchAlgorithm< Real >::LineSearchAlgorithm(), and ROL::TypeU::TrustRegionAlgorithm< Real >::TrustRegionAlgorithm().
|
protected |
Definition at line 86 of file ROL_TypeU_Algorithm.hpp.
Referenced by ROL::TypeU::BundleAlgorithm< Real >::BundleAlgorithm(), and ROL::TypeU::TrustRegionAlgorithm< Real >::TrustRegionAlgorithm().