10 #ifndef ROL_SOLVER_HPP
11 #define ROL_SOLVER_HPP
20 #include "ROL_ParameterList.hpp"
30 template<
typename Real>
34 const Ptr<Problem<Real>>
opt_;
64 bool combineStatus =
true);
74 int solve( std::ostream &outStream,
76 bool combineStatus =
true );
102 #endif // ROL_SOLVER_HPP
Provides a simplified interface for solving a wide range of optimization problems.
Defines a no-output stream class ROL::NullStream and a function makeStreamPtr which either wraps a re...
Ptr< TypeP::Algorithm< Real > > algoP_
int solve(const Ptr< StatusTest< Real >> &status=nullPtr, bool combineStatus=true)
Solve optimization problem with no iteration output.
Ptr< TypeG::Algorithm< Real > > algoG_
Provides interface for and implements limited-memory secant operators.
Solver(const Ptr< Problem< Real >> &opt, ParameterList &list, const Ptr< Secant< Real >> &secant=nullPtr)
Constructor.
Ptr< TypeU::Algorithm< Real > > algoU_
const Ptr< Problem< Real > > opt_
Provides an interface to check status of optimization algorithms.
void reset()
Reset both Algorithm and Step.
const EProblem problemType_
Ptr< const AlgorithmState< Real > > getAlgorithmState() const
Return the AlgorithmState.
Ptr< TypeE::Algorithm< Real > > algoE_
Ptr< TypeB::Algorithm< Real > > algoB_