Skip to content

Commit 37190ad

Browse files
committed
Enable duality by default.
1 parent 484c493 commit 37190ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/init_parameters.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Returns a `param` dict with the model parameters. These are independent of the g
2020
- `m::Vector{Float64}=ones(N)`: Vector of weights Nx1 in the cross congestion cost function
2121
- `annealing::Bool=true`: Switch for the use of annealing at the end of iterations (only if gamma > beta)
2222
- `verbose::Bool=true`: Switch to turn on/off text output (from Ipopt or other optimizers)
23-
- `duality::Bool=false`: Switch to turn on/off duality whenever available
23+
- `duality::Bool=true`: Switch to turn on/off duality whenever available
2424
- `warm_start::Bool=true`: Use the previous solution as a warm start for the next iteration
2525
- `kappa_min::Float64=1e-5`: Minimum value for road capacities K
2626
- `min_iter::Int64=20`: Minimum number of iterations
@@ -42,7 +42,7 @@ param = init_parameters(K = 10, labor_mobility = true)
4242
function init_parameters(; alpha = 0.5, beta = 1, gamma = 1, K = 1, sigma = 5, rho = 2, a = 0.8, N = 1,
4343
labor_mobility = false, cross_good_congestion=false, nu = 2, m = ones(N),
4444
annealing=true,
45-
verbose = true, duality = false, warm_start = true,
45+
verbose = true, duality = true, warm_start = true,
4646
kappa_min = 1e-5, min_iter = 20, max_iter = 200, tol = 1e-5, kwargs...)
4747
param = Dict()
4848

0 commit comments

Comments
 (0)