Skip to content

Commit d7ce949

Browse files
committed
new version
1 parent b2c902f commit d7ce949

File tree

8 files changed

+33
-8
lines changed

8 files changed

+33
-8
lines changed

.github/actions/setup-scipoptsuite-action/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ inputs:
44
version:
55
description: "SCIPOptSuite version to install"
66
required: true
7-
default: "8.0.0"
7+
default: "8.1.0"
88

99
runs:
1010
using: "composite"

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,14 @@
66
### Changed
77
### Removed
88

9+
## v0.3.0
10+
### Update
11+
* update to PySCIPOpt 4.4.0, SCIP 8.1.0 and GCG 3.5.5
12+
913
## v0.2.0
1014
### Added
1115
* method getMastervars in class Model
12-
+ method getOrigvars in class GCGMasterModel
16+
* method getOrigvars in class GCGMasterModel
1317

1418
## v0.1.4
1519
### Changed

INSTALL.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ Note that the latest PyGCGOpt version is usually only compatible with the latest
1919

2020
|SCIP| PySCIPOpt | GCG | PyGCGOpt
2121
|----|----|----|----|
22-
8.0 | 4.0 | 3.5.x | 0.1.x |
22+
8.1 | 4.4 | 3.5.5 | 0.3.0 |
23+
8.0 | 4.0 | 3.5.0 | 0.1.0 |
2324
7.0 | 3.x | - | - |
2425
6.0 | 2.x | - | - |
2526
5.0 | 1.4, 1.3 | - | - |

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
build==0.7.0
22
Cython==0.29.35
33
wheel==0.40.0
4+
pyscipopt==4.4.0

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@
121121
ext_modules=extensions,
122122
install_requires=[
123123
'wheel',
124-
'pyscipopt>=4.0.0'
124+
'pyscipopt>=4.4.0'
125125
],
126126
packages=['pygcgopt'],
127127
package_dir={'pygcgopt': packagedir},

src/pygcgopt/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = '0.2.1'
1+
__version__ = '0.3.0'
22

33
# required for Python 3.8 on Windows
44
import os

src/pygcgopt/gcg.pxd

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,35 @@
1-
from pyscipopt.scip cimport SCIP, SCIP_RETCODE, SCIP_RESULT, SCIP_Bool, SCIP_Real, FILE, SCIP_CONS, SCIP_VAR, SCIP_PARAMSETTING, SCIP_SOL
1+
from pyscipopt.scip cimport SCIP, SCIP_RESULT, SCIP_Bool, SCIP_Real, FILE, SCIP_CONS, SCIP_VAR, SCIP_PARAMSETTING, SCIP_SOL
22

33
from libcpp cimport bool
44
from libcpp.vector cimport vector
55
from libcpp.string cimport string
66
from libcpp.pair cimport pair
77

8-
98
cdef extern from "limits.h":
109
cdef int INT_MAX
1110

1211

1312
cdef extern from "gcg/gcg.h":
13+
ctypedef enum SCIP_RETCODE:
14+
SCIP_OKAY = 1
15+
SCIP_ERROR = 0
16+
SCIP_NOMEMORY = -1
17+
SCIP_READERROR = -2
18+
SCIP_WRITEERROR = -3
19+
SCIP_NOFILE = -4
20+
SCIP_FILECREATEERROR = -5
21+
SCIP_LPERROR = -6
22+
SCIP_NOPROBLEM = -7
23+
SCIP_INVALIDCALL = -8
24+
SCIP_INVALIDDATA = -9
25+
SCIP_INVALIDRESULT = -10
26+
SCIP_PLUGINNOTFOUND = -11
27+
SCIP_PARAMETERUNKNOWN = -12
28+
SCIP_PARAMETERWRONGTYPE = -13
29+
SCIP_PARAMETERWRONGVAL = -14
30+
SCIP_KEYALREADYEXISTING = -15
31+
SCIP_MAXDEPTHLEVEL = -16
32+
1433
void GCGprintVersion(SCIP* scip, FILE* file)
1534
SCIP_RETCODE GCGprintStatistics(SCIP* scip, FILE* file)
1635
SCIP_RETCODE GCGtransformProb(SCIP* scip)

src/pygcgopt/gcg.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from pyscipopt.scip import PY_SCIP_CALL
44
from pyscipopt.scip cimport Model as SCIPModel
5-
from pyscipopt.scip cimport Variable, Constraint, Solution, SCIP_RESULT, SCIP_DIDNOTRUN, SCIPgetStage, SCIP_STAGE, SCIP_STAGE_PRESOLVED, SCIP_OKAY, SCIPvarSetData, SCIPgetBestSol
5+
from pyscipopt.scip cimport Variable, Constraint, Solution, SCIP_RESULT, SCIP_DIDNOTRUN, SCIPgetStage, SCIP_STAGE, SCIP_STAGE_PRESOLVED, SCIPvarSetData, SCIPgetBestSol
66

77
from cpython cimport Py_INCREF, Py_DECREF
88

0 commit comments

Comments
 (0)