| 19 | #include "util/HighsIntegers.h" |
| 20 | |
| 21 | void HighsCallback::clearHighsCallbackOutput() { |
| 22 | this->data_out.log_type = HighsLogType::kInfo; |
| 23 | this->data_out.running_time = -1; |
| 24 | this->data_out.simplex_iteration_count = -1; |
| 25 | this->data_out.ipm_iteration_count = -1; |
| 26 | this->data_out.pdlp_iteration_count = -1; |
| 27 | this->data_out.objective_function_value = -kHighsInf; |
| 28 | this->data_out.mip_node_count = -1; |
| 29 | this->data_out.mip_primal_bound = kHighsInf; |
| 30 | this->data_out.mip_dual_bound = -kHighsInf; |
| 31 | this->data_out.mip_gap = -1; |
| 32 | this->data_out.mip_solution.clear(); |
| 33 | this->data_out.cutpool_start.clear(); |
| 34 | this->data_out.cutpool_index.clear(); |
| 35 | this->data_out.cutpool_value.clear(); |
| 36 | this->data_out.cutpool_lower.clear(); |
| 37 | this->data_out.cutpool_upper.clear(); |
| 38 | this->data_out.external_solution_query_origin = |
| 39 | ExternalMipSolutionQueryOrigin::kExternalMipSolutionQueryOriginAfterSetup; |
| 40 | } |
| 41 | |
| 42 | void HighsCallback::clearHighsCallbackInput() { |
| 43 | size_t num_col = highs != nullptr ? highs->getNumCol() : 0; |
no test coverage detected