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

Method getRowByName

highs/lp_data/Highs.cpp:3459–3467  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3457}
3458
3459HighsStatus Highs::getRowByName(const std::string& name, HighsInt& row) {
3460 HighsLp& lp = model_.lp_;
3461 if (!lp.row_names_.size()) return HighsStatus::kError;
3462 if (!lp.row_hash_.name2index.size()) lp.row_hash_.form(lp.row_names_);
3463 std::string from_method = "Highs::getRowByName";
3464 const bool is_column = false;
3465 return getIndexFromName(options_.log_options, from_method, is_column, name,
3466 lp.row_hash_.name2index, row, lp.row_names_);
3467}
3468
3469HighsStatus Highs::getCoeff(const HighsInt row, const HighsInt col,
3470 double& value) const {

Callers 3

Highs_getRowByNameFunction · 0.80
highs_getRowByNameFunction · 0.80
TestNames.cppFile · 0.80

Calls 3

getIndexFromNameFunction · 0.85
formMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected