Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add more comments in analysis script #717

Merged
merged 1 commit into from
May 23, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion benchmarks/stepper/analyze.jl
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,11 @@ end

function make_agg_tables(all_df)
conv = all_df[!, :conv]
# values to replace unconverged instances for the "all" group
max_time = maximum(all_df[!, :solve_time][conv])
max_iter = maximum(all_df[!, :iters][conv])

# collect aggregated summary statistics
df_agg = combine(groupby(all_df, :enhancement),
[:solve_time, :conv] => ((x, y) ->
shifted_geomean(x, y, shift = time_shift)) => :time_geomean_thisconv,
Expand Down Expand Up @@ -227,6 +229,8 @@ function make_agg_tables(all_df)
findfirst(isequal(x), lowercase.(enhancements)))))
CSV.write(joinpath(stats_dir, "agg.csv"), df_agg)

# prepare latex table

# combine feasible and infeasible statuses
transform!(df_agg, [:optimal, :priminfeas, :dualinfeas] =>
ByRow((x...) -> sum(x)) => :converged)
Expand Down Expand Up @@ -275,7 +279,7 @@ function make_subtime_tables(all_df)
max_getdir = maximum(all_df[!, :time_getdir][conv])
max_search = maximum(all_df[!, :time_search][conv])

# get maximum values to use as caps for the "all" subset
# get values to use as caps for the "all" subset (ignore NaNs from 0 iterations)
skipnan(x) = (isnan(x) ? 0 : x)
max_upsys_iter = maximum(skipnan, all_df[!, :time_upsys_piter][conv])
max_uprhs_iter = maximum(skipnan, all_df[!, :time_uprhs_piter][conv])
Expand Down Expand Up @@ -325,6 +329,8 @@ function make_subtime_tables(all_df)
return subtime_df
end

# prepare latex table

sep = " & "
for s in sets
if s == :_thisconv
Expand Down