]> gitweb.michael.orlitzky.com - dunshire.git/blob - src/dunshire/options.py
03518d812bfb6488b7e382539accd879b8baba73
[dunshire.git] / src / 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 # The absolute tolerance used in all "are these numbers equal" and "is
8 # this number less than (or equal to) that other number" tests.
9 ABS_TOL = 1e-7
10
11 # The default output format for floating point numbers. It has been
12 # chosen to match the ABS_TOL, in the sense that if x != y, then they
13 # would not appear different when printed.
14 FLOAT_FORMAT = '%.7f'
15
16 # The underlying CVXOPT solver can output debug information, and I
17 # guess, so could we. But we don't want to because it's ugly.
18 VERBOSE = False