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

Method clearHighsCallbackInput

highs/lp_data/HighsCallback.cpp:42–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42void HighsCallback::clearHighsCallbackInput() {
43 size_t num_col = highs != nullptr ? highs->getNumCol() : 0;
44
45 // make sure buffer size is correct and reset the contents if previously used
46 if (this->data_in.user_has_solution ||
47 num_col != this->data_in.user_solution.size()) {
48 this->data_in.user_solution.assign(num_col, kHighsUndefined);
49 }
50
51 this->data_in.user_interrupt = false;
52 this->data_in.user_has_solution = false;
53}
54
55void HighsCallback::clear() {
56 this->user_callback = nullptr;

Callers 2

clearMethod · 0.95
queryExternalSolutionMethod · 0.80

Calls 2

getNumColMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected