@@ -46,6 +46,7 @@ for solver ∈ keys(stats)
4646 println (io, " Solver: $solver " )
4747 pretty_stats (io, stats[solver][! , cols], hdr_override = header)
4848end
49+ close (io)
4950
5051# Path because of Ipopt on windows issue:
5152stats[:ipopt ]. elapsed_time .= stats[:ipopt ]. real_time
@@ -72,7 +73,7 @@ for solver ∈ keys(stats)
7273 push! (tim, solver => tim_solver)
7374end
7475tim_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
8586using Plots
8687gr ()
8788
89+ # Save individual performance profiles
8890for 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" )
9298end
9399
100+ # Combined profile_solvers plot
94101profile_solvers (stats, costs, costnames)
95- png (" $name " )
102+ # Save the combined figure as SVG and PDF
103+ savefig (" $name .svg" )
104+ savefig (" $name .pdf" )
0 commit comments