]> gitweb.michael.orlitzky.com - dunshire.git/blobdiff - src/dunshire/options.py
Set ABS_TOL to 1e-6 to fix solution comparisons in the test suite.
[dunshire.git] / src / dunshire / options.py
index 434915423895a2ee2587af27d55df93b267689ad..c6e5c4cb079edfc7149ee8179137fb7f61975e84 100644 (file)
@@ -2,24 +2,27 @@
 A place to collect the various options that "can be passed to the
 underlying engine." Just kidding, they're constants and you can't
 change them. But this makes the user interface real simple.
+"""
 
-.. data:: ABS_TOL
-
-    The absolute tolerance used in all "are these numbers equal" and "is
-    this number less than (or equal to) that other number" tests.
 
-.. data:: FLOAT_FORMAT
+ABS_TOL = 1e-6
+"""
+The absolute tolerance used in all "are these numbers equal" and "is
+this number less than (or equal to) that other number" tests. The CVXOPT
+default is ``1e-7``, and we need a little bit of padding on top of that.
+"""
 
-    The default output format for floating point numbers. It has been
-    chosen to match the ``ABS_TOL``, in the sense that if ``x != y``,
-    then they would not appear different when printed.
 
-.. data:: VERBOSE
+FLOAT_FORMAT = '%.7f'
+"""
+The default output format for floating point numbers. It has been
+chosen to match the ``ABS_TOL``, in the sense that if ``x != y``,
+then they would not appear different when printed.
+"""
 
-    The underlying CVXOPT solver can output debug information, and I
-    guess, so could we. But we don't want to because it's ugly.
 
-"""
-ABS_TOL = 1e-7
-FLOAT_FORMAT = '%.7f'
 VERBOSE = False
+"""
+The underlying CVXOPT solver can output debug information, and I
+guess, so could we. But we don't want to because it's ugly.
+"""