Changeset 2284


Ignore:
Timestamp:
Feb 8, 2010 1:42:15 PM (10 years ago)
Author:
jwatson
Message:

Fix to CPLEX plugin relating to suffix processing - working on a laptop, and couldn't test fully!

File:
1 edited

Legend:

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

    r2281 r2284  
    348348        # any others.
    349349        extract_duals = False
     350        extract_slacks = False
    350351        extract_reduced_costs = False
    351352        for suffix in self.suffixes:
    352353           if suffix == "dual":
    353354              extract_duals = True
     355           elif suffix == "slack":
     356              extract_slacks = True             
    354357           elif suffix == "rc":
    355358              extract_reduced_costs = True
     
    386389                   elif (extract_reduced_costs is True) and (field_name == "reducedCost"):
    387390                      variable_reduced_cost = field_value
    388                    elif (extracted_reduced_costs is True) and (field_name == "status"):
     391                   elif (extract_reduced_costs is True) and (field_name == "status"):
    389392                      variable_status = field_value
    390393
Note: See TracChangeset for help on using the changeset viewer.