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

Method getColIntegrality

highs/lp_data/Highs.cpp:3381–3394  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3379}
3380
3381HighsStatus Highs::getColIntegrality(const HighsInt col,
3382 HighsVarType& integrality) const {
3383 if (col < 0 || col >= this->model_.lp_.num_col_) {
3384 highsLogUser(options_.log_options, HighsLogType::kError,
3385 "Index %d for column integrality is outside the range [0, "
3386 "num_col = %d)\n",
3387 int(col), int(this->model_.lp_.num_col_));
3388 return HighsStatus::kError;
3389 }
3390 integrality = static_cast<size_t>(col) < this->model_.lp_.integrality_.size()
3391 ? this->model_.lp_.integrality_[col]
3392 : HighsVarType::kContinuous;
3393 return HighsStatus::kOk;
3394}
3395
3396HighsStatus Highs::getRows(const HighsInt from_row, const HighsInt to_row,
3397 HighsInt& num_row, double* lower, double* upper,

Callers 4

Highs_getColIntegralityFunction · 0.80
repairSolutionMethod · 0.80
highs_getColIntegralityFunction · 0.80
TestHighsModel.cppFile · 0.80

Calls 2

highsLogUserFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected