50 const int local_num_options = 2;
57 const char* local_SOptions[local_num_options] = {
64 namespace MoochoPack {
68 ,
const char opt_grp_name[] )
69 : OptionsFromStreamPack::SetOptionsFromStreamNode(
70 opt_grp_name, local_num_options, local_SOptions )
71 , OptionsFromStreamPack::SetOptionsToTargetBase<
82 const std::string &option = option_value.c_str();
83 if( option ==
"OBJ_MIN_FULL_STEP" )
84 target().qp_objective( target_t::OBJ_MIN_FULL_STEP );
85 else if( option ==
"OBJ_MIN_NULL_SPACE_STEP" )
86 target().qp_objective( target_t::OBJ_MIN_NULL_SPACE_STEP );
87 else if( option ==
"OBJ_RSQP" )
88 target().qp_objective( target_t::OBJ_RSQP );
90 throw std::invalid_argument(
"Error, incorrect value for "
91 "\"qp_objective\". Only the options "
92 "OBJ_MIN_FULL_STEP, OBJ_MIN_NULL_SPACE_STEP, and OBJ_RSQP"
98 const std::string &option = option_value.c_str();
99 if( option ==
"QP_TEST_DEFAULT" )
100 target().qp_testing( target_t::QP_TEST_DEFAULT );
101 else if( option ==
"QP_TEST" )
102 target().qp_testing( target_t::QP_TEST );
103 else if( option ==
"QP_NO_TEST" )
104 target().qp_testing( target_t::QP_NO_TEST );
106 throw std::invalid_argument(
"Error, incorrect value for "
107 "\"qp_testing\". Only the options "
108 "QP_TEST_DEFAULT, QP_TEST, and QP_NO_TEST "
void setOption(int option_num, const std::string &option_value)
Overridden from SetOptionsFromStreamNode.
FeasibilityStepReducedStd_StrategySetOptions(FeasibilityStepReducedStd_Strategy *target=0, const char opt_grp_name[]="FeasibilityStepReducedStd")
FeasibilityStepReducedStd_Strategy & target()
Implements the feasibility step computation for reduced space SQP.
#define TEUCHOS_TEST_FOR_EXCEPT(throw_exception_test)
const std::string & option_value(OptionsGroup::const_iterator &itr)