Skip to content

Commit f6e48cc

Browse files
committed
module level
1 parent 4311210 commit f6e48cc

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/ilpy/__init__.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,19 @@
1818
from .event_data import GurobiData as GurobiData
1919
from .event_data import SCIPData as SCIPData
2020

21-
Maximize = Sense.Maximize
21+
22+
# make enums available at the module level
23+
Any = Preference.Any
24+
Scip = Preference.Scip
25+
Gurobi = Preference.Gurobi
26+
Continuous = VariableType.Continuous
27+
Integer = VariableType.Integer
28+
Binary = VariableType.Binary
2229
Minimize = Sense.Minimize
30+
Maximize = Sense.Maximize
31+
LessEqual = Relation.LessEqual
32+
Equal = Relation.Equal
33+
GreaterEqual = Relation.GreaterEqual
2334

2435
__all__ = [
2536
"Constraint",

0 commit comments

Comments
 (0)