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

Function setLocalOptionValue

highs/lp_data/HighsOptions.cpp:501–519  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

499}
500
501OptionStatus setLocalOptionValue(const HighsLogOptions& report_log_options,
502 const std::string& name,
503 std::vector<OptionRecord*>& option_records,
504 const bool value) {
505 HighsInt index;
506 OptionStatus status =
507 getOptionIndex(report_log_options, name, option_records, index);
508 if (status != OptionStatus::kOk) return status;
509 HighsOptionType type = option_records[index]->type;
510 if (type != HighsOptionType::kBool) {
511 highsLogUser(
512 report_log_options, HighsLogType::kError,
513 "setLocalOptionValue: Option \"%s\" cannot be assigned a bool\n",
514 name.c_str());
515 return OptionStatus::kIllegalValue;
516 }
517 return setLocalOptionValue(((OptionRecordBool*)option_records[index])[0],
518 value);
519}
520
521OptionStatus setLocalOptionValue(const HighsLogOptions& report_log_options,
522 const std::string& name,

Callers 1

passLocalOptionsFunction · 0.70

Calls 11

getOptionIndexFunction · 0.85
highsLogUserFunction · 0.85
trimFunction · 0.85
boolFromStringFunction · 0.85
highsLogDevFunction · 0.85
checkOptionValueFunction · 0.85
c_strMethod · 0.80
highsOpenLogFileFunction · 0.70
tolowerFunction · 0.50
assignvalueMethod · 0.45

Tested by

no test coverage detected