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

Method getColsInterface

highs/lp_data/HighsInterface.cpp:822–837  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

820}
821
822void Highs::getColsInterface(const HighsIndexCollection& index_collection,
823 HighsInt& num_col, double* cost, double* lower,
824 double* upper, HighsInt& num_nz, HighsInt* start,
825 HighsInt* index, double* value) const {
826 const HighsLp& lp = model_.lp_;
827 if (lp.a_matrix_.isColwise()) {
828 getSubVectors(index_collection, lp.num_col_, lp.col_cost_.data(),
829 lp.col_lower_.data(), lp.col_upper_.data(), lp.a_matrix_,
830 num_col, cost, lower, upper, num_nz, start, index, value);
831 } else {
832 getSubVectorsTranspose(index_collection, lp.num_col_, lp.col_cost_.data(),
833 lp.col_lower_.data(), lp.col_upper_.data(),
834 lp.a_matrix_, num_col, cost, lower, upper, num_nz,
835 start, index, value);
836 }
837}
838
839void Highs::getRowsInterface(const HighsIndexCollection& index_collection,
840 HighsInt& num_row, double* lower, double* upper,

Callers

nothing calls this directly

Calls 4

getSubVectorsFunction · 0.85
getSubVectorsTransposeFunction · 0.85
isColwiseMethod · 0.80
dataMethod · 0.80

Tested by

no test coverage detected