Changeset 1970
- Timestamp:
- Dec 6, 2009 6:16:50 PM (11 years ago)
- Location:
- coopr.plugins/trunk/coopr/plugins
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
coopr.plugins/trunk/coopr/plugins/mip/CPLEX.py
r1965 r1970 317 317 except: 318 318 soln.variable[variable_name].value = variable_value 319 try: 320 soln.variable[variable_name].rc = eval(variable_reduced_cost) 321 except: 322 soln.variable[variable_name].rc = variable_reduced_cost 319 if not variable_reduced_cost is None: 320 try: 321 soln.variable[variable_name].rc = eval(variable_reduced_cost) 322 except: 323 soln.variable[variable_name].rc = variable_reduced_cost 323 324 elif tokens[0] == "constraint": 324 325 constraint_name = None -
coopr.plugins/trunk/coopr/plugins/tests/mip/test1_cplex.txt
r1919 r1970 44 44 Id: 0 45 45 Value: 1 46 X12: 47 Id: 1 48 Rc: 1 49 X13: 50 Id: 2 51 Rc: 2 52 X21: 53 Id: 3 54 Rc: 1 55 X22: 56 Id: 4 57 Rc: 2 46 58 X23: 47 59 Id: 5 48 60 Value: 1 61 X31: 62 Id: 6 63 Rc: 2 49 64 X32: 50 65 Id: 7 51 66 Value: 1 67 X33: 68 Id: 8 69 Rc: 1 52 70 Constraint: 53 71 NODEA1: -
coopr.plugins/trunk/coopr/plugins/tests/mip/test4_cplex.txt
r1919 r1970 41 41 Value: 88.578 42 42 Variable: 43 x0: 44 Id: 0 45 Rc: 1.3 46 x1: 47 Id: 1 48 Rc: 0.07 49 x2: 50 Id: 2 51 Rc: 1.03 52 x3: 53 Id: 3 54 Rc: 1.63 43 55 x4: 44 56 Id: 4 45 57 Value: 46.8666666667 58 x5: 59 Id: 5 60 Rc: 0.1 61 x6: 62 Id: 6 63 Rc: 0.1 64 x7: 65 Id: 7 66 Rc: 1.23 46 67 Constraint: 47 68 cons0:
Note: See TracChangeset
for help on using the changeset viewer.