mirror of
https://github.com/ANL-CEEESA/MIPLearn.git
synced 2025-12-11 03:48:52 -06:00
Refer to variables by varname instead of (vname, index)
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
# Released under the modified BSD license. See COPYING.md for more details.
|
||||
from typing import Optional
|
||||
|
||||
from overrides import overrides
|
||||
from pyomo import environ as pe
|
||||
from scipy.stats import randint
|
||||
|
||||
@@ -36,8 +37,10 @@ class CplexPyomoSolver(BasePyomoSolver):
|
||||
params=params,
|
||||
)
|
||||
|
||||
@overrides
|
||||
def _get_warm_start_regexp(self):
|
||||
return "MIP start .* with objective ([0-9.e+-]*)\\."
|
||||
|
||||
@overrides
|
||||
def _get_node_count_regexp(self):
|
||||
return "^[ *] *([0-9]+)"
|
||||
|
||||
Reference in New Issue
Block a user