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

Method update

highs/lp_data/HighsLp.cpp:553–563  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

551}
552
553void HighsNameHash::update(int index, const std::string& old_name,
554 const std::string& new_name) {
555 this->name2index.erase(old_name);
556 auto emplace_result = this->name2index.emplace(new_name, index);
557 if (!emplace_result.second) {
558 // Find the original and mark it as duplicate
559 auto& search = emplace_result.first;
560 assert(int(search->second) < int(this->name2index.size()));
561 search->second = kHashIsDuplicate;
562 }
563}
564
565void HighsNameHash::clear() { this->name2index.clear(); }

Callers 5

passColNameMethod · 0.45
passRowNameMethod · 0.45
computeMethod · 0.45
getIisInterfaceMethod · 0.45
elasticityFilterMethod · 0.45

Calls 2

eraseMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected