| 412 | } |
| 413 | |
| 414 | HighsStatus Highs::writeInfo(const std::string& filename) const { |
| 415 | HighsStatus return_status = HighsStatus::kOk; |
| 416 | FILE* file; |
| 417 | HighsFileType file_type; |
| 418 | return_status = |
| 419 | interpretCallStatus(options_.log_options, |
| 420 | openWriteFile(filename, "writeInfo", file, file_type), |
| 421 | return_status, "openWriteFile"); |
| 422 | if (return_status == HighsStatus::kError) return return_status; |
| 423 | // Report to user that options are being written to a file |
| 424 | if (filename != "") |
| 425 | highsLogUser(options_.log_options, HighsLogType::kInfo, |
| 426 | "Writing the info values to %s\n", filename.c_str()); |
| 427 | return_status = interpretCallStatus( |
| 428 | options_.log_options, |
| 429 | writeInfoToFile(file, info_.valid, info_.records, file_type), |
| 430 | return_status, "writeInfoToFile"); |
| 431 | if (file != stdout) fclose(file); |
| 432 | return return_status; |
| 433 | } |
| 434 | |
| 435 | /** |
| 436 | * @brief Get the size of HighsInt |
no test coverage detected