MCPcopy Create free account
hub / github.com/ERGO-Code/HiGHS / optionOffOnOk

Function optionOffOnOk

highs/lp_data/HighsOptions.cpp:72–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70}
71
72bool optionOffOnOk(const HighsLogOptions& report_log_options,
73 const string& name, const string& value) {
74 if (value == kHighsOffString || value == kHighsOnString) return true;
75 highsLogUser(report_log_options, HighsLogType::kError,
76 "Value \"%s\" for %s option is not one of \"%s\" or \"%s\"\n",
77 value.c_str(), name.c_str(), kHighsOffString.c_str(),
78 kHighsOnString.c_str());
79 return false;
80}
81
82bool optionSolverOk(const HighsLogOptions& report_log_options,
83 const string& value) {

Callers 1

checkOptionValueFunction · 0.85

Calls 2

highsLogUserFunction · 0.85
c_strMethod · 0.80

Tested by

no test coverage detected