47 #include "MoochoPack_ReducedHessianSecantUpdateBFGSProjected_StrategySetOptions.hpp" 48 #include "OptionsFromStreamPack_StringToBool.hpp" 53 const int local_num_options = 3;
56 ACT_SET_FRAC_PROJ_START
58 ,SUPER_BASIC_MULT_DROP_TOL
61 const char* local_SOptions[local_num_options] = {
62 "act_set_frac_proj_start" 64 ,
"super_basic_mult_drop_tol" 72 ReducedHessianSecantUpdateBFGSProjected_Strategy* target
73 ,
const char opt_grp_name[] )
75 opt_grp_name, local_num_options, local_SOptions )
76 ,
OptionsFromStreamPack::SetOptionsToTargetBase< ReducedHessianSecantUpdateBFGSProjected_Strategy >( target )
80 int option_num,
const std::string& option_value )
82 switch( (local_EOptions)option_num ) {
83 case ACT_SET_FRAC_PROJ_START: {
84 target().act_set_frac_proj_start( ::fabs( ::atof( option_value.c_str() ) ) );
87 case PROJECT_ERROR_TOL: {
88 target().project_error_tol( ::fabs( ::atof( option_value.c_str() ) ) );
91 case SUPER_BASIC_MULT_DROP_TOL: {
92 target().super_basic_mult_drop_tol( ::fabs( ::atof( option_value.c_str() ) ) );
96 TEUCHOS_TEST_FOR_EXCEPT(
true);
void setOption(int option_num, const std::string &option_value)
Overridden from SetOptionsFromStreamNode.
ReducedHessianSecantUpdateBFGSProjected_StrategySetOptions(ReducedHessianSecantUpdateBFGSProjected_Strategy *target=0, const char opt_grp_name[]="ReducedHessianSecantUpdatePBFGS")