MCPcopy Create free account
hub / github.com/ERGO-Code/HiGHS / writeInfo

Method writeInfo

highs/lp_data/Highs.cpp:414–433  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

412}
413
414HighsStatus 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

Callers 2

TestInfo.cppFile · 0.80
TestMipSolver.cppFile · 0.80

Calls 4

interpretCallStatusFunction · 0.85
highsLogUserFunction · 0.85
writeInfoToFileFunction · 0.85
c_strMethod · 0.80

Tested by

no test coverage detected