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

Function debugPrimalSolutionRightSize

highs/lp_data/HighsSolutionDebug.cpp:241–255  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

239}
240
241HighsDebugStatus 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
257HighsDebugStatus debugDualSolutionRightSize(const HighsOptions& options,
258 const HighsLp& lp,

Callers 1

Calls 2

highsLogUserFunction · 0.85

Tested by

no test coverage detected