45 #include "MoochoPack_CheckSkipBFGSUpdateStd_StepSetOptions.hpp"
46 #include "OptionsFromStreamPack_StringToBool.hpp"
51 const int local_num_options = 1;
53 const char options_group_name[] =
"CheckSkipBFGSUpdateStd";
59 const char* local_SOptions[local_num_options] = {
60 "skip_bfgs_prop_const"
65 namespace MoochoPack {
69 : OptionsFromStreamPack::SetOptionsFromStreamNode(
70 options_group_name, local_num_options, local_SOptions )
71 , OptionsFromStreamPack::SetOptionsToTargetBase<
76 int option_num,
const std::string& option_value )
78 switch( (local_EOptions)option_num ) {
79 case SKIP_BFGS_PROP_CONST: {
80 target().skip_bfgs_prop_const( std::fabs( std::atof( option_value.c_str() ) ) );
Checks if a BFGS update should be preformed.
CheckSkipBFGSUpdateStd_StepSetOptions(CheckSkipBFGSUpdateStd_Step *target=0)
void setOption(int option_num, const std::string &option_value)
Overridden from SetOptionsFromStreamNode.
#define TEUCHOS_TEST_FOR_EXCEPT(throw_exception_test)