Changeset 3256


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

Suppression of dual value reporting for constant constraint.

File:
1 edited

Legend:

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

    r3255 r3256  
    255255                        soln.objective['f'].vale=eval(tokens[1])
    256256                    elif (tokens[0] == 'constraint'):
    257                         soln_constraints[tokens[1]].dual = eval(tokens[2])
     257                       if tokens[1] != "c_e_ONE_VAR_CONSTANT":
     258                           soln_constraints[tokens[1]].dual = eval(tokens[2])
    258259                    elif (tokens[0] == 'variable'):
    259260                       if tokens[1] != "ONE_VAR_CONSTANT":
Note: See TracChangeset for help on using the changeset viewer.