]> gitweb.michael.orlitzky.com - dunshire.git/blob - dunshire/options.py
2a57e270e6763ba087d361bb0d81e7f57bd0d5d4
[dunshire.git] / dunshire / options.py
1 """
2 A place to collect the various options that "can be passed to the
3 underlying engine." Just kidding, they're constants and you can't
4 change them. But this makes the user interface real simple.
5 """
6
7
8 ABS_TOL = 1e-7
9 """
10 The absolute tolerance used in all "are these numbers equal" and "is
11 this number less than (or equal to) that other number" tests. The CVXOPT
12 default is ``1e-7``, so we use that. Where we need to be more lenient,
13 we'll have to adjust it.
14 """
15
16
17 FLOAT_FORMAT = '%.7f'
18 """
19 The default output format for floating point numbers. It has been
20 chosen to match the ``ABS_TOL``, in the sense that if ``x != y``,
21 then they would not appear different when printed.
22 """
23
24
25 VERBOSE = False
26 """
27 The underlying CVXOPT solver can output debug information, and I
28 guess, so could we. But we don't want to because it's ugly.
29 """