@@ -19,7 +19,7 @@ function format_time(t)
19
19
end
20
20
21
21
function unique_filename (prefix = " result" , suffix = " .txt" )
22
- join ([prefix, strftime (" _%Y%m%d_%H%M%S_$(rand (1 : int (1e6 ))) " , time ()), suffix])
22
+ join ([prefix,Libc . strftime (" _%Y%m%d_%H%M%S_$(rand (1 : int (1e6 ))) " , time ()), suffix])
23
23
end
24
24
25
25
function csvfile (header; fileprefix = " experiment" ,
@@ -39,7 +39,7 @@ function repeated_runs(searchf, problem_set, num_runs = 10; experiment = "exp")
39
39
times = zeros (num_runs, num_problems)
40
40
reason_counts = [Dict {ASCIIString, Int} () for i in 1 : num_problems]
41
41
42
- file_prefix = strftime (" $(experiment) _%Y%m%d_%H%M%S" , time ())
42
+ file_prefix = Libc . strftime (" $(experiment) _%Y%m%d_%H%M%S" , time ())
43
43
44
44
run_csvfile = join ([file_prefix, " _runs.csv" ])
45
45
@@ -87,8 +87,8 @@ function repeated_runs(searchf, problem_set, num_runs = 10; experiment = "exp")
87
87
end
88
88
89
89
# Print to summary csv file
90
- println (summary_csvfh, join ([experiment, strftime (" %Y-%m-%d" , start_time),
91
- strftime (" %T" , start_time), i, " \" $(name (prob)) \" " , dims, params,
90
+ println (summary_csvfh, join ([experiment,Libc . strftime (" %Y-%m-%d" , start_time),
91
+ Libc . strftime (" %T" , start_time), i, " \" $(name (prob)) \" " , dims, params,
92
92
times[i,pi ], fevals[i,pi ], " \" $(reason) \" " , fbests[i,pi ]], " ," ))
93
93
flush (summary_csvfh)
94
94
end
0 commit comments