53 const int local_num_options = 5;
59 OBJ_INCREASE_THRESHOLD,
60 MAX_POS_PENALTY_INCREASE,
61 POS_TO_NEG_PENALTY_INCREASE,
65 const char* local_SOptions[local_num_options] = {
67 "obj_increase_threshold",
68 "max_pos_penalty_increase",
69 "pos_to_neg_penalty_increase",
75 namespace MoochoPack {
78 MeritFunc_ModifiedL1LargerSteps_AddedStep* target )
79 : OptionsFromStreamPack::SetOptionsFromStreamNode(
81 , OptionsFromStreamPack::SetOptionsToTargetBase<
82 MeritFunc_ModifiedL1LargerSteps_AddedStep >( target )
90 target().after_k_iter( ::atoi( option_value.c_str() ) );
93 case OBJ_INCREASE_THRESHOLD: {
94 target().obj_increase_threshold( ::atof( option_value.c_str() ) );
97 case MAX_POS_PENALTY_INCREASE: {
98 target().max_pos_penalty_increase( ::fabs( ::atof( option_value.c_str() ) ) );
101 case POS_TO_NEG_PENALTY_INCREASE: {
102 target().pos_to_neg_penalty_increase( ::fabs( ::atof( option_value.c_str() ) ) );
105 case INCR_MULT_FACTOR: {
106 target().incr_mult_factor( ::fabs( ::atof( option_value.c_str() ) ) );
MeritFunc_ModifiedL1LargerSteps_AddedStepSetOptions(MeritFunc_ModifiedL1LargerSteps_AddedStep *target=0)
MeritFunc_ModifiedL1LargerSteps_AddedStep & target()
const std::string & options_group_name(OptionsFromStream::const_iterator &itr)
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)