45 #include "ConstrainedOptPack_VariableBoundsTesterSetOptions.hpp"
50 const int local_num_options = 2;
57 const char* local_SOptions[local_num_options] = {
64 namespace ConstrainedOptPack {
68 ,
const char opt_grp_name[] )
69 : OptionsFromStreamPack::SetOptionsFromStreamNode(
70 opt_grp_name, local_num_options, local_SOptions )
71 , OptionsFromStreamPack::SetOptionsToTargetBase<
76 int option_num,
const std::string& option_value )
79 switch( (local_EOptions)option_num ) {
81 target().warning_tol(std::fabs(std::atof(option_value.c_str())));
84 target().error_tol(std::fabs(std::atof(option_value.c_str())));
VariableBoundsTesterSetOptions(VariableBoundsTester *target=0, const char opt_grp_name[]="VariableBoundsTester")
Tests that a set of variables are within their bounds.
void setOption(int option_num, const std::string &option_value)
Overridden from SetOptionsFromStreamNode.
#define TEUCHOS_TEST_FOR_EXCEPT(throw_exception_test)