Skip to content

Commit

Permalink
make OsiClp pass tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jjhforrest committed Feb 24, 2025
1 parent b856533 commit f8f6aea
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/OsiClpSolverInterfaceTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -892,12 +892,17 @@ OsiClpSolverInterfaceUnitTest(const std::string & mpsDir, const std::string & ne
OSIUNITTEST_ASSERT_ERROR(m.primalPivotResult(colIn,direction,colOut,outStatus,theta,NULL) == 0, {}, "clp", "solve model by hand");
if (OsiUnitTest::verbosity >= 1)
printf("out %d, direction %d theta %g\n", colOut,outStatus,theta);
#if 0
if (colIn!=colOut) {
OSIUNITTEST_ASSERT_ERROR(mm->pivot(colIn,colOut,outStatus) >= 0, {}, "clp", "solve model by hand");
} else {
// bound flip (so pivot does not make sense)
OSIUNITTEST_ASSERT_ERROR(mm->primalPivotResult(colIn,direction,colOut,outStatus,theta,NULL) == 0, {}, "clp", "solve model by hand");
}
#else
// always do primalPivotResult as pivot does not unpack incoming
OSIUNITTEST_ASSERT_ERROR(mm->primalPivotResult(colIn,direction,colOut,outStatus,theta,NULL) == 0, {}, "clp", "solve model by hand");
#endif
numberIterations++;
}
delete mm;
Expand Down

0 comments on commit f8f6aea

Please sign in to comment.