| 150 | |
| 151 | #if 0 |
| 152 | HighsStatus Highs::writeSolution(const std::string& filename, |
| 153 | const bool pretty) const { |
| 154 | deprecationMessage("writeSolution(filename, pretty)", "writeSolution(filename, style)"); |
| 155 | HighsStatus return_status = HighsStatus::kOk; |
| 156 | HighsStatus call_status; |
| 157 | FILE* file; |
| 158 | HighsFileType file_type; |
| 159 | call_status = openWriteFile(filename, "writeSolution", file, file_type); |
| 160 | return_status = |
| 161 | interpretCallStatus(call_status, return_status, "openWriteFile"); |
| 162 | if (return_status == HighsStatus::kError) return return_status; |
| 163 | HighsInt style; |
| 164 | if (pretty) { |
| 165 | style = kSolutionStylePretty; |
| 166 | } else { |
| 167 | style = kSolutionStyleRaw; |
| 168 | } |
| 169 | writeSolutionFile(file, options_, |
| 170 | model_, basis_, solution_, info_, model_status_, |
| 171 | style); |
| 172 | if (file != stdout) fclose(file); |
| 173 | return HighsStatus::kOk; |
| 174 | } |
| 175 | #endif |
| 176 | |
| 177 | const HighsModelStatus& Highs::getModelStatus(const bool) const { |
nothing calls this directly
no test coverage detected