File tree Expand file tree Collapse file tree 1 file changed +21
-2
lines changed Expand file tree Collapse file tree 1 file changed +21
-2
lines changed Original file line number Diff line number Diff line change 2
2
Features for testing the presence of :class:`MixedIntegerLinearProgram` backends
3
3
"""
4
4
5
- from . import Feature , FeatureTestResult
5
+ from . import Feature , PythonModule , FeatureTestResult
6
6
from .join_feature import JoinFeature
7
7
8
8
@@ -77,7 +77,26 @@ def __init__(self):
77
77
spkg = 'sage_numerical_backends_coin' )
78
78
79
79
80
+ class CVXOPT (JoinFeature ):
81
+ r"""
82
+ A :class:`~sage.features.Feature` describing whether the :class:`MixedIntegerLinearProgram` backend ``CVXOPT`` is available.
83
+ """
84
+ def __init__ (self ):
85
+ r"""
86
+ TESTS::
87
+
88
+ sage: from sage.features.mip_backends import CVXOPT
89
+ sage: CVXOPT()._is_present() # optional - cvxopt
90
+ FeatureTestResult('cvxopt', True)
91
+ """
92
+ JoinFeature .__init__ (self , 'cvxopt' ,
93
+ [MIPBackend ('CVXOPT' ),
94
+ PythonModule ('cvxopt' )],
95
+ spkg = 'cvxopt' )
96
+
97
+
80
98
def all_features ():
81
99
return [CPLEX (),
82
100
Gurobi (),
83
- COIN ()]
101
+ COIN (),
102
+ CVXOPT ()]
You can’t perform that action at this time.
0 commit comments