Changeset 2856


Ignore:
Timestamp:
Jul 27, 2010 12:00:14 PM (9 years ago)
Author:
khunter
Message:

NFC: Use a more pythonic form; easier to read.

File:
1 edited

Legend:

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

    r2855 r2856  
    518518                      if state_string == "B":
    519519                         variable_value = activity
    520                       elif (state_string == "NL") or (state_string == "NS") or (state_string == "NU") or (state_string == "NF"):
     520                      elif state_string in ('NL', 'NS', 'NU', 'NF'):
    521521                         # NF = non-basic free (unbounded) variable
    522522                         # NL = non-basic variable at its lower bound
Note: See TracChangeset for help on using the changeset viewer.