Skip to content

Commit

Permalink
module level
Browse files Browse the repository at this point in the history
  • Loading branch information
tlambert03 committed Dec 19, 2024
1 parent 4311210 commit f6e48cc
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/ilpy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,19 @@
from .event_data import GurobiData as GurobiData
from .event_data import SCIPData as SCIPData

Maximize = Sense.Maximize

# make enums available at the module level
Any = Preference.Any
Scip = Preference.Scip
Gurobi = Preference.Gurobi
Continuous = VariableType.Continuous
Integer = VariableType.Integer
Binary = VariableType.Binary
Minimize = Sense.Minimize
Maximize = Sense.Maximize
LessEqual = Relation.LessEqual
Equal = Relation.Equal
GreaterEqual = Relation.GreaterEqual

__all__ = [
"Constraint",
Expand Down

0 comments on commit f6e48cc

Please sign in to comment.