Skip to content

Commit

Permalink
Make keyword arguments mandatory instead of giving a default error va…
Browse files Browse the repository at this point in the history
…lue.

This syntax has been allowed for quite some time: JuliaLang/julia#25830
  • Loading branch information
dourouc05 committed Oct 25, 2022
1 parent 3858417 commit ff39698
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/data/solution.jl
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,10 @@ function RoutingSolution(data::RoutingData;
time_solve_ms::Union{Float64, Vector{Float64}, Dict{Int, Float64}}=0.0,
time_intermediate_export_ms::Union{Float64, Vector{Float64}, Dict{Int, Float64}}=Dict{Int, Float64}(),
time_final_export_ms::Float64=0.0,
objectives::Union{Float64, Vector{Float64}, Dict{Int, Float64}}=error("Missing parameter `objectives` when building a `RoutingSolution` object"),
objectives::Union{Float64, Vector{Float64}, Dict{Int, Float64}},
matrices::Union{Dict{Edge{Int}, Float64}, Vector{Dict{Edge{Int}, Float64}}, Dict{Int, Vector{Dict{Edge{Int}, Float64}}}}=Dict{Edge{Int}, Float64}(),
routings::Union{Routing, Vector{Routing}, Dict{Int, Routing}}=error("Missing parameter `routings` when building a `RoutingSolution` object"),
master_model::RoutingModel=error("Missing parameter `master_model` when building a `RoutingSolution` object")
routings::Union{Routing, Vector{Routing}, Dict{Int, Routing}},
master_model::RoutingModel
)
return RoutingSolution(data,
result,
Expand Down

0 comments on commit ff39698

Please sign in to comment.