| 3369 | } |
| 3370 | |
| 3371 | HighsStatus 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 | |
| 3381 | HighsStatus Highs::getColIntegrality(const HighsInt col, |
| 3382 | HighsVarType& integrality) const { |
no test coverage detected