| 179 | } |
| 180 | |
| 181 | HighsStatus Highs::readOptions(const std::string& filename) { |
| 182 | if (filename.size() <= 0) { |
| 183 | highsLogUser(options_.log_options, HighsLogType::kWarning, |
| 184 | "Empty file name so not reading options\n"); |
| 185 | return HighsStatus::kWarning; |
| 186 | } |
| 187 | HighsLogOptions report_log_options = options_.log_options; |
| 188 | switch (loadOptionsFromFile(report_log_options, options_, filename)) { |
| 189 | case HighsLoadOptionsStatus::kError: |
| 190 | case HighsLoadOptionsStatus::kEmpty: |
| 191 | return HighsStatus::kError; |
| 192 | default: |
| 193 | break; |
| 194 | } |
| 195 | return optionChangeAction(); |
| 196 | } |
| 197 | |
| 198 | HighsStatus Highs::passOptions(const HighsOptions& options) { |
| 199 | if (passLocalOptions(options_.log_options, options, options_) == |
no test coverage detected