10 #ifndef ROL_STEPFACTORY_H
11 #define ROL_STEPFACTORY_H
15 #include "ROL_ParameterList.hpp"
16 #include "ROL_Ptr.hpp"
36 ROL::Ptr<Step<Real>>
getStep(
const std::string &type,
37 ROL::ParameterList &parlist)
const {
41 case STEP_BUNDLE:
return ROL::makePtr<BundleStep<Real>>(parlist);
43 case STEP_LINESEARCH:
return ROL::makePtr<LineSearchStep<Real>>(parlist);
48 case STEP_FLETCHER:
return ROL::makePtr<FletcherStep<Real>>(parlist);
49 default:
return ROL::nullPtr;
EStep StringToEStep(std::string s)
ROL::Ptr< Step< Real > > getStep(const std::string &type, ROL::ParameterList &parlist) const
Contains definitions of custom data types in ROL.
EStep
Enumeration of step types.