@@ -48,8 +48,6 @@ def __init__(
4848 mip = True ,
4949 msg = True ,
5050 timeLimit = None ,
51- fracGap = None ,
52- maxSeconds = None ,
5351 gapRel = None ,
5452 gapAbs = None ,
5553 presolve = None ,
@@ -62,7 +60,6 @@ def __init__(
6260 threads = None ,
6361 logPath = None ,
6462 timeMode = "elapsed" ,
65- mip_start = False ,
6663 maxNodes = None ,
6764 ):
6865 """
@@ -80,35 +77,10 @@ def __init__(
8077 :param bool presolve: if True, adds presolve on
8178 :param bool cuts: if True, adds gomory on knapsack on probing on
8279 :param bool strong: if True, adds strong
83- :param float fracGap: deprecated for gapRel
84- :param float maxSeconds: deprecated for timeLimit
8580 :param str timeMode: "elapsed": count wall-time to timeLimit; "cpu": count cpu-time
86- :param bool mip_start: deprecated for warmStart
8781 :param int maxNodes: max number of nodes during branching. Stops the solving when reached.
8882 """
8983
90- if fracGap is not None :
91- warnings .warn ("Parameter fracGap is being deprecated for gapRel" )
92- if gapRel is not None :
93- warnings .warn ("Parameter gapRel and fracGap passed, using gapRel" )
94- else :
95- gapRel = fracGap
96- if maxSeconds is not None :
97- warnings .warn ("Parameter maxSeconds is being deprecated for timeLimit" )
98- if timeLimit is not None :
99- warnings .warn (
100- "Parameter timeLimit and maxSeconds passed, using timeLimit"
101- )
102- else :
103- timeLimit = maxSeconds
104- if mip_start :
105- warnings .warn ("Parameter mip_start is being deprecated for warmStart" )
106- if warmStart :
107- warnings .warn (
108- "Parameter mipStart and mip_start passed, using warmStart"
109- )
110- else :
111- warmStart = mip_start
11284 LpSolver_CMD .__init__ (
11385 self ,
11486 gapRel = gapRel ,
@@ -377,8 +349,6 @@ def __init__(
377349 mip = True ,
378350 msg = True ,
379351 timeLimit = None ,
380- fracGap = None ,
381- maxSeconds = None ,
382352 gapRel = None ,
383353 gapAbs = None ,
384354 presolve = None ,
@@ -390,7 +360,6 @@ def __init__(
390360 path = None ,
391361 threads = None ,
392362 logPath = None ,
393- mip_start = False ,
394363 timeMode = "elapsed" ,
395364 ):
396365 if path is not None :
@@ -402,8 +371,6 @@ def __init__(
402371 mip = mip ,
403372 msg = msg ,
404373 timeLimit = timeLimit ,
405- fracGap = fracGap ,
406- maxSeconds = maxSeconds ,
407374 gapRel = gapRel ,
408375 gapAbs = gapAbs ,
409376 presolve = presolve ,
@@ -414,7 +381,6 @@ def __init__(
414381 keepFiles = keepFiles ,
415382 threads = threads ,
416383 logPath = logPath ,
417- mip_start = mip_start ,
418384 timeMode = timeMode ,
419385 )
420386
@@ -478,14 +444,14 @@ def __init__(
478444 rounding = 1 ,
479445 integerPresolve = 1 ,
480446 strong = 5 ,
481- epgap = None ,
482447 * args ,
483448 ** kwargs ,
484449 ):
485450 LpSolver .__init__ (self , * args , ** kwargs )
486451 self .fracGap = None
487- if epgap is not None :
488- self .fracGap = float (epgap )
452+ gapRel = self .optionsDict .get ("gapRel" )
453+ if gapRel is not None :
454+ self .fracGap = float (gapRel )
489455 if self .timeLimit is not None :
490456 self .timeLimit = float (self .timeLimit )
491457 # Todo: these options are not yet implemented
0 commit comments