@@ -32,9 +32,9 @@ string algo_params_template =
32
32
max.budget = %d, max.iterations = %d, design.size=%d, propose.points=%d, param.set.file='%s'
33
33
""" ;
34
34
35
- app ( file out , file err ) run_model ( file shfile, string params_string, string instance, string run_id)
35
+ app ( void o ) run_model ( file shfile, string params_string, string instance, string run_id)
36
36
{
37
- " bash " shfile params_string emews_root instance FRAMEWORK exp_id run_id benchmark_timeout @ stdout = out @ stderr = err ;
37
+ " bash " shfile params_string emews_root instance FRAMEWORK exp_id run_id benchmark_timeout;
38
38
}
39
39
40
40
app ( file out, file err) run_log_start( file shfile, string ps, string sys_env, string algorithm)
@@ -81,12 +81,9 @@ app (file out, file err) run_log_end(file shfile)
81
81
}
82
82
83
83
( string obj_result) obj( string params, string iter_indiv_id) {
84
- string outdir = " %s/run_%s " % ( turbine_output, iter_indiv_id) ;
85
- file out < " %s/out.txt " % outdir> ;
86
- file err < " %s/err.txt " % outdir> ;
87
-
88
- ( out, err) = run_model ( model_script, params, outdir, iter_indiv_id) =>
89
- string result_file = " %s/result.txt " % outdir;
84
+ string outdir = " %s/run_%s " % ( turbine_output, iter_indiv_id) =>
85
+ run_model ( model_script, params, outdir, iter_indiv_id) =>
86
+ string result_file = " %s/result.txt " % outdir =>
90
87
obj_result = get_results ( result_file) ;
91
88
printf ( obj_result) ;
92
89
}
0 commit comments