45 #include "ConstrainedOptPack_QPSolverRelaxedTesterSetOptions.hpp"
50 const int local_num_options = 6;
61 const char* local_SOptions[local_num_options] = {
72 namespace ConstrainedOptPack {
76 ,
const char opt_grp_name[] )
77 : OptionsFromStreamPack::SetOptionsFromStreamNode(
78 opt_grp_name, local_num_options, local_SOptions )
79 , OptionsFromStreamPack::SetOptionsToTargetBase<
84 int option_num,
const std::string& option_value )
87 switch( (local_EOptions)option_num ) {
89 target().opt_warning_tol(std::fabs(std::atof(option_value.c_str())));
92 target().opt_error_tol(std::fabs(std::atof(option_value.c_str())));
94 case FEAS_WARNING_TOL:
95 target().feas_warning_tol(std::fabs(std::atof(option_value.c_str())));
98 target().feas_error_tol(std::fabs(std::atof(option_value.c_str())));
100 case COMP_WARNING_TOL:
101 target().comp_warning_tol(std::fabs(std::atof(option_value.c_str())));
104 target().comp_error_tol(std::fabs(std::atof(option_value.c_str())));
Tests the optimality conditions of the output from a QPSolverRelaxed object.
void setOption(int option_num, const std::string &option_value)
Overridden from SetOptionsFromStreamNode.
QPSolverRelaxedTesterSetOptions(QPSolverRelaxedTester *target=0, const char opt_grp_name[]="QPSolverRelaxedTester")
#define TEUCHOS_TEST_FOR_EXCEPT(throw_exception_test)