From ff396985ea10b13528b2d74ec42b122ebc06ab54 Mon Sep 17 00:00:00 2001 From: Thibaut Cuvelier Date: Wed, 26 Oct 2022 01:52:30 +0200 Subject: [PATCH] Make keyword arguments mandatory instead of giving a default error value. This syntax has been allowed for quite some time: https://github.com/JuliaLang/julia/pull/25830 --- src/data/solution.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/data/solution.jl b/src/data/solution.jl index 4387e77..94634e1 100644 --- a/src/data/solution.jl +++ b/src/data/solution.jl @@ -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,