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,
bool write_header =
false )
const override;
Provides the interface to apply upper and lower bound constraints.
Provides the interface to evaluate objective functions.
Provides an interface to run bound constrained optimization algorithms.
Provides an interface to run the spectral projected gradient algorithm.
void writeHeader(std::ostream &os) const override
Print iterate header.
SpectralGradientAlgorithm(ParameterList &list)
void initialize(Vector< Real > &x, const Vector< Real > &g, Objective< Real > &obj, BoundConstraint< Real > &bnd, std::ostream &outStream=std::cout)
void writeName(std::ostream &os) const override
Print step name.
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...
void writeOutput(std::ostream &os, bool write_header=false) const override
Print iterate status.
Defines the linear algebra or vector space interface.