| 499 | } |
| 500 | |
| 501 | OptionStatus 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 | |
| 521 | OptionStatus setLocalOptionValue(const HighsLogOptions& report_log_options, |
| 522 | const std::string& name, |
no test coverage detected