44 #ifndef ROL_TYPEB_SPECTRALGRADIENTALGORITHM_HPP
45 #define ROL_TYPEB_SPECTRALGRADIENTALGORITHM_HPP
56 template<
typename Real>
72 std::ostream &outStream = std::cout);
83 std::ostream &outStream = std::cout)
override;
85 void writeHeader( std::ostream& os )
const override;
87 void writeName( std::ostream &os )
const override;
89 void writeOutput( std::ostream &os,
const bool write_header =
false )
const override;
Provides the interface to evaluate objective functions.
Defines the linear algebra or vector space interface.
void writeOutput(std::ostream &os, const bool write_header=false) const override
Print iterate status.
void writeName(std::ostream &os) const override
Print step name.
Provides an interface to run bound constrained optimization algorithms.
void run(Vector< Real > &x, const Vector< Real > &g, Objective< Real > &obj, BoundConstraint< Real > &bnd, std::ostream &outStream=std::cout) override
Run algorithm on bound constrained problems (Type-B). This general interface supports the use of dual...
Provides an interface to run the spectral projected gradient algorithm.
void initialize(Vector< Real > &x, const Vector< Real > &g, Objective< Real > &obj, BoundConstraint< Real > &bnd, std::ostream &outStream=std::cout)
void writeHeader(std::ostream &os) const override
Print iterate header.
Provides the interface to apply upper and lower bound constraints.
SpectralGradientAlgorithm(ParameterList &list)