mirror of
https://github.com/ANL-CEEESA/MIPLearn.jl.git
synced 2025-12-06 08:28:52 -06:00
Instance: add get_variable_category
This commit is contained in:
@@ -14,6 +14,8 @@ get_instance_features(instance) =
|
||||
get_variable_features(instance, var, index) =
|
||||
error("not implemented: get_variable_features")
|
||||
|
||||
get_variable_category(instance, var, index) = "default"
|
||||
|
||||
find_violated_lazy_constraints(instance, model) = []
|
||||
|
||||
build_lazy_constraint(instance, model, v) = nothing
|
||||
@@ -49,6 +51,9 @@ macro Instance(klass)
|
||||
get_variable_features(self, var, index) =
|
||||
get_variable_features(self.data, var, index)
|
||||
|
||||
get_variable_category(self, var, index) =
|
||||
get_variable_category(self.data, var, index)
|
||||
|
||||
function find_violated_lazy_constraints(self, model)
|
||||
find_violated_lazy_constraints(self.data, model)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user