| 344 | } |
| 345 | |
| 346 | HighsStatus Highs::writeRunData(const std::string& filename) const { |
| 347 | HighsStatus return_status = HighsStatus::kOk; |
| 348 | FILE* file; |
| 349 | HighsFileType file_type; |
| 350 | return_status = interpretCallStatus( |
| 351 | options_.log_options, |
| 352 | openWriteFile(filename, "writeRunData", file, file_type), return_status, |
| 353 | "openWriteFile"); |
| 354 | if (return_status == HighsStatus::kError) return return_status; |
| 355 | // Report to user that options are being written to a file |
| 356 | if (filename != "") |
| 357 | highsLogUser(options_.log_options, HighsLogType::kInfo, |
| 358 | "Writing the run_data values to %s\n", filename.c_str()); |
| 359 | return_status = interpretCallStatus( |
| 360 | options_.log_options, |
| 361 | writeRunDataToFile(file, run_data_.valid, run_data_.records, file_type), |
| 362 | return_status, "writeRunDataToFile"); |
| 363 | if (file != stdout) fclose(file); |
| 364 | return return_status; |
| 365 | } |
| 366 | |
| 367 | HighsStatus Highs::getInfoValue(const std::string& info, |
| 368 | HighsInt& value) const { |
no test coverage detected