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

Function debugDualSolutionRightSize

highs/lp_data/HighsSolutionDebug.cpp:257–271  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

255}
256
257HighsDebugStatus 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

Callers 1

Calls 2

isDualSolutionRightSizeFunction · 0.85
highsLogUserFunction · 0.85

Tested by

no test coverage detected