File tree 1 file changed +4
-0
lines changed
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -63,6 +63,7 @@ def __init__(
63
63
logPath = None ,
64
64
timeMode = "elapsed" ,
65
65
mip_start = False ,
66
+ maxNodes = None ,
66
67
):
67
68
"""
68
69
:param bool mip: if False, assume LP even if integer variables
@@ -83,6 +84,7 @@ def __init__(
83
84
:param float maxSeconds: deprecated for timeLimit
84
85
:param str timeMode: "elapsed": count wall-time to timeLimit; "cpu": count cpu-time
85
86
:param bool mip_start: deprecated for warmStart
87
+ :param int maxNodes: max number of nodes during branching. Stops the solving when reached.
86
88
"""
87
89
88
90
if fracGap is not None :
@@ -124,6 +126,7 @@ def __init__(
124
126
gapAbs = gapAbs ,
125
127
logPath = logPath ,
126
128
timeMode = timeMode ,
129
+ maxNodes = maxNodes ,
127
130
)
128
131
129
132
def copy (self ):
@@ -236,6 +239,7 @@ def getOptions(self):
236
239
strong = "strong {}" ,
237
240
cuts = "gomory on knapsack on probing on" ,
238
241
timeMode = "timeMode {}" ,
242
+ maxNodes = "maxNodes {}" ,
239
243
)
240
244
241
245
return [
You can’t perform that action at this time.
0 commit comments