Changeset 3254


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

Fixed bug in LP writer involving quadratic terms involving two distinct variables. Added two new quadratic examples.

Location:
coopr.pyomo/trunk
Files:
2 added
1 edited

Legend:

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

    r3248 r3254  
    268268
    269269                if len(term_variables) == 2:
    270                    print >>OUTPUT, term_variables[1],"*",term_variables[1],
     270                   print >>OUTPUT, term_variables[0],"*",term_variables[1],
    271271                else:
    272272                   print >>OUTPUT, term_variables[0],"^ 2",
Note: See TracChangeset for help on using the changeset viewer.