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<
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: {
bool StringToBool(const char *opt_name, const char *str)
Convert a string "true" or "false" into bool #true# or #false#.
DirectLineSearchArmQuad_StrategySetOptions(DirectLineSearchArmQuad_Strategy *qp_solver=0, const char opt_grp_name[]="DirectLineSearchArmQuad")
DirectLineSearchArmQuad_Strategy & target()
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)
const std::string & option_value(OptionsGroup::const_iterator &itr)