| 343 | } |
| 344 | |
| 345 | void FilereaderLp::writeToFileMatrixRow(FILE* file, const HighsInt iRow, |
| 346 | const HighsSparseMatrix& ar_matrix, |
| 347 | const std::vector<string>& col_names) { |
| 348 | assert(ar_matrix.isRowwise()); |
| 349 | |
| 350 | for (HighsInt iEl = ar_matrix.start_[iRow]; iEl < ar_matrix.start_[iRow + 1]; |
| 351 | iEl++) { |
| 352 | HighsInt iCol = ar_matrix.index_[iEl]; |
| 353 | double coef = ar_matrix.value_[iEl]; |
| 354 | this->writeToFileValue(file, coef); |
| 355 | this->writeToFileVar(file, col_names[iCol]); |
| 356 | } |
| 357 | } |
| 358 | |
| 359 | HighsStatus FilereaderLp::writeModelToFile(const HighsOptions& options, |
| 360 | const std::string filename, |
no test coverage detected