Skip to content
This repository has been archived by the owner on Mar 5, 2019. It is now read-only.

Commit

Permalink
Merge pull request #30 from SCIP-Interfaces/update-scip-release-4.0
Browse files Browse the repository at this point in the history
changes to support SCIP 4.0
  • Loading branch information
rschwarz authored Mar 17, 2017
2 parents 71ca62a + 9bf345c commit 12bcb1b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ clean:
@rm -f $(CSIPLIB)
@rm -f $(TESTBIN)

.PHONY: clean-links
clean-links:
@echo "removing symlinks"
@rm -rf $(CSIPLIBDIR)

.PHONY: test
test:
@make $(TESTBIN)
Expand Down
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@ single callback function.

### SCIP and SoPlex

CSIP depends on the
[SCIP Optimization Suite](http://scip.zib.de/#scipoptsuite).
CSIP depends on the [SCIP Optimization Suite](http://scip.zib.de/#scipoptsuite).
Starting with release 0.4.0, **CSIP only supports SCIP Optimization Suite
4.0.0** or newer.

[Download](http://scip.zib.de/download.php?fname=scipoptsuite-3.2.1.tgz)
[Download](http://scip.zib.de/download.php?fname=scipoptsuite-4.0.0.tgz)
and extract the source files, then build the shared library
(containing SCIP and SoPlex) with

Expand Down
6 changes: 3 additions & 3 deletions src/csip.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
#include "scip/scipdefplugins.h"

#define CSIP_MAJOR_VERSION 0
#define CSIP_MINOR_VERSION 3
#define CSIP_PATCH_VERSION 6
#define CSIP_MINOR_VERSION 4
#define CSIP_PATCH_VERSION 0

/* objective type */
typedef int CSIP_OBJTYPE;
Expand Down Expand Up @@ -1473,7 +1473,7 @@ CSIP_RETCODE CSIPheurAddSolution(CSIP_HEURDATA *heurdata, double *values)

SCIP_in_CSIP(SCIPcreateSol(scip, &sol, heurdata->heur));
SCIP_in_CSIP(SCIPsetSolVals(scip, sol, model->nvars, model->vars, values));
SCIP_in_CSIP(SCIPtrySolFree(scip, &sol, FALSE, TRUE, TRUE, TRUE, &stored));
SCIP_in_CSIP(SCIPtrySolFree(scip, &sol, FALSE, FALSE, TRUE, TRUE, TRUE, &stored));

if (stored > 0)
{
Expand Down

0 comments on commit 12bcb1b

Please sign in to comment.