44 #ifndef ROL_STEPFACTORY_H
45 #define ROL_STEPFACTORY_H
49 #include "ROL_ParameterList.hpp"
50 #include "ROL_Ptr.hpp"
70 ROL::Ptr<Step<Real>>
getStep(
const std::string &type,
71 ROL::ParameterList &parlist)
const {
75 case STEP_BUNDLE:
return ROL::makePtr<BundleStep<Real>>(parlist);
77 case STEP_LINESEARCH:
return ROL::makePtr<LineSearchStep<Real>>(parlist);
82 case STEP_FLETCHER:
return ROL::makePtr<FletcherStep<Real>>(parlist);
83 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.