| 239 | } |
| 240 | |
| 241 | HighsDebugStatus debugPrimalSolutionRightSize(const HighsOptions& options, |
| 242 | const HighsLp& lp, |
| 243 | const HighsSolution& solution) { |
| 244 | if (options.highs_debug_level < kHighsDebugLevelCheap) |
| 245 | return HighsDebugStatus::kNotChecked; |
| 246 | HighsDebugStatus return_status = HighsDebugStatus::kOk; |
| 247 | bool right_size = isPrimalSolutionRightSize(lp, solution); |
| 248 | if (!right_size) { |
| 249 | highsLogUser(options.log_options, HighsLogType::kError, |
| 250 | "HiGHS primal solution size error\n"); |
| 251 | assert(right_size); |
| 252 | return_status = HighsDebugStatus::kLogicalError; |
| 253 | } |
| 254 | return return_status; |
| 255 | } |
| 256 | |
| 257 | HighsDebugStatus debugDualSolutionRightSize(const HighsOptions& options, |
| 258 | const HighsLp& lp, |
no test coverage detected