| 40 | } |
| 41 | |
| 42 | void 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 | |
| 55 | void HighsCallback::clear() { |
| 56 | this->user_callback = nullptr; |
no test coverage detected