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

Function optionOffChooseOnOk

highs/lp_data/HighsOptions.cpp:59–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59bool optionOffChooseOnOk(const HighsLogOptions& report_log_options,
60 const string& name, const string& value) {
61 if (value == kHighsOffString || value == kHighsChooseString ||
62 value == kHighsOnString)
63 return true;
64 highsLogUser(
65 report_log_options, HighsLogType::kError,
66 "Value \"%s\" for %s option is not one of \"%s\", \"%s\" or \"%s\"\n",
67 value.c_str(), name.c_str(), kHighsOffString.c_str(),
68 kHighsChooseString.c_str(), kHighsOnString.c_str());
69 return false;
70}
71
72bool optionOffOnOk(const HighsLogOptions& report_log_options,
73 const string& name, const string& value) {

Callers 1

checkOptionValueFunction · 0.85

Calls 2

highsLogUserFunction · 0.85
c_strMethod · 0.80

Tested by

no test coverage detected