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

Method addColNames

highs/lp_data/HighsLp.cpp:305–315  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

303}
304
305void HighsLp::addColNames(const std::string name, const HighsInt num_new_col) {
306 // Don't add names if there are no columns being added
307 if (this->num_col_ == 0) return;
308 HighsInt col_names_size = this->col_names_.size();
309 if (col_names_size <= 0) return;
310 assert(col_names_size == this->num_col_ + num_new_col);
311 // Handle the addition of user-defined names later
312 assert(name == "");
313 // Blank names for the new columns were added in
314 // appendColsToLpVectors
315}
316
317void HighsLp::addRowNames(const std::string name, const HighsInt num_new_row) {
318 // Don't add names if there are no rows being added

Callers 1

addColsInterfaceMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected