| 255 | } |
| 256 | |
| 257 | HighsDebugStatus debugDualSolutionRightSize(const HighsOptions& options, |
| 258 | const HighsLp& lp, |
| 259 | const HighsSolution& solution) { |
| 260 | if (options.highs_debug_level < kHighsDebugLevelCheap) |
| 261 | return HighsDebugStatus::kNotChecked; |
| 262 | HighsDebugStatus return_status = HighsDebugStatus::kOk; |
| 263 | bool right_size = isDualSolutionRightSize(lp, solution); |
| 264 | if (!right_size) { |
| 265 | highsLogUser(options.log_options, HighsLogType::kError, |
| 266 | "HiGHS dual solution size error\n"); |
| 267 | assert(right_size); |
| 268 | return_status = HighsDebugStatus::kLogicalError; |
| 269 | } |
| 270 | return return_status; |
| 271 | } |
| 272 | |
| 273 | // Methods below are not called externally |
| 274 |
no test coverage detected