Changeset 5014


Ignore:
Timestamp:
10/01/11 12:17:37 (3 years ago)
Author:
wehart
Message:

Adding a tolerance for IPOPT baseline tests.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • coopr.plugins/trunk/coopr/plugins/tests/mip/test_ipopt.py

    r4988 r5014  
    109109        results = self.asl.solve(currdir+"sisser.pyomo.nl", logfile=currdir+"test_solve_from_nl.log") 
    110110        results.write(filename=currdir+"test_solve_from_nl.txt", times=False, format='json') 
    111         self.assertMatchesJsonBaseline(currdir+"test_solve_from_nl.txt", currdir+"test_solve_from_nl.baseline") 
     111        self.assertMatchesJsonBaseline(currdir+"test_solve_from_nl.txt", currdir+"test_solve_from_nl.baseline", tolerance=1e-7) 
    112112 
    113113    @unittest.skipIf(not ipopt_available, "The 'ipopt' executable is not available") 
     
    116116        results = self.asl.solve(self.sisser_instance) 
    117117        results.write(filename=currdir+"test_solve_from_instance.txt", times=False, format='json') 
    118         self.assertMatchesJsonBaseline(currdir+"test_solve_from_instance.txt", currdir+"test_solve_from_instance.baseline") 
     118        self.assertMatchesJsonBaseline(currdir+"test_solve_from_instance.txt", currdir+"test_solve_from_instance.baseline", tolerance=1e-7) 
    119119        self.sisser_instance.load(results) 
    120120 
Note: See TracChangeset for help on using the changeset viewer.