Changeset 3257


Ignore:
Timestamp:
Nov 19, 2010 3:59:35 PM (10 years ago)
Author:
jwatson
Message:

Fixing diagnostic error message when attempting to solve quadratic programs with GLPK - code for generating message was not syntatically legal.

File:
1 edited

Legend:

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

    r3254 r3257  
    466466                    if not supports_quadratic:
    467467                        msg  = 'Solver unable to handle quadratic '           \
    468                                "expressions.  Objective at issue: '%s%%s'"
    469                         if key is None: msg %= (obj.name, '')
    470                         else:           msg %= (obj.name, '[%s]' % key )
    471 
     468                               "objective expressions.  Objective at issue: %s%s."
     469                        if key is None:
     470                           msg %= (obj.name, " ")
     471                        else:
     472                           msg %= (obj.name, '[%s]' % key )
    472473                        raise ValueError, msg
    473474
Note: See TracChangeset for help on using the changeset viewer.