Refactor ObjectiveComponent

This commit is contained in:
2021-01-26 22:16:46 -06:00
parent 2e845058fc
commit 603902e608
5 changed files with 158 additions and 61 deletions

View File

@@ -117,9 +117,6 @@ class MaxWeightStableSetInstance(Instance):
model.clique_eqs.add(sum(model.x[i] for i in clique) <= 1)
return model
def get_instance_features(self):
return np.ones(0)
def get_variable_features(self, var, index):
neighbor_weights = [0] * 15
neighbor_degrees = [100] * 15