X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=dunshire%2Foptions.py;fp=dunshire%2Foptions.py;h=c6e5c4cb079edfc7149ee8179137fb7f61975e84;hb=bdb596b84a06d0c97e39d42586a51fc36ba44186;hp=0000000000000000000000000000000000000000;hpb=21a2eb9a647a48c0e94d02c60ef8785c4ea35f7b;p=dunshire.git diff --git a/dunshire/options.py b/dunshire/options.py new file mode 100644 index 0000000..c6e5c4c --- /dev/null +++ b/dunshire/options.py @@ -0,0 +1,28 @@ +""" +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. +""" + + +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. +""" + + +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. +""" + + +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. +"""