Udpated paper script.

This commit is contained in:
Michael Whittaker 2021-03-25 20:33:53 -07:00
parent 6bb6eb2914
commit 9e32c2668c

View file

@ -75,7 +75,7 @@ def main() -> None:
print() print()
# Search. # Search.
qs, _ = search( qs, sigma = search(
nodes = [a, b, c, d], nodes = [a, b, c, d],
read_fraction = 1, read_fraction = 1,
optimize = 'latency', optimize = 'latency',
@ -84,12 +84,12 @@ def main() -> None:
# timeout = seconds(3), # timeout = seconds(3),
) )
print(qs) # a + b + c + d print(qs) # a + b + c + d
sigma = qs.strategy( # sigma = qs.strategy(
read_fraction = 1, # read_fraction = 1,
optimize = 'latency', # optimize = 'latency',
load_limit = 1 / 150, # load_limit = 1 / 150,
network_limit = 2, # network_limit = 2,
) # )
print(sigma) # c: 1/3 d: 2/3 print(sigma) # c: 1/3 d: 2/3
print(sigma.capacity(read_fraction=1)) # 150 print(sigma.capacity(read_fraction=1)) # 150
print(sigma.network_load(read_fraction=1)) # 1 print(sigma.network_load(read_fraction=1)) # 1