Skip to content

Commit

Permalink
Throughput guarantee gurobi environment
Browse files Browse the repository at this point in the history
  • Loading branch information
jpbogle committed Aug 14, 2019
1 parent e1e3deb commit 13f3789
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/throughput_guarantee.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function getThroughputGuarantees(x_vals,
iterations;
plot=true,
dirname="./data/raw/guarantees/")

env = Gurobi.Env()
k = 20
downscale_capacity = 1
downscale_demand = 1
Expand Down Expand Up @@ -63,7 +63,7 @@ function getThroughputGuarantees(x_vals,
probs = scenario_probs_all[t][i]
demand, flows = readDemand("$(topology)/demand", length(nodes), d, scale=1, downscale=downscale_demand, matrix=true)
T, Tf, g = getTunnels(nodes, links, capacity, flows, k, edge_disjoint=false)
var, cvar, a = TEAVAR(links, capacity, flows, demand, b, k, T, Tf, scenarios, probs)
var, cvar, a = TEAVAR(env, links, capacity, flows, demand, b, k, T, Tf, scenarios, probs)
allowed = demand .* (1-var)
beta_satisfied += sum(allowed)/sum(demand)

Expand Down

0 comments on commit 13f3789

Please sign in to comment.