Changeset 3508


Ignore:
Timestamp:
Jan 19, 2011 11:52:20 PM (9 years ago)
Author:
jwatson
Message:

Adding check for the absence of a canonical expression (e.g., if --skip-canonical-repn is enabled) when writing the LP file. Throws a sane/informative error message now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • coopr.pyomo/trunk/coopr/pyomo/io/cpxlp.py

    r3457 r3508  
    450450
    451451           for key in obj_keys:
     452
     453                if obj[key].repn is None:
     454                   raise RuntimeError, "No canonical representation identified for objective="+obj[key].name
    452455
    453456                if is_constant(obj[key].repn):
Note: See TracChangeset for help on using the changeset viewer.