ROL
|
Provides an interface to run general constrained optimization algorithms. More...
#include <ROL_TypeG_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 general constrained problems (Type-G). This is the primary Type-G interface. More... | |
virtual void | run (Vector< Real > &x, Objective< Real > &obj, BoundConstraint< Real > &bnd, Constraint< Real > &econ, Vector< Real > &emul, std::ostream &outStream=std::cout) |
Run algorithm on general constrained problems (Type-G). This is the primary Type-G interface. More... | |
virtual void | run (Vector< Real > &x, Objective< Real > &obj, Constraint< Real > &icon, Vector< Real > &imul, BoundConstraint< Real > &ibnd, std::ostream &outStream=std::cout) |
Run algorithm on general constrained problems (Type-G). This is the primary Type-G interface. More... | |
virtual void | run (Vector< Real > &x, Objective< Real > &obj, BoundConstraint< Real > &bnd, Constraint< Real > &icon, Vector< Real > &imul, BoundConstraint< Real > &ibnd, std::ostream &outStream=std::cout) |
Run algorithm on general constrained problems (Type-G). This is the primary Type-G interface. More... | |
virtual void | run (Vector< Real > &x, Objective< Real > &obj, Constraint< Real > &econ, Vector< Real > &emul, Constraint< Real > &icon, Vector< Real > &imul, BoundConstraint< Real > &ibnd, std::ostream &outStream=std::cout) |
Run algorithm on general constrained problems (Type-G). This is the primary Type-G interface. More... | |
virtual void | run (Vector< Real > &x, Objective< Real > &obj, BoundConstraint< Real > &bnd, Constraint< Real > &econ, Vector< Real > &emul, Constraint< Real > &icon, Vector< Real > &imul, BoundConstraint< Real > &ibnd, std::ostream &outStream=std::cout) |
Run algorithm on general constrained problems (Type-G). This is the primary Type-G interface. More... | |
virtual void | run (Vector< Real > &x, const Vector< Real > &g, Objective< Real > &obj, BoundConstraint< Real > &bnd, Constraint< Real > &econ, Vector< Real > &emul, const Vector< Real > &eres, std::ostream &outStream=std::cout)=0 |
Run algorithm on general constrained problems (Type-G). This is the primary Type-G interface. More... | |
virtual void | run (Vector< Real > &x, const Vector< Real > &g, Objective< Real > &obj, Constraint< Real > &icon, Vector< Real > &imul, BoundConstraint< Real > &ibnd, const Vector< Real > &ires, std::ostream &outStream=std::cout) |
Run algorithm on general constrained problems (Type-G). This is the primary Type-G interface. More... | |
virtual void | run (Vector< Real > &x, const Vector< Real > &g, Objective< Real > &obj, BoundConstraint< Real > &bnd, Constraint< Real > &icon, Vector< Real > &imul, BoundConstraint< Real > &ibnd, const Vector< Real > &ires, std::ostream &outStream=std::cout) |
Run algorithm on general constrained problems (Type-G). This is the primary Type-G interface. More... | |
virtual void | run (Vector< Real > &x, const Vector< Real > &g, Objective< Real > &obj, Constraint< Real > &econ, Vector< Real > &emul, const Vector< Real > &eres, Constraint< Real > &icon, Vector< Real > &imul, BoundConstraint< Real > &ibnd, const Vector< Real > &ires, std::ostream &outStream=std::cout) |
Run algorithm on general constrained problems (Type-G). This is the primary Type-G interface. More... | |
virtual void | run (Vector< Real > &x, const Vector< Real > &g, Objective< Real > &obj, BoundConstraint< Real > &bnd, Constraint< Real > &econ, Vector< Real > &emul, const Vector< Real > &eres, Constraint< Real > &icon, Vector< Real > &imul, BoundConstraint< Real > &ibnd, const Vector< Real > &ires, std::ostream &outStream=std::cout) |
Run algorithm on general constrained problems (Type-G). This is the primary Type-G interface. More... | |
virtual void | run (Vector< Real > &x, Objective< Real > &obj, BoundConstraint< Real > &bnd, Constraint< Real > &econ, Vector< Real > &emul, Constraint< Real > &linear_econ, Vector< Real > &linear_emul, std::ostream &outStream=std::cout) |
Run algorithm on general constrained problems (Type-G). This is the primary Type-G interface. More... | |
virtual void | run (Vector< Real > &x, Objective< Real > &obj, Constraint< Real > &icon, Vector< Real > &imul, BoundConstraint< Real > &ibnd, Constraint< Real > &linear_econ, Vector< Real > &linear_emul, std::ostream &outStream=std::cout) |
Run algorithm on general constrained problems (Type-G). This is the primary Type-G interface. More... | |
virtual void | run (Vector< Real > &x, Objective< Real > &obj, BoundConstraint< Real > &bnd, Constraint< Real > &icon, Vector< Real > &imul, BoundConstraint< Real > &ibnd, Constraint< Real > &linear_econ, Vector< Real > &linear_emul, std::ostream &outStream=std::cout) |
Run algorithm on general constrained problems (Type-G). This is the primary Type-G interface. More... | |
virtual void | run (Vector< Real > &x, Objective< Real > &obj, Constraint< Real > &econ, Vector< Real > &emul, Constraint< Real > &icon, Vector< Real > &imul, BoundConstraint< Real > &ibnd, Constraint< Real > &linear_econ, Vector< Real > &linear_emul, std::ostream &outStream=std::cout) |
Run algorithm on general constrained problems (Type-G). This is the primary Type-G interface. More... | |
virtual void | run (Vector< Real > &x, Objective< Real > &obj, BoundConstraint< Real > &bnd, Constraint< Real > &econ, Vector< Real > &emul, Constraint< Real > &icon, Vector< Real > &imul, BoundConstraint< Real > &ibnd, Constraint< Real > &linear_econ, Vector< Real > &linear_emul, std::ostream &outStream=std::cout) |
Run algorithm on general constrained problems (Type-G). This is the primary Type-G interface. More... | |
virtual void | run (Vector< Real > &x, const Vector< Real > &g, Objective< Real > &obj, BoundConstraint< Real > &bnd, Constraint< Real > &econ, Vector< Real > &emul, const Vector< Real > &eres, Constraint< Real > &linear_econ, Vector< Real > &linear_emul, const Vector< Real > &linear_eres, std::ostream &outStream=std::cout) |
Run algorithm on general constrained problems (Type-G). This is the primary Type-G interface. More... | |
virtual void | run (Vector< Real > &x, const Vector< Real > &g, Objective< Real > &obj, Constraint< Real > &icon, Vector< Real > &imul, BoundConstraint< Real > &ibnd, const Vector< Real > &ires, Constraint< Real > &linear_econ, Vector< Real > &linear_emul, const Vector< Real > &linear_eres, std::ostream &outStream=std::cout) |
Run algorithm on general constrained problems (Type-G). This is the primary Type-G interface. More... | |
virtual void | run (Vector< Real > &x, const Vector< Real > &g, Objective< Real > &obj, BoundConstraint< Real > &bnd, Constraint< Real > &icon, Vector< Real > &imul, BoundConstraint< Real > &ibnd, const Vector< Real > &ires, Constraint< Real > &linear_econ, Vector< Real > &linear_emul, const Vector< Real > &linear_eres, std::ostream &outStream=std::cout) |
Run algorithm on general constrained problems (Type-G). This is the primary Type-G interface. More... | |
virtual void | run (Vector< Real > &x, const Vector< Real > &g, Objective< Real > &obj, Constraint< Real > &econ, Vector< Real > &emul, const Vector< Real > &eres, Constraint< Real > &icon, Vector< Real > &imul, BoundConstraint< Real > &ibnd, const Vector< Real > &ires, Constraint< Real > &linear_econ, Vector< Real > &linear_emul, const Vector< Real > &linear_eres, std::ostream &outStream=std::cout) |
Run algorithm on general constrained problems (Type-G). This is the primary Type-G interface. More... | |
virtual void | run (Vector< Real > &x, const Vector< Real > &g, Objective< Real > &obj, BoundConstraint< Real > &bnd, Constraint< Real > &econ, Vector< Real > &emul, const Vector< Real > &eres, Constraint< Real > &icon, Vector< Real > &imul, BoundConstraint< Real > &ibnd, const Vector< Real > &ires, Constraint< Real > &linear_econ, Vector< Real > &linear_emul, const Vector< Real > &linear_eres, std::ostream &outStream=std::cout) |
Run algorithm on general constrained problems (Type-G). This is the primary Type-G interface. 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, const Vector< Real > &mul, const Vector< Real > &c) |
Protected Attributes | |
const Ptr< CombinedStatusTest < Real > > | status_ |
const Ptr< AlgorithmState< Real > > | state_ |
Ptr< PolyhedralProjection< Real > > | proj_ |
Provides an interface to run general constrained optimization algorithms.
Definition at line 90 of file ROL_TypeG_Algorithm.hpp.
|
inlinevirtual |
Definition at line 103 of file ROL_TypeG_Algorithm.hpp.
ROL::TypeG::Algorithm< Real >::Algorithm | ( | ) |
Constructor, given a step and a status test.
Definition at line 57 of file ROL_TypeG_Algorithm_Def.hpp.
References ROL::TypeG::Algorithm< Real >::status_.
|
protected |
Definition at line 66 of file ROL_TypeG_Algorithm_Def.hpp.
References ROL::Vector< Real >::clone().
Referenced by ROL::TypeG::MoreauYosidaAlgorithm< Real >::initialize(), ROL::TypeG::InteriorPointAlgorithm< Real >::initialize(), ROL::TypeG::StabilizedLCLAlgorithm< Real >::initialize(), and ROL::TypeG::AugmentedLagrangianAlgorithm< Real >::initialize().
void ROL::TypeG::Algorithm< Real >::setStatusTest | ( | const Ptr< StatusTest< Real >> & | status, |
bool | combineStatus = false |
||
) |
Definition at line 99 of file ROL_TypeG_Algorithm_Def.hpp.
|
virtual |
Run algorithm on general constrained problems (Type-G). This is the primary Type-G interface.
Reimplemented in ROL::TypeG::StabilizedLCLAlgorithm< Real >.
Definition at line 108 of file ROL_TypeG_Algorithm_Def.hpp.
References ROL::Problem< Real >::finalizeIteration(), ROL::Problem< Real >::getBoundConstraint(), ROL::Problem< Real >::getConstraint(), ROL::Problem< Real >::getDualOptimizationVector(), ROL::Problem< Real >::getMultiplierVector(), ROL::Problem< Real >::getObjective(), ROL::Problem< Real >::getPolyhedralProjection(), ROL::Problem< Real >::getPrimalOptimizationVector(), ROL::Problem< Real >::getProblemType(), ROL::Problem< Real >::getResidualVector(), and ROL::TYPE_EB.
|
virtual |
Run algorithm on general constrained problems (Type-G). This is the primary Type-G interface.
Definition at line 128 of file ROL_TypeG_Algorithm_Def.hpp.
References ROL::Problem< Real >::addBoundConstraint(), ROL::Problem< Real >::addConstraint(), and ROL::Problem< Real >::finalize().
|
virtual |
Run algorithm on general constrained problems (Type-G). This is the primary Type-G interface.
Definition at line 145 of file ROL_TypeG_Algorithm_Def.hpp.
References ROL::Problem< Real >::addConstraint(), and ROL::Problem< Real >::finalize().
|
virtual |
Run algorithm on general constrained problems (Type-G). This is the primary Type-G interface.
Definition at line 161 of file ROL_TypeG_Algorithm_Def.hpp.
References ROL::Problem< Real >::addBoundConstraint(), ROL::Problem< Real >::addConstraint(), and ROL::Problem< Real >::finalize().
|
virtual |
Run algorithm on general constrained problems (Type-G). This is the primary Type-G interface.
Definition at line 179 of file ROL_TypeG_Algorithm_Def.hpp.
References ROL::Problem< Real >::addConstraint(), and ROL::Problem< Real >::finalize().
|
virtual |
Run algorithm on general constrained problems (Type-G). This is the primary Type-G interface.
Definition at line 199 of file ROL_TypeG_Algorithm_Def.hpp.
References ROL::Problem< Real >::addBoundConstraint(), ROL::Problem< Real >::addConstraint(), and ROL::Problem< Real >::finalize().
|
pure virtual |
Run algorithm on general constrained problems (Type-G). This is the primary Type-G interface.
Implemented in ROL::TypeG::StabilizedLCLAlgorithm< Real >, ROL::TypeG::AugmentedLagrangianAlgorithm< Real >, ROL::TypeG::InteriorPointAlgorithm< Real >, and ROL::TypeG::MoreauYosidaAlgorithm< Real >.
|
virtual |
Run algorithm on general constrained problems (Type-G). This is the primary Type-G interface.
Definition at line 223 of file ROL_TypeG_Algorithm_Def.hpp.
References ROL::Problem< Real >::addConstraint(), ROL::Vector< Real >::clone(), and ROL::Problem< Real >::finalize().
|
virtual |
Run algorithm on general constrained problems (Type-G). This is the primary Type-G interface.
Definition at line 250 of file ROL_TypeG_Algorithm_Def.hpp.
References ROL::Problem< Real >::addBoundConstraint(), ROL::Problem< Real >::addConstraint(), ROL::Vector< Real >::clone(), and ROL::Problem< Real >::finalize().
|
virtual |
Run algorithm on general constrained problems (Type-G). This is the primary Type-G interface.
Definition at line 280 of file ROL_TypeG_Algorithm_Def.hpp.
References ROL::Problem< Real >::addConstraint(), ROL::Vector< Real >::clone(), and ROL::Problem< Real >::finalize().
|
virtual |
Run algorithm on general constrained problems (Type-G). This is the primary Type-G interface.
Definition at line 317 of file ROL_TypeG_Algorithm_Def.hpp.
References ROL::Problem< Real >::addBoundConstraint(), ROL::Problem< Real >::addConstraint(), ROL::Vector< Real >::clone(), and ROL::Problem< Real >::finalize().
|
virtual |
Run algorithm on general constrained problems (Type-G). This is the primary Type-G interface.
Definition at line 358 of file ROL_TypeG_Algorithm_Def.hpp.
References ROL::Problem< Real >::addBoundConstraint(), ROL::Problem< Real >::addConstraint(), ROL::Problem< Real >::addLinearConstraint(), and ROL::Problem< Real >::finalize().
|
virtual |
Run algorithm on general constrained problems (Type-G). This is the primary Type-G interface.
Definition at line 381 of file ROL_TypeG_Algorithm_Def.hpp.
References ROL::Problem< Real >::addConstraint(), ROL::Problem< Real >::addLinearConstraint(), and ROL::Problem< Real >::finalize().
|
virtual |
Run algorithm on general constrained problems (Type-G). This is the primary Type-G interface.
Definition at line 403 of file ROL_TypeG_Algorithm_Def.hpp.
References ROL::Problem< Real >::addBoundConstraint(), ROL::Problem< Real >::addConstraint(), ROL::Problem< Real >::addLinearConstraint(), and ROL::Problem< Real >::finalize().
|
virtual |
Run algorithm on general constrained problems (Type-G). This is the primary Type-G interface.
Definition at line 427 of file ROL_TypeG_Algorithm_Def.hpp.
References ROL::Problem< Real >::addConstraint(), ROL::Problem< Real >::addLinearConstraint(), and ROL::Problem< Real >::finalize().
|
virtual |
Run algorithm on general constrained problems (Type-G). This is the primary Type-G interface.
Definition at line 453 of file ROL_TypeG_Algorithm_Def.hpp.
References ROL::Problem< Real >::addBoundConstraint(), ROL::Problem< Real >::addConstraint(), ROL::Problem< Real >::addLinearConstraint(), and ROL::Problem< Real >::finalize().
|
virtual |
Run algorithm on general constrained problems (Type-G). This is the primary Type-G interface.
Definition at line 483 of file ROL_TypeG_Algorithm_Def.hpp.
References ROL::Problem< Real >::addBoundConstraint(), ROL::Problem< Real >::addConstraint(), ROL::Problem< Real >::addLinearConstraint(), ROL::Vector< Real >::clone(), and ROL::Problem< Real >::finalize().
|
virtual |
Run algorithm on general constrained problems (Type-G). This is the primary Type-G interface.
Definition at line 512 of file ROL_TypeG_Algorithm_Def.hpp.
References ROL::Problem< Real >::addConstraint(), ROL::Problem< Real >::addLinearConstraint(), ROL::Vector< Real >::clone(), and ROL::Problem< Real >::finalize().
|
virtual |
Run algorithm on general constrained problems (Type-G). This is the primary Type-G interface.
Definition at line 546 of file ROL_TypeG_Algorithm_Def.hpp.
References ROL::Problem< Real >::addBoundConstraint(), ROL::Problem< Real >::addConstraint(), ROL::Problem< Real >::addLinearConstraint(), ROL::Vector< Real >::clone(), and ROL::Problem< Real >::finalize().
|
virtual |
Run algorithm on general constrained problems (Type-G). This is the primary Type-G interface.
Definition at line 585 of file ROL_TypeG_Algorithm_Def.hpp.
References ROL::Problem< Real >::addConstraint(), ROL::Problem< Real >::addLinearConstraint(), ROL::Vector< Real >::clone(), and ROL::Problem< Real >::finalize().
|
virtual |
Run algorithm on general constrained problems (Type-G). This is the primary Type-G interface.
Definition at line 625 of file ROL_TypeG_Algorithm_Def.hpp.
References ROL::Problem< Real >::addBoundConstraint(), ROL::Problem< Real >::addConstraint(), ROL::Problem< Real >::addLinearConstraint(), ROL::Vector< Real >::clone(), and ROL::Problem< Real >::finalize().
|
virtual |
Print iterate header.
Reimplemented in ROL::TypeG::StabilizedLCLAlgorithm< Real >, ROL::TypeG::AugmentedLagrangianAlgorithm< Real >, ROL::TypeG::InteriorPointAlgorithm< Real >, and ROL::TypeG::MoreauYosidaAlgorithm< Real >.
Definition at line 672 of file ROL_TypeG_Algorithm_Def.hpp.
|
virtual |
Print step name.
Reimplemented in ROL::TypeG::StabilizedLCLAlgorithm< Real >, ROL::TypeG::AugmentedLagrangianAlgorithm< Real >, ROL::TypeG::InteriorPointAlgorithm< Real >, and ROL::TypeG::MoreauYosidaAlgorithm< Real >.
Definition at line 686 of file ROL_TypeG_Algorithm_Def.hpp.
|
virtual |
Print iterate status.
Reimplemented in ROL::TypeG::StabilizedLCLAlgorithm< Real >, ROL::TypeG::AugmentedLagrangianAlgorithm< Real >, ROL::TypeG::InteriorPointAlgorithm< Real >, and ROL::TypeG::MoreauYosidaAlgorithm< Real >.
Definition at line 691 of file ROL_TypeG_Algorithm_Def.hpp.
|
virtual |
Definition at line 716 of file ROL_TypeG_Algorithm_Def.hpp.
References ROL::EExitStatusToString().
Referenced by ROL::TypeG::MoreauYosidaAlgorithm< Real >::run(), ROL::TypeG::InteriorPointAlgorithm< Real >::run(), ROL::TypeG::AugmentedLagrangianAlgorithm< Real >::run(), and ROL::TypeG::StabilizedLCLAlgorithm< Real >::run().
Ptr< const AlgorithmState< Real > > ROL::TypeG::Algorithm< Real >::getState | ( | void | ) | const |
Definition at line 725 of file ROL_TypeG_Algorithm_Def.hpp.
void ROL::TypeG::Algorithm< Real >::reset | ( | void | ) |
Definition at line 731 of file ROL_TypeG_Algorithm_Def.hpp.
|
protected |
Definition at line 92 of file ROL_TypeG_Algorithm.hpp.
Referenced by ROL::TypeG::Algorithm< Real >::Algorithm(), ROL::TypeG::AugmentedLagrangianAlgorithm< Real >::AugmentedLagrangianAlgorithm(), ROL::TypeG::InteriorPointAlgorithm< Real >::InteriorPointAlgorithm(), ROL::TypeG::MoreauYosidaAlgorithm< Real >::MoreauYosidaAlgorithm(), and ROL::TypeG::StabilizedLCLAlgorithm< Real >::StabilizedLCLAlgorithm().
|
protected |
Definition at line 93 of file ROL_TypeG_Algorithm.hpp.
Referenced by ROL::TypeG::AugmentedLagrangianAlgorithm< Real >::AugmentedLagrangianAlgorithm(), ROL::TypeG::InteriorPointAlgorithm< Real >::InteriorPointAlgorithm(), ROL::TypeG::MoreauYosidaAlgorithm< Real >::MoreauYosidaAlgorithm(), and ROL::TypeG::StabilizedLCLAlgorithm< Real >::StabilizedLCLAlgorithm().
|
protected |
Definition at line 94 of file ROL_TypeG_Algorithm.hpp.