#include <ConstrainedOptPack_DirectLineSearch_Strategy.hpp>
Inheritance diagram for ConstrainedOptPack::DirectLineSearch_Strategy:
Public Member Functions | |
| virtual | ~DirectLineSearch_Strategy () |
| | |
| virtual void | set_max_iter (int max_iter)=0 |
| Set the maximum number of iterations. | |
| virtual int | max_iter () const =0 |
| Get the maximum number of iterations. | |
| virtual int | num_iterations () const =0 |
| Get the number of iterations performed. | |
| virtual bool | do_line_search (const MeritFuncCalc1D &phi, value_type phi_k, value_type *alpha_k, value_type *phi_kp1, std::ostream *out=0)=0 |
| Called to perform the linesearch. | |
| virtual void | print_algorithm (std::ostream &out, const std::string &leading_str) const |
| Print the direct line search algorithm. | |
This is the interface for strategy objects that perform a line search from an initial point along a search direction given a merit function.
Definition at line 44 of file ConstrainedOptPack_DirectLineSearch_Strategy.hpp.
|
|
Definition at line 57 of file ConstrainedOptPack_DirectLineSearch_Strategy.hpp. |
|
|
Set the maximum number of iterations.
Implemented in ConstrainedOptPack::DirectLineSearchArmQuad_Strategy. |
|
|
Get the maximum number of iterations.
Implemented in ConstrainedOptPack::DirectLineSearchArmQuad_Strategy. |
|
|
Get the number of iterations performed.
Implemented in ConstrainedOptPack::DirectLineSearchArmQuad_Strategy. |
|
||||||||||||||||||||||||
|
Called to perform the linesearch.
This operaion computes the approximate minimum to a merit function along a search direcation. More specifically the following problem is approximatly solved:
min phi(alpha) s.t. alpha = [0, alpha_upper] Actually, if the initial alpha satisfys an internal descent requirement, then it will be choosen over smaller values of alpha that may result in a greater reduction in the given merit funciton. If the maximum number of iterations is exceeded then the subclass will return false and will return the values of alpha_k, x_kp1, and phi_kp1 for the lowest value of phi_kp1 found, and the last call to phi.value(x) will be this best x_kp1.
Preconditions: {itemize}
Implemented in ConstrainedOptPack::DirectLineSearchArmQuad_Strategy. |
|
||||||||||||
|
Print the direct line search algorithm. The default does nothing. Reimplemented in ConstrainedOptPack::DirectLineSearchArmQuad_Strategy. Definition at line 120 of file ConstrainedOptPack_DirectLineSearch_Strategy.hpp. |
1.3.9.1