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

Method chooseMakepack

highs/simplex/HEkkDualRow.cpp:63–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63void HEkkDualRow::chooseMakepack(const HVector* row, const HighsInt offset) {
64 /**
65 * Pack the indices and values for the row
66 *
67 * Offset of numCol is used when packing row_ep
68 */
69 const HighsInt rowCount = row->count;
70 const HighsInt* rowIndex = row->index.data();
71 const double* rowArray = row->array.data();
72 for (HighsInt i = 0; i < rowCount; i++) {
73 const HighsInt index = rowIndex[i];
74 const double value = rowArray[index];
75 packIndex[packCount] = index + offset;
76 packValue[packCount++] = value;
77 }
78}
79
80void HEkkDualRow::choosePossible() {
81 /**

Callers 3

chooseColumnMethod · 0.80
chooseColumnSliceMethod · 0.80

Calls 1

dataMethod · 0.80

Tested by

no test coverage detected