44 #ifndef ROL_TYPEU_LINESEARCHALGORITHM_H 45 #define ROL_TYPEU_LINESEARCHALGORITHM_H 103 Ptr<DescentDirection_U<Real>>
desc_;
147 std::ostream &outStream = std::cout)
override;
149 void writeHeader( std::ostream& os )
const override;
151 void writeName( std::ostream& os )
const override;
153 void writeOutput( std::ostream& os,
bool print_header =
false )
const override;
Provides interface for and implements line searches.
Provides the interface to evaluate objective functions.
void writeHeader(std::ostream &os) const override
Print iterate header.
bool acceptLastAlpha_
For backwards compatibility. When max function evaluations are reached take last step.
EDescentU
Enumeration of descent direction types.
void writeOutput(std::ostream &os, bool print_header=false) const override
Print iterate status.
std::string lineSearchName_
ELineSearchU
Enumeration of line-search types.
void writeName(std::ostream &os) const override
Print step name.
void initialize(const Vector< Real > &x, const Vector< Real > &g, Objective< Real > &obj, std::ostream &outStream=std::cout)
ECurvatureConditionU
Enumeration of line-search curvature conditions.
Defines the linear algebra or vector space interface.
Ptr< LineSearch_U< Real > > lineSearch_
Line-search object.
bool usePreviousAlpha_
If true, use the previously accepted step length (if any) as the new initial step length...
Provides an interface to run unconstrained optimization algorithms.
ECurvatureConditionU econd_
enum determines type of curvature condition
LineSearchAlgorithm(ParameterList &parlist, const Ptr< DescentDirection_U< Real >> &descent=nullPtr, const Ptr< LineSearch_U< Real >> &lineSearch=nullPtr)
Constructor.
EDescentU edesc_
enum determines type of descent direction
void run(Vector< Real > &x, const Vector< Real > &g, Objective< Real > &obj, std::ostream &outStream=std::cout) override
Run algorithm on unconstrained problems (Type-U). This general interface supports the use of dual opt...
Provides the interface to compute unconstrained optimization steps for line search.
Ptr< DescentDirection_U< Real > > desc_
Unglobalized step object.
ELineSearchU els_
enum determines type of line search
Provides an interface to run unconstrained line search algorithms.