44#ifndef ROL_SOLVER_DEF_HPP
45#define ROL_SOLVER_DEF_HPP
49template<
typename Real>
51 ParameterList &parlist,
60 ROL_TEST_FOR_EXCEPTION(
true,std::invalid_argument,
61 "Error in Solver::solve() : Unsupported problem type");
65template<
typename Real>
69 return solve(bhs,status,combineStatus);
72template<
typename Real>
75 bool combineStatus ) {
78 if (status != nullPtr)
algoU_->setStatusTest(status,combineStatus);
82 if (status != nullPtr)
algoB_->setStatusTest(status,combineStatus);
86 if (status != nullPtr)
algoE_->setStatusTest(status,combineStatus);
90 if (status != nullPtr)
algoG_->setStatusTest(status,combineStatus);
94 ROL_TEST_FOR_EXCEPTION(
true,std::invalid_argument,
95 "Error in Solver::solve() : Unsupported problem type");
104template<
typename Real>
114 ROL_TEST_FOR_EXCEPTION(
true,std::invalid_argument,
115 "Error in Solver::getAlgorithmState() : Unsupported problem type");
119template<
typename Real>
128 ROL_TEST_FOR_EXCEPTION(
true,std::invalid_argument,
129 "Error in Solver::reset() : Unsupported problem type");
virtual void solve(Vector< Real > &c, Vector< Real > &u, const Vector< Real > &z) override
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< TypeG::Algorithm< Real > > algoG_
void reset()
Reset both Algorithm and Step.
Ptr< TypeB::Algorithm< Real > > algoB_
Ptr< TypeE::Algorithm< Real > > algoE_
const Ptr< Problem< Real > > opt_
Ptr< const AlgorithmState< Real > > getAlgorithmState() const
Return the AlgorithmState.
int solve(const Ptr< StatusTest< Real > > &status=nullPtr, bool combineStatus=true)
Solve optimization problem with no iteration output.
const EProblem problemType_
Ptr< TypeU::Algorithm< Real > > algoU_
Provides an interface to check status of optimization algorithms.
Ptr< Algorithm< Real > > AlgorithmFactory(ParameterList &parlist, const Ptr< Secant< Real > > &secant=nullPtr)
Ptr< TypeE::Algorithm< Real > > AlgorithmFactory(ParameterList &parlist, const Ptr< Secant< Real > > &secant=nullPtr)
Ptr< TypeG::Algorithm< Real > > AlgorithmFactory(ParameterList &parlist, const Ptr< Secant< Real > > &secant=nullPtr)
Ptr< Algorithm< Real > > AlgorithmFactory(ParameterList &parlist, const Ptr< Secant< Real > > &secant=nullPtr)
basic_nullstream< char, char_traits< char > > nullstream