mirror of
https://github.com/ANL-CEEESA/MIPLearn.git
synced 2025-12-06 09:28:51 -06:00
Remove sample.after_mip
This commit is contained in:
@@ -25,12 +25,10 @@ def sample() -> Sample:
|
||||
after_lp=Features(
|
||||
lp_solve=LPSolveStats(),
|
||||
),
|
||||
after_mip=Features(
|
||||
mip_solve=MIPSolveStats(
|
||||
mip_lower_bound=1.0,
|
||||
mip_upper_bound=2.0,
|
||||
)
|
||||
),
|
||||
data={
|
||||
"mip_lower_bound": 1.0,
|
||||
"mip_upper_bound": 2.0,
|
||||
},
|
||||
)
|
||||
sample.after_load.instance.to_list = Mock(return_value=[1.0, 2.0]) # type: ignore
|
||||
sample.after_lp.lp_solve.to_list = Mock(return_value=[3.0]) # type: ignore
|
||||
|
||||
@@ -36,12 +36,10 @@ def sample() -> Sample:
|
||||
after_lp=Features(
|
||||
variables=VariableFeatures(),
|
||||
),
|
||||
after_mip=Features(
|
||||
variables=VariableFeatures(
|
||||
names=["x[0]", "x[1]", "x[2]", "x[3]"],
|
||||
values=[0.0, 1.0, 1.0, 0.0],
|
||||
)
|
||||
),
|
||||
data={
|
||||
"var_names": ["x[0]", "x[1]", "x[2]", "x[3]"],
|
||||
"mip_var_values": [0.0, 1.0, 1.0, 0.0],
|
||||
},
|
||||
)
|
||||
sample.after_load.instance.to_list = Mock(return_value=[5.0]) # type: ignore
|
||||
sample.after_load.variables.to_list = Mock( # type:ignore
|
||||
|
||||
Reference in New Issue
Block a user