Beispiel #1
0
def exp_7_test():
  net = PQCC.load('../networks/exps/exp7/net.json')
  net.run()
  net = PQCC.load('../networks/exps/exp7/net.json')
  net.scale = 1.01
  net.run()
  net = PQCC.load('../networks/exps/exp7/net.json')
  net.scale = 10.0
  net.run()
  net = PQCC.load('../networks/exps/exp7/net.json')
  net.scale = 2.0
  net.run()
Beispiel #2
0
def exp_7_setup():
  net = PQCC.load('../networks/exps/exp5/net_nash.json')
  net.demands = []
  left_demand = CompliantRouteDemand(
    route = net.route_by_names(['source','left','sink']),
    flow = 2./3,
    compliance=.8
  )
  right_demand = CompliantRouteDemand(
    route = net.route_by_names(['source','right','sink']),
    flow = 1./3,
    compliance=.8
  )
  net.demands.append(left_demand)
  net.demands.append(right_demand)
  net.dump('../networks/exps/exp7/net.json')