| 208 | } |
| 209 | |
| 210 | HighsStatus Highs::writeOptions(const std::string& filename, |
| 211 | const bool report_only_deviations) { |
| 212 | this->logHeader(); |
| 213 | HighsStatus return_status = HighsStatus::kOk; |
| 214 | FILE* file; |
| 215 | HighsFileType file_type; |
| 216 | return_status = interpretCallStatus( |
| 217 | options_.log_options, |
| 218 | openWriteFile(filename, "writeOptions", file, file_type), return_status, |
| 219 | "openWriteFile"); |
| 220 | if (return_status == HighsStatus::kError) return return_status; |
| 221 | if (filename == "") file_type = HighsFileType::kMinimal; |
| 222 | // Report to user that options are being written to a file |
| 223 | if (filename != "") |
| 224 | highsLogUser(options_.log_options, HighsLogType::kInfo, |
| 225 | "Writing the option values to %s\n", filename.c_str()); |
| 226 | return_status = interpretCallStatus( |
| 227 | options_.log_options, |
| 228 | writeOptionsToFile(file, options_.log_options, options_.records, |
| 229 | report_only_deviations, file_type), |
| 230 | return_status, "writeOptionsToFile"); |
| 231 | if (file != stdout) fclose(file); |
| 232 | return return_status; |
| 233 | } |
| 234 | |
| 235 | // HighsStatus Highs::getOptionType(const char* option, HighsOptionType* type) |
| 236 | // const { return getOptionType(option, type);} |
no test coverage detected