| 42 | } |
| 43 | |
| 44 | HighsDebugStatus 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 | |
| 70 | HighsDebugStatus debugHighsSolution( |
| 71 | const string message, const HighsOptions& options, const HighsModel& model, |
no test coverage detected