Changeset 9469


Ignore:
Timestamp:
Dec 1, 2014 11:25:33 PM (4 years ago)
Author:
wehart
Message:

Simplifying the output to make it more reproducible.

Location:
pyomo.data/trunk/pyomo/data/samples/scripts/s2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pyomo.data/trunk/pyomo/data/samples/scripts/s2/script.out

    r7477 r9469  
    22['x[hammer]', 'x[screwdriver]', 'x[towel]', 'x[wrench]']
    33  Variable x[hammer]
    4      Id 0
    5      Rc 5.85714285714
    6      Value 1.0
     4    1.0
    75  Variable x[screwdriver]
    8      Id 3
    9      Rc 4.28571428571
    10      Value 1.0
     6    1.0
    117  Variable x[towel]
    12      Id 1
    13      Rc 9.71428571429
    14      Value 1.0
     8    1.0
    159  Variable x[wrench]
    16      Id 2
    17      Rc 0.0
    18      Value 0.285714285714
     10    0.285714285714286
    1911  Constraint W
    2012     Dual 0.0
    2113  Constraint weight
    22      Dual 0.428571428571
     14     Dual 0.428571428571429
    2315
    2416Dual Values
    2517W 0.0
    26 weight 0.428571428571
     18weight 0.428571428571429
  • pyomo.data/trunk/pyomo/data/samples/scripts/s2/script.py

    r9269 r9469  
    2626    for var in sorted(sol.variable.keys()):
    2727        print("  Variable "+str(var))
    28         for key in sorted(sol.variable[var].keys()):
    29             print('     '+str(key)+' '+str(sol.variable[var][key]))
     28        print("    "+str(sol.variable[var]['Value']))
     29        #for key in sorted(sol.variable[var].keys()):
     30            #print('     '+str(key)+' '+str(sol.variable[var][key]))
    3031    #
    3132    for con in sorted(sol.constraint.keys()):
Note: See TracChangeset for help on using the changeset viewer.