File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,9 @@ def __init__(self, **kwds):
48
48
kwds ['type' ] = 'cuoptdirect'
49
49
super (CUOPTDirect , self ).__init__ (** kwds )
50
50
self ._python_api_exists = True
51
+ # Note: Undefined capabilities default to None
52
+ self ._capabilities .linear = True
53
+ self ._capabilities .integer = True
51
54
52
55
def _apply_solver (self ):
53
56
StaleFlagManager .mark_all_as_stale ()
Original file line number Diff line number Diff line change @@ -426,6 +426,23 @@ def test_solver_cases(*args):
426
426
427
427
logging .disable (logging .NOTSET )
428
428
429
+ #
430
+ # CUOPT
431
+ #
432
+ _cuopt_capabilities = set (
433
+ [
434
+ 'linear' ,
435
+ 'integer' ,
436
+ ]
437
+ )
438
+
439
+ _test_solver_cases ['cuopt' , 'python' ] = initialize (
440
+ name = 'cuopt_direct' ,
441
+ io = 'python' ,
442
+ capabilities = _cuopt_capabilities ,
443
+ import_suffixes = ['rc' ],
444
+ )
445
+
429
446
#
430
447
# Error Checks
431
448
#
You can’t perform that action at this time.
0 commit comments