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

Method priceByRow

highs/util/HighsSparseMatrix.cpp:1439–1455  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1437}
1438
1439void HighsSparseMatrix::priceByRow(const bool quad_precision, HVector& result,
1440 const HVector& column,
1441 const HighsInt debug_report) const {
1442 assert(this->isRowwise());
1443 if (debug_report >= kDebugReportAll)
1444 printf("\nHighsSparseMatrix::priceByRow:\n");
1445 // Vanilla hyper-sparse row-wise PRICE. Set up parameters so that
1446 // priceByRowWithSwitch runs as vanilla hyper-sparse PRICE
1447 // Expected density always forces hyper-sparse PRICE
1448 const double expected_density = -kHighsInf;
1449 // Always start from first index of column
1450 HighsInt from_index = 0;
1451 // Never switch to standard row-wise PRICE
1452 const double switch_density = kHighsInf;
1453 this->priceByRowWithSwitch(quad_precision, result, column, expected_density,
1454 from_index, switch_density);
1455}
1456
1457void HighsSparseMatrix::priceByRowWithSwitch(
1458 const bool quad_precision, HVector& result, const HVector& column,

Callers 3

tableauRowPriceMethod · 0.80
chooseColumnSliceMethod · 0.80

Calls 2

isRowwiseMethod · 0.95
priceByRowWithSwitchMethod · 0.95

Tested by

no test coverage detected