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

Function getOptionIndex

highs/lp_data/HighsOptions.cpp:225–235  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

223}
224
225OptionStatus getOptionIndex(const HighsLogOptions& report_log_options,
226 const std::string& name,
227 const std::vector<OptionRecord*>& option_records,
228 HighsInt& index) {
229 HighsInt num_options = option_records.size();
230 for (index = 0; index < num_options; index++)
231 if (option_records[index]->name == name) return OptionStatus::kOk;
232 highsLogUser(report_log_options, HighsLogType::kError,
233 "getOptionIndex: Option \"%s\" is unknown\n", name.c_str());
234 return OptionStatus::kUnknownOption;
235}
236
237OptionStatus checkOptions(const HighsLogOptions& report_log_options,
238 const std::vector<OptionRecord*>& option_records) {

Callers 4

highsOpenLogFileFunction · 0.85
setLocalOptionValueFunction · 0.85
getLocalOptionValuesFunction · 0.85
getLocalOptionTypeFunction · 0.85

Calls 3

highsLogUserFunction · 0.85
c_strMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected