Commit graph

65 commits

Author SHA1 Message Date
Michael Whittaker
30c54f8886 Updated tutorial + search returns sigma now too. 2021-02-05 17:18:41 -08:00
Michael Whittaker
ea4523cc17 Small tweaks to paper examples. 2021-02-05 15:43:31 -08:00
Michael Whittaker
6e6f8103a8 Got rid of old comments. 2021-02-04 22:08:46 -08:00
Michael Whittaker
1348ee4527 In progress of updating README. 2021-02-04 22:08:39 -08:00
Michael Whittaker
49b9c17dd4 Added stuff to publish package.
I followed the tutorial here:
https://packaging.python.org/tutorials/packaging-projects/.
2021-02-04 21:07:44 -08:00
Michael Whittaker
6ab449a555 Renamed quorums to quoracle. 2021-02-04 20:59:10 -08:00
Michael Whittaker
cbf973e082 Removed notes. 2021-02-04 20:54:36 -08:00
Michael Whittaker
07a25f6ca9 Revised paper. 2021-02-04 20:53:42 -08:00
Michael Whittaker
3ac5ebc848 Moved random scripts to examples directory.
I'll clean these up later.
2021-02-04 11:42:05 -08:00
Michael Whittaker
e69ab121e8 Added new test for cap. 2021-02-04 11:41:55 -08:00
Michael Whittaker
0fd8afa87c Updated viz with flag for limits. 2021-02-04 11:41:44 -08:00
Michael Whittaker
8712493c4e Fixed buggy capacity computation.
Need to re-run things to make the numbers are right still.
2021-02-04 11:40:31 -08:00
Michael Whittaker
2cbe95d39d Work on numbers for paper. 2021-02-02 23:03:57 -08:00
Michael Whittaker
64571e3031 Added keyword args to functions.
I was nervous things were getting passed in in the wrong order.
2021-02-02 23:02:56 -08:00
Michael Whittaker
3c340af16f Removed unwanted whitespace. 2021-02-02 23:02:43 -08:00
Michael Whittaker
ef292ba35e Caught bug in f-resilient quorum computation. 2021-02-02 23:01:04 -08:00
Michael Whittaker
bdd4e8925e Added cap limits on graphs.
Surprisingly hard to understand what the cap limit should be.
2021-02-02 23:00:23 -08:00
Michael Whittaker
1616a855f1 Tweaked example plotting scripts. 2021-01-31 22:59:02 -08:00
Michael Whittaker
03b307d5f0 Added quorum system tests. 2021-01-31 21:55:05 -08:00
Michael Whittaker
a981d44d7f Added strategy tests.
Also normalized make_strategy.
2021-01-31 21:24:55 -08:00
Michael Whittaker
4b2ef408d7 Added a way to make a custom strategy. 2021-01-31 17:48:36 -08:00
Michael Whittaker
42e4296b04 Added some TODOs to Expr.
Right now, there is not a nice way to check that two expressions are
equal. It would be fun to implement this, though it may not be super
fast.
2021-01-31 17:47:35 -08:00
Michael Whittaker
32f5bb2125 Added quorum system tests + bug fix.
I was computing uniform strategies wrong. Looks like adding tests cases
was the right move!
2021-01-31 17:47:06 -08:00
Michael Whittaker
6d1b865b67 Added expr tests + bug fix.
I wasn't computing the resilience of a choose quorum system correctly.
I'm happy I decided to add some unit tests!
2021-01-31 17:28:14 -08:00
Michael Whittaker
dced6388af Added search procedure. 2021-01-31 12:31:22 -08:00
Michael Whittaker
a42bccaf0c Tidied up code.
Some of the code was nasty. I cleaned it up a bit. I also started moving
tests into a tests/ directory. You can run python -m unittest to run
them. I still need to add more tests to make sure things are working as
expected.
2021-01-30 18:47:25 -08:00
Michael Whittaker
63b88c38d5 First full stab at multiple objectives. 2021-01-29 18:09:50 -08:00
Michael Whittaker
18f97ac866 Progress on multiple objectives. 2021-01-29 17:46:00 -08:00
Michael Whittaker
31e875f957 Tidied up load dist code. 2021-01-29 00:01:47 -08:00
Michael Whittaker
cb8c5d0e6c Refactoring plotting to separate file. 2021-01-28 23:47:41 -08:00
Michael Whittaker
cf520371d9 Added load distribution plotting.
Still need to add capacity plots.
2021-01-28 22:46:57 -08:00
Michael Whittaker
bcfc4d4098 Added some geometry code.
I'll use this for load vs read fraction plots.
2021-01-28 19:26:36 -08:00
Michael Whittaker
900b69d8d1 Added node load plot script. 2021-01-28 13:37:38 -08:00
Michael Whittaker
6cdd902d4f Added matplotlib to requirements. 2021-01-27 21:39:31 -08:00
Michael Whittaker
5d973428d2 Added util plot + misc cleanup. 2021-01-27 21:22:54 -08:00
Michael Whittaker
5303a004cc Added capacity plotting. 2021-01-27 16:56:21 -08:00
Michael Whittaker
9aac3a7541 Added load plots.
I merged Strategy and ExplicitStrategy for now. I also pruned zero
probability quorums from the strategies. The load plots are cool. I want
to plot capacity plots now, though it's a little tricky.
2021-01-27 16:22:16 -08:00
Michael Whittaker
2a1b56e987 Fixed buggy load computation.
I was incorrectly computing load on a distribution of read fractions. I
have to compute the load for each fr separately and then weight them.
2021-01-27 14:56:00 -08:00
Michael Whittaker
be8d180405 Added temporary installation instructions. 2021-01-27 14:02:53 -08:00
Michael Whittaker
84025eed77 Added requirements.txt. 2021-01-27 14:02:03 -08:00
Heidi Howard
d1e930b914 adding expected output for strategy load with write fraction 2021-01-23 21:01:33 +00:00
Michael Whittaker
c6a5861b6a More README typos. 2021-01-22 16:36:45 -08:00
Michael Whittaker
77a1be57f8 Fixed README typo. 2021-01-22 16:34:26 -08:00
Michael Whittaker
5b6ccba1f3 Removed old unused file. 2021-01-22 16:30:14 -08:00
Michael Whittaker
e9c48d362e Added README. 2021-01-22 16:29:54 -08:00
Michael Whittaker
21deb75622 Added capacity. 2021-01-22 16:29:49 -08:00
Michael Whittaker
5ac22c8df6 Tidied up examples. 2021-01-22 15:15:26 -08:00
Michael Whittaker
68a939b3e6 More efficently(?) check quorum system validity. 2021-01-22 14:51:44 -08:00
Michael Whittaker
7f1a1a3934 Split up code into separate modules. 2021-01-22 14:47:07 -08:00
Michael Whittaker
630effa405 Added duplicate free resilience computation. 2021-01-22 14:20:46 -08:00