Skip to content

Commit eac17cb

Browse files
committed
Use inexact algorithm by default.
1 parent ec61605 commit eac17cb

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/init_parameters.jl

Lines changed: 1 addition & 1 deletion
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=true`: Switch to turn on/off duality whenever available (fixed labor and beta <= 1)
23+
- `duality::Bool=true`: Switch to turn on/off duality whenever available (fixed labor and beta <= 1). Note that if `cross_good_congestion == true`, setting `duality = 2` uses an exact algorithm to compute the hessian, which has however not shown good numerical properties in some cases.
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

src/models/solve_allocation_by_duality_cgc.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ function hessian_duality_cgc(
129129
graph = auxdata.graph
130130
nodes = graph.nodes
131131
kappa = auxdata.kappa
132-
inexact_algo = param.duality == 2
132+
inexact_algo = param.duality == true # param.duality == 2 for exact algorithm
133133
beta = param.beta
134134
m1dbeta = -1 / beta
135135
sigma = param.sigma

0 commit comments

Comments
 (0)