Skip to content

Commit

Permalink
Merge pull request #75 from Argonne-National-Laboratory/patch/scip-ve…
Browse files Browse the repository at this point in the history
…rsion

SCIP version check
  • Loading branch information
kibaekkim committed Jun 18, 2020
2 parents 24cdbd2 + ee46107 commit 8a659f3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/SolverInterface/OsiScipSolverInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -286,10 +286,10 @@ void OsiScipSolverInterface::setColSolution(const double* colsol) {
SCIP_CALL_ABORT(SCIPsetSolVals(scip_, sol, SCIPgetNOrigVars(scip_), &vars_[0], &solution_[0]));

/** check solution and free if infeasible */
#if SCIP_VERSION_MAJOR >= 6
SCIP_CALL_ABORT(SCIPtrySolFree(scip_, &sol, true, true, true, true, true, &stored));
#else
#if SCIP_VERSION_MAJOR < 6
SCIP_CALL_ABORT(SCIPtrySolFree(scip_, &sol, true, true, true, true, &stored));
#else
SCIP_CALL_ABORT(SCIPtrySolFree(scip_, &sol, true, true, true, true, true, &stored));
#endif
}

Expand Down

0 comments on commit 8a659f3

Please sign in to comment.