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

Method writeToFileMatrixRow

highs/io/FilereaderLp.cpp:345–357  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

343}
344
345void 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
359HighsStatus FilereaderLp::writeModelToFile(const HighsOptions& options,
360 const std::string filename,

Callers 1

writeModelToFileMethod · 0.95

Calls 3

writeToFileValueMethod · 0.95
writeToFileVarMethod · 0.95
isRowwiseMethod · 0.80

Tested by

no test coverage detected