Skip to content

Commit 9ebb030

Browse files
committed
Fix typo
1 parent 6c42351 commit 9ebb030

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/pyscipopt/scip.pxi

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2057,14 +2057,14 @@ cdef class Model:
20572057
def freeTransform(self):
20582058
"""Frees all solution process data including presolving and
20592059
transformed problem, only original problem is kept."""
2060-
if self.getStage not in [SCIP_STAGE_INIT,
2060+
if self.getStage() not in [SCIP_STAGE_INIT,
20612061
SCIP_STAGE_PROBLEM,
20622062
SCIP_STAGE_TRANSFORMED,
20632063
SCIP_STAGE_PRESOLVING,
20642064
SCIP_STAGE_PRESOLVED,
20652065
SCIP_STAGE_SOLVING,
20662066
SCIP_STAGE_SOLVED]:
2067-
raise Warning("method cannot be called in stage %i." % self.getStage)
2067+
raise Warning("method cannot be called in stage %i." % self.getStage())
20682068

20692069
self._modelvars = {
20702070
var: value
@@ -6236,7 +6236,7 @@ cdef class Model:
62366236
def transformProb(self):
62376237
"""Transform the problem"""
62386238
if self.getStage() in [SCIP_STAGE_INIT, SCIP_STAGE_TRANSFORMING]:
6239-
raise Warning("method cannot be called in stage %i." % self.getStage)
6239+
raise Warning("method cannot be called in stage %i." % self.getStage())
62406240

62416241
PY_SCIP_CALL(SCIPtransformProb(self._scip))
62426242

@@ -6245,7 +6245,7 @@ cdef class Model:
62456245
if self.getStage() not in [SCIP_STAGE_PROBLEM, SCIP_STAGE_TRANSFORMED,\
62466246
SCIP_STAGE_PRESOLVING, SCIP_STAGE_PRESOLVED, \
62476247
SCIP_STAGE_SOLVED]:
6248-
raise Warning("method cannot be called in stage %i." % self.getStage)
6248+
raise Warning("method cannot be called in stage %i." % self.getStage())
62496249

62506250
PY_SCIP_CALL(SCIPpresolve(self._scip))
62516251
self._bestSol = Solution.create(self._scip, SCIPgetBestSol(self._scip))
@@ -8258,7 +8258,7 @@ cdef class Model:
82588258
min_stage_requirement = SCIP_STAGE_TRANSFORMING
82598259

82608260
if not self.getStage() >= min_stage_requirement:
8261-
raise Warning("method cannot be called in stage %i." % self.getStage)
8261+
raise Warning("method cannot be called in stage %i." % self.getStage())
82628262

82638263
return self.getSolObjVal(self._bestSol, original)
82648264

@@ -9050,14 +9050,14 @@ cdef class Model:
90509050
def freeReoptSolve(self):
90519051
"""Frees all solution process data and prepares for reoptimization."""
90529052

9053-
if self.getStage not in [SCIP_STAGE_INIT,
9053+
if self.getStage() not in [SCIP_STAGE_INIT,
90549054
SCIP_STAGE_PROBLEM,
90559055
SCIP_STAGE_TRANSFORMED,
90569056
SCIP_STAGE_PRESOLVING,
90579057
SCIP_STAGE_PRESOLVED,
90589058
SCIP_STAGE_SOLVING,
90599059
SCIP_STAGE_SOLVED]:
9060-
raise Warning("method cannot be called in stage %i." % self.getStage)
9060+
raise Warning("method cannot be called in stage %i." % self.getStage())
90619061

90629062
PY_SCIP_CALL(SCIPfreeReoptSolve(self._scip))
90639063

0 commit comments

Comments
 (0)