Skip to content

Commit 5ceac82

Browse files
Update stubs for latest changes (#1140)
1 parent fb6db8c commit 5ceac82

File tree

1 file changed

+70
-8
lines changed

1 file changed

+70
-8
lines changed

src/pyscipopt/scip.pyi

Lines changed: 70 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
from dataclasses import dataclass
2+
from typing import ClassVar
3+
24
import numpy
35
from _typeshed import Incomplete
4-
from typing import ClassVar
56

67
CONST: Term
78
EventNames: dict
@@ -11,7 +12,10 @@ Operator: Op
1112
PATCH: int
1213
PY_SCIP_CALL: Incomplete
1314
StageNames: dict
14-
__test__: dict
15+
_SCIP_BOUNDTYPE_TO_STRING: dict
16+
_expr_richcmp: Incomplete
17+
_is_number: Incomplete
18+
_matrixexpr_richcmp: Incomplete
1519
buildGenExprObj: Incomplete
1620
cos: Incomplete
1721
exp: Incomplete
@@ -99,6 +103,10 @@ class Column:
99103
def __lt__(self, other: object) -> bool: ...
100104
def __ne__(self, other: object) -> bool: ...
101105

106+
class ColumnExact:
107+
data: Incomplete
108+
def __init__(self, *args, **kwargs) -> None: ...
109+
102110
class Conshdlr:
103111
model: Incomplete
104112
name: Incomplete
@@ -187,6 +195,7 @@ class DomainChanges:
187195
class Event:
188196
data: Incomplete
189197
def __init__(self, *args, **kwargs) -> None: ...
198+
def _getEventNames(self, *args, **kwargs): ...
190199
def getName(self, *args, **kwargs): ...
191200
def getNewBound(self, *args, **kwargs): ...
192201
def getNode(self, *args, **kwargs): ...
@@ -244,6 +253,8 @@ class Expr:
244253
def __truediv__(self, other): ...
245254

246255
class ExprCons:
256+
_lhs: Incomplete
257+
_rhs: Incomplete
247258
expr: Incomplete
248259
def __init__(self, *args, **kwargs) -> None: ...
249260
def normalize(self, *args, **kwargs): ...
@@ -256,6 +267,7 @@ class ExprCons:
256267
def __ne__(self, other: object) -> bool: ...
257268

258269
class GenExpr:
270+
_op: Incomplete
259271
children: Incomplete
260272
def __init__(self, *args, **kwargs) -> None: ...
261273
def degree(self, *args, **kwargs): ...
@@ -290,6 +302,23 @@ class Heur:
290302
def heurinit(self, *args, **kwargs): ...
291303
def heurinitsol(self, *args, **kwargs): ...
292304

305+
class IIS:
306+
def __init__(self, *args, **kwargs) -> None: ...
307+
def getNNodes(self, *args, **kwargs): ...
308+
def getSubscip(self, *args, **kwargs): ...
309+
def getTime(self, *args, **kwargs): ...
310+
def greedyMakeIrreducible(self, *args, **kwargs): ...
311+
def isSubscipInfeasible(self, *args, **kwargs): ...
312+
def isSubscipIrreducible(self, *args, **kwargs): ...
313+
def setSubscipInfeasible(self, *args, **kwargs): ...
314+
def setSubscipIrreducible(self, *args, **kwargs): ...
315+
316+
class IISfinder:
317+
iis: Incomplete
318+
def __init__(self, *args, **kwargs) -> None: ...
319+
def iisfinderexec(self, *args, **kwargs): ...
320+
def iisfinderfree(self, *args, **kwargs): ...
321+
293322
class LP:
294323
name: Incomplete
295324
def __init__(self, *args, **kwargs) -> None: ...
@@ -387,8 +416,14 @@ class MatrixVariable(MatrixExpr):
387416
def vtype(self, *args, **kwargs): ...
388417

389418
class Model:
419+
_freescip: Incomplete
390420
data: Incomplete
391421
def __init__(self, *args, **kwargs) -> None: ...
422+
def _createConsGenNonlinear(self, *args, **kwargs): ...
423+
def _createConsLinear(self, *args, **kwargs): ...
424+
def _createConsNonlinear(self, *args, **kwargs): ...
425+
def _createConsQuadratic(self, *args, **kwargs): ...
426+
def _getStageNames(self, *args, **kwargs): ...
392427
def activateBenders(self, *args, **kwargs): ...
393428
def addBendersSubproblem(self, *args, **kwargs): ...
394429
def addCoefKnapsack(self, *args, **kwargs): ...
@@ -417,6 +452,7 @@ class Model:
417452
def addPoolCut(self, *args, **kwargs): ...
418453
def addPyCons(self, *args, **kwargs): ...
419454
def addRowDive(self, *args, **kwargs): ...
455+
def addRowExact(self, *args, **kwargs): ...
420456
def addSol(self, *args, **kwargs): ...
421457
def addVar(self, *args, **kwargs): ...
422458
def addVarLocks(self, *args, **kwargs): ...
@@ -425,11 +461,13 @@ class Model:
425461
def addVarSOS2(self, *args, **kwargs): ...
426462
def addVarToRow(self, *args, **kwargs): ...
427463
def allColsInLP(self, *args, **kwargs): ...
464+
def allowNegSlackExact(self, *args, **kwargs): ...
428465
def appendVarSOS1(self, *args, **kwargs): ...
429466
def appendVarSOS2(self, *args, **kwargs): ...
430467
def applyCutsProbing(self, *args, **kwargs): ...
431468
def attachEventHandlerCallback(self, *args, **kwargs): ...
432469
def backtrackProbing(self, *args, **kwargs): ...
470+
def branchLPExact(self, *args, **kwargs): ...
433471
def branchVar(self, *args, **kwargs): ...
434472
def branchVarVal(self, *args, **kwargs): ...
435473
def cacheRowExtensions(self, *args, **kwargs): ...
@@ -441,8 +479,6 @@ class Model:
441479
def checkBendersSubproblemOptimality(self, *args, **kwargs): ...
442480
def checkQuadraticNonlinear(self, *args, **kwargs): ...
443481
def checkSol(self, *args, **kwargs): ...
444-
def chgAndConsCheckFlagWhenUpgr(self, *args, **kwargs): ...
445-
def chgAndConsRemovableFlagWhenUpgr(self, *args, **kwargs): ...
446482
def chgCapacityKnapsack(self, *args, **kwargs): ...
447483
def chgCoefLinear(self, *args, **kwargs): ...
448484
def chgLhs(self, *args, **kwargs): ...
@@ -459,8 +495,6 @@ class Model:
459495
def chgVarObjDive(self, *args, **kwargs): ...
460496
def chgVarObjProbing(self, *args, **kwargs): ...
461497
def chgVarType(self, *args, **kwargs): ...
462-
def markDoNotAggrVar(self, *args, **kwargs): ...
463-
def markDoNotMultaggrVar(self, *args, **kwargs): ...
464498
def chgVarUb(self, *args, **kwargs): ...
465499
def chgVarUbDive(self, *args, **kwargs): ...
466500
def chgVarUbGlobal(self, *args, **kwargs): ...
@@ -491,6 +525,7 @@ class Model:
491525
def dropRowEvent(self, *args, **kwargs): ...
492526
def dropVarEvent(self, *args, **kwargs): ...
493527
def enableDebugSol(self, *args, **kwargs): ...
528+
def enableExactSolving(self, *args, **kwargs): ...
494529
def enableReoptimization(self, *args, **kwargs): ...
495530
def endDive(self, *args, **kwargs): ...
496531
def endProbing(self, *args, **kwargs): ...
@@ -512,6 +547,7 @@ class Model:
512547
def freeTransform(self, *args, **kwargs): ...
513548
@staticmethod
514549
def from_ptr(*args, **kwargs): ...
550+
def generateIIS(self, *args, **kwargs): ...
515551
def getActivity(self, *args, **kwargs): ...
516552
def getBendersAuxiliaryVar(self, *args, **kwargs): ...
517553
def getBendersSubproblem(self, *args, **kwargs): ...
@@ -547,6 +583,7 @@ class Model:
547583
def getDualsolLinear(self, *args, **kwargs): ...
548584
def getGap(self, *args, **kwargs): ...
549585
def getHeurTiming(self, *args, **kwargs): ...
586+
def getIIS(self, *args, **kwargs): ...
550587
def getLPBInvARow(self, *args, **kwargs): ...
551588
def getLPBInvRow(self, *args, **kwargs): ...
552589
def getLPBasisInd(self, *args, **kwargs): ...
@@ -670,6 +707,7 @@ class Model:
670707
def includeDefaultPlugins(self, *args, **kwargs): ...
671708
def includeEventhdlr(self, *args, **kwargs): ...
672709
def includeHeur(self, *args, **kwargs): ...
710+
def includeIISfinder(self, *args, **kwargs): ...
673711
def includeNodesel(self, *args, **kwargs): ...
674712
def includePresol(self, *args, **kwargs): ...
675713
def includePricer(self, *args, **kwargs): ...
@@ -683,6 +721,7 @@ class Model:
683721
def isAndConsSorted(self, *args, **kwargs): ...
684722
def isCutEfficacious(self, *args, **kwargs): ...
685723
def isEQ(self, *args, **kwargs): ...
724+
def isExact(self, *args, **kwargs): ...
686725
def isFeasEQ(self, *args, **kwargs): ...
687726
def isFeasGE(self, *args, **kwargs): ...
688727
def isFeasGT(self, *args, **kwargs): ...
@@ -705,6 +744,8 @@ class Model:
705744
def isPositive(self, *args, **kwargs): ...
706745
def isZero(self, *args, **kwargs): ...
707746
def lpiGetIterations(self, *args, **kwargs): ...
747+
def markDoNotAggrVar(self, *args, **kwargs): ...
748+
def markDoNotMultaggrVar(self, *args, **kwargs): ...
708749
def newProbingNode(self, *args, **kwargs): ...
709750
def optimize(self, *args, **kwargs): ...
710751
def optimizeNogil(self, *args, **kwargs): ...
@@ -717,6 +758,7 @@ class Model:
717758
def printRow(self, *args, **kwargs): ...
718759
def printSol(self, *args, **kwargs): ...
719760
def printStatistics(self, *args, **kwargs): ...
761+
def printStatisticsJson(self, *args, **kwargs): ...
720762
def printVersion(self, *args, **kwargs): ...
721763
def propagateProbing(self, *args, **kwargs): ...
722764
def readParams(self, *args, **kwargs): ...
@@ -789,6 +831,7 @@ class Model:
789831
def writeProblem(self, *args, **kwargs): ...
790832
def writeSol(self, *args, **kwargs): ...
791833
def writeStatistics(self, *args, **kwargs): ...
834+
def writeStatisticsJson(self, *args, **kwargs): ...
792835
def writeTransSol(self, *args, **kwargs): ...
793836
def __eq__(self, other: object) -> bool: ...
794837
def __ge__(self, other: object) -> bool: ...
@@ -889,7 +932,9 @@ class PY_SCIP_EVENTTYPE:
889932
BOUNDTIGHTENED: ClassVar[int] = ...
890933
DISABLED: ClassVar[int] = ...
891934
DOMCHANGED: ClassVar[int] = ...
935+
DUALBOUNDIMPROVED: ClassVar[int] = ...
892936
FIRSTLPSOLVED: ClassVar[int] = ...
937+
GAPUPDATED: ClassVar[int] = ...
893938
GBDCHANGED: ClassVar[int] = ...
894939
GHOLEADDED: ClassVar[int] = ...
895940
GHOLECHANGED: ClassVar[int] = ...
@@ -953,6 +998,12 @@ class PY_SCIP_HEURTIMING:
953998
DURINGPRICINGLOOP: ClassVar[int] = ...
954999
def __init__(self, *args, **kwargs) -> None: ...
9551000

1001+
class PY_SCIP_IMPLINTTYPE:
1002+
NONE: ClassVar[int] = ...
1003+
STRONG: ClassVar[int] = ...
1004+
WEAK: ClassVar[int] = ...
1005+
def __init__(self, *args, **kwargs) -> None: ...
1006+
9561007
class PY_SCIP_LOCKTYPE:
9571008
CONFLICT: ClassVar[int] = ...
9581009
MODEL: ClassVar[int] = ...
@@ -1211,6 +1262,10 @@ class Row:
12111262
def __lt__(self, other: object) -> bool: ...
12121263
def __ne__(self, other: object) -> bool: ...
12131264

1265+
class RowExact:
1266+
data: Incomplete
1267+
def __init__(self, *args, **kwargs) -> None: ...
1268+
12141269
class Sepa:
12151270
model: Incomplete
12161271
name: Incomplete
@@ -1226,6 +1281,8 @@ class Sepa:
12261281
class Solution:
12271282
data: Incomplete
12281283
def __init__(self, *args, **kwargs) -> None: ...
1284+
def _checkStage(self, *args, **kwargs): ...
1285+
def _evaluate(self, *args, **kwargs): ...
12291286
def getOrigin(self, *args, **kwargs): ...
12301287
def retransform(self, *args, **kwargs): ...
12311288
def translate(self, *args, **kwargs): ...
@@ -1309,6 +1366,7 @@ class Variable(Expr):
13091366
def __init__(self, *args, **kwargs) -> None: ...
13101367
def getAvgSol(self, *args, **kwargs): ...
13111368
def getCol(self, *args, **kwargs): ...
1369+
def getImplType(self, *args, **kwargs): ...
13121370
def getIndex(self, *args, **kwargs): ...
13131371
def getLPSol(self, *args, **kwargs): ...
13141372
def getLbGlobal(self, *args, **kwargs): ...
@@ -1321,19 +1379,23 @@ class Variable(Expr):
13211379
def getNLocksUp(self, *args, **kwargs): ...
13221380
def getNLocksUpType(self, *args, **kwargs): ...
13231381
def getObj(self, *args, **kwargs): ...
1382+
def getStatus(self, *args, **kwargs): ...
13241383
def getUbGlobal(self, *args, **kwargs): ...
13251384
def getUbLocal(self, *args, **kwargs): ...
13261385
def getUbOriginal(self, *args, **kwargs): ...
1386+
def isActive(self, *args, **kwargs): ...
1387+
def isBinary(self, *args, **kwargs): ...
13271388
def isDeletable(self, *args, **kwargs): ...
1389+
def isImpliedIntegral(self, *args, **kwargs): ...
13281390
def isInLP(self, *args, **kwargs): ...
1391+
def isIntegral(self, *args, **kwargs): ...
1392+
def isNonImpliedIntegral(self, *args, **kwargs): ...
13291393
def isOriginal(self, *args, **kwargs): ...
1330-
def isActive(self, *args, **kwargs): ...
13311394
def isRelaxationOnly(self, *args, **kwargs): ...
13321395
def markRelaxationOnly(self, *args, **kwargs): ...
13331396
def ptr(self, *args, **kwargs): ...
13341397
def varMayRound(self, *args, **kwargs): ...
13351398
def vtype(self, *args, **kwargs): ...
1336-
def getStatus(self, *args, **kwargs): ...
13371399

13381400
class _VarArray:
13391401
def __init__(self, *args, **kwargs) -> None: ...

0 commit comments

Comments
 (0)