Skip to content

Commit

Permalink
FIX: function arg types
Browse files Browse the repository at this point in the history
  • Loading branch information
pseudocubic committed Aug 5, 2024
1 parent fd28b7d commit 8bd2767
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/prob/robust_evaluation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function evaluate_partition_optimality(
solver;
save_partial_results::Bool=false,
partial_result_folder::String=".",
time_elapsed::Float64 = missing,
time_elapsed::Union{Missing,Real} = missing,
kwargs...)

_results = Dict{String,Any}()
Expand Down Expand Up @@ -58,6 +58,6 @@ retrieve_load_scenario_optimality(results::Dict)
Returns a Dict of objectives for the different load scenarios considered in the robust partition evaluation.
"""
function retrieve_load_scenario_optimality(results::Dict)::Dict{String,Float64}
return Dict{String,Float64}("$i" => results["$i"]["1"]["objective"] for i in 1:length(results))
function retrieve_load_scenario_optimality(results::Dict{String,<:Any})::Dict{String,Real}
return Dict{String,Real}("$i" => results["$i"]["1"]["objective"] for i in 1:length(results))
end

0 comments on commit 8bd2767

Please sign in to comment.