mirror of
https://github.com/ANL-CEEESA/MIPLearn.git
synced 2025-12-06 09:28:51 -06:00
Add mip_stats to after-mip features
This commit is contained in:
@@ -171,6 +171,7 @@ class LearningSolver:
|
||||
|
||||
# Solve root LP relaxation
|
||||
# -------------------------------------------------------
|
||||
lp_stats = None
|
||||
if self.solve_lp:
|
||||
logger.debug("Running before_solve_lp callbacks...")
|
||||
for component in self.components.values():
|
||||
@@ -252,6 +253,8 @@ class LearningSolver:
|
||||
# -------------------------------------------------------
|
||||
logger.info("Extracting features (after-mip)...")
|
||||
features = FeaturesExtractor(self.internal_solver).extract(instance)
|
||||
features.lp_solve = lp_stats
|
||||
features.mip_solve = mip_stats
|
||||
instance.features_after_mip.append(features)
|
||||
|
||||
# Add some information to training_sample
|
||||
|
||||
Reference in New Issue
Block a user