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

Method getColByName

highs/lp_data/Highs.cpp:3371–3379  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3369}
3370
3371HighsStatus Highs::getColByName(const std::string& name, HighsInt& col) {
3372 HighsLp& lp = model_.lp_;
3373 if (!lp.col_names_.size()) return HighsStatus::kError;
3374 if (!lp.col_hash_.name2index.size()) lp.col_hash_.form(lp.col_names_);
3375 std::string from_method = "Highs::getColByName";
3376 const bool is_column = true;
3377 return getIndexFromName(options_.log_options, from_method, is_column, name,
3378 lp.col_hash_.name2index, col, lp.col_names_);
3379}
3380
3381HighsStatus Highs::getColIntegrality(const HighsInt col,
3382 HighsVarType& integrality) const {

Callers 3

Highs_getColByNameFunction · 0.80
highs_getColByNameFunction · 0.80
TestNames.cppFile · 0.80

Calls 3

getIndexFromNameFunction · 0.85
formMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected