MCPcopy Create free account
hub / github.com/PyVRP/PyVRP / addClient

Method addClient

pyvrp/cpp/ProblemData.cpp:216–222  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

214}
215
216void ProblemData::ClientGroup::addClient(size_t client)
217{
218 if (std::find(clients_.begin(), clients_.end(), client) != clients_.end())
219 throw std::invalid_argument("Client already in group.");
220
221 clients_.push_back(client);
222}
223
224void ProblemData::ClientGroup::clear() { clients_.clear(); }
225

Callers

nothing calls this directly

Calls 3

push_backMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected