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

Function debugHighsSolution

highs/lp_data/HighsSolutionDebug.cpp:44–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44HighsDebugStatus debugHighsSolution(const string message,
45 const HighsOptions& options,
46 const HighsModel& model,
47 const HighsSolution& solution,
48 const HighsBasis& basis) {
49 // Non-trivially expensive analysis of a solution to a model
50 //
51 // Called to report on KKT errors after solving a model when only
52 // the solution (possibly only primal) and (possibly) basis are
53 // known
54 //
55 // Set up a HighsModelStatus and HighsInfo just to
56 // complete the parameter list.By setting
57 // check_model_status_and_highs_info to be false they aren't
58 // used.
59 HighsModelStatus dummy_model_status;
60 HighsInfo dummy_highs_info;
61 // Call resetModelStatusAndSolutionParams to side-step compiler
62 // warning.
63 resetModelStatusAndHighsInfo(dummy_model_status, dummy_highs_info);
64 const bool check_model_status_and_highs_info = false;
65 return debugHighsSolution(
66 message, options, model.lp_, model.hessian_, solution, basis,
67 dummy_model_status, dummy_highs_info, check_model_status_and_highs_info);
68}
69
70HighsDebugStatus debugHighsSolution(
71 const string message, const HighsOptions& options, const HighsModel& model,

Callers 3

calledOptimizeModelMethod · 0.85
debugHighsLpSolutionFunction · 0.85

Calls 12

getKktFailuresFunction · 0.85
getPrimalDualBasisErrorsFunction · 0.85
debugCompareHighsInfoFunction · 0.85
highsLogDevFunction · 0.85
utilModelStatusToStringFunction · 0.85
debugReportHighsSolutionFunction · 0.85
c_strMethod · 0.80
objectiveValueMethod · 0.45
productMethod · 0.45

Tested by

no test coverage detected