Skip to content

Commit e053c22

Browse files
committed
change figure format
1 parent e27ba53 commit e053c22

4 files changed

Lines changed: 68 additions & 5 deletions
Binary file not shown.

paper/2025-09-06_ipopt_lbfgs_trunk_tron_cutest_Float64_0_291_time_pp.svg

Lines changed: 54 additions & 0 deletions
Loading

paper/analyze.jl

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ for solver ∈ keys(stats)
4646
println(io, "Solver: $solver")
4747
pretty_stats(io, stats[solver][!, cols], hdr_override = header)
4848
end
49+
close(io)
4950

5051
# Path because of Ipopt on windows issue:
5152
stats[:ipopt].elapsed_time .= stats[:ipopt].real_time
@@ -72,7 +73,7 @@ for solver ∈ keys(stats)
7273
push!(tim, solver => tim_solver)
7374
end
7475
tim_best = ones(nproblems) * Inf # time of the best
75-
for i=1:nproblems
76+
for i = 1:nproblems
7677
for solver keys(stats)
7778
tim_best[i] = min(tim[solver][i], tim_best[i])
7879
end
@@ -85,11 +86,19 @@ end
8586
using Plots
8687
gr()
8788

89+
# Save individual performance profiles
8890
for i = 1:length(costs)
8991
title_name = "" # "Unconstrained solvers on CUTEst w.r.t. $(costnames[i])"
90-
performance_profile(stats, costs[i], title=title_name)
91-
png("$name" * "_" * costnames[i] * "_pp.png")
92+
performance_profile(stats, costs[i], title = title_name)
93+
94+
base = string(name, "_", costnames[i], "_pp")
95+
# Save as SVG and PDF (add "eps" here if you also want EPS)
96+
savefig("$base.svg")
97+
savefig("$base.pdf")
9298
end
9399

100+
# Combined profile_solvers plot
94101
profile_solvers(stats, costs, costnames)
95-
png("$name")
102+
# Save the combined figure as SVG and PDF
103+
savefig("$name.svg")
104+
savefig("$name.pdf")

paper/paper.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ include("benchmark.jl") # run the benchmark and store the result in a JLD2 file
107107
include("analyze_benchmark.jl") # make the figure
108108
```
109109
-->
110-
![Unconstrained solvers on CUTEst with respect to the elapsed time.](2025-09-06_ipopt_lbfgs_trunk_tron_cutest_Float64_0_291_time_pp.png){ width=100% }
110+
![Unconstrained solvers on CUTEst with respect to the elapsed time.](2025-09-06_ipopt_lbfgs_trunk_tron_cutest_Float64_0_291_time_pp.pdf){ width=100% }
111111

112112
# Acknowledgements
113113

0 commit comments

Comments
 (0)