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

Method clearHighsCallbackOutput

highs/lp_data/HighsCallback.cpp:21–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19#include "util/HighsIntegers.h"
20
21void 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
42void HighsCallback::clearHighsCallbackInput() {
43 size_t num_col = highs != nullptr ? highs->getNumCol() : 0;

Callers 10

clearMethod · 0.95
interruptCheckMethod · 0.80
InterruptCheckMethod · 0.80
callbackGetCutPoolMethod · 0.80
runSetupMethod · 0.80
printDisplayLineMethod · 0.80
checkLimitsMethod · 0.80
saveReportMipSolutionMethod · 0.80
bailoutMethod · 0.80

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected