示例#1
0
 def test_degrees_of_freedom(self):
     import pyomo.contrib.viewer.report as rpt
     # this should hit everything in report.  It only exists to calculate
     # degrees of freedom for display in the ui
     self.assertEqual(rpt.degrees_of_freedom(self.m),0)
示例#2
0
 def test_degrees_of_freedom(self):
     import pyomo.contrib.viewer.report as rpt
     # this should hit everything in report.  It only exists to calculate
     # degrees of freedom for display in the ui
     self.assertEqual(rpt.degrees_of_freedom(self.m), 0)