44 #include "ConstrainedOptPack_DirectLineSearchArmQuad_StrategySetOptions.hpp"
45 #include "OptionsFromStreamPack_StringToBool.hpp"
50 const int local_num_options = 5;
60 const char* local_SOptions[local_num_options] = {
70 namespace ConstrainedOptPack {
74 ,
const char opt_grp_name[] )
75 : OptionsFromStreamPack::SetOptionsFromStreamNode(
76 opt_grp_name, local_num_options, local_SOptions )
77 , OptionsFromStreamPack::SetOptionsToTargetBase<
82 int option_num,
const std::string& option_value )
84 using OptionsFromStreamPack::StringToBool;
85 switch( (local_EOptions)option_num ) {
87 target().eta( std::atof( option_value.c_str() ) );
91 target().min_frac( std::atof( option_value.c_str() ) );
95 target().max_frac( std::atof( option_value.c_str() ) );
99 target().set_max_iter( std::atof( option_value.c_str() ) );
102 case MAX_OUT_LS_ITER: {
103 target().max_out_iter( StringToBool(
"max_out_ls_iter", option_value.c_str() ) );
DirectLineSearchArmQuad_StrategySetOptions(DirectLineSearchArmQuad_Strategy *qp_solver=0, const char opt_grp_name[]="DirectLineSearchArmQuad")
Performs a line search using the Armijo condition and uses quadratic interpolation to select each new...
void setOption(int option_num, const std::string &option_value)
Overridden from SetOptionsFromStreamNode.
#define TEUCHOS_TEST_FOR_EXCEPT(throw_exception_test)