Changeset 2983


Ignore:
Timestamp:
Aug 30, 2010 8:45:02 PM (9 years ago)
Author:
wehart
Message:

Resolving issue with cplex imports.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • coopr.plugins/trunk/coopr/plugins/mip/CPLEXDirect.py

    r2982 r2983  
    3030import time
    3131
    32 import cplex
    33 from cplex.exceptions import CplexError
     32# WEH - I'm not quite sure how we want to disable this logic if the CPLEX
     33#       import fails.  Ideally, the plugins wouldn't get registered.  Perhaps
     34#       we should explicitly disable them???
     35try:
     36    import cplex
     37    from cplex.exceptions import CplexError
     38    cplex_import_available=True
     39except ImportError:
     40    cplex_import_available=False
     41
    3442
    3543class CPLEXDirect(OptSolver):
Note: See TracChangeset for help on using the changeset viewer.