Changeset 480 for experiments/frams/multi-threading/data
- Timestamp:
- 03/25/16 17:44:20 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
experiments/frams/multi-threading/data/scripts/test-mt.script
r462 r480 5 5 function main_args(complexify_geno,timeinterval,intervals) 6 6 { 7 // ExpP arams.mix_period (percentage of the gene pool capacity) is kept at the default value (1000%)7 // ExpProperties.mix_period (percentage of the gene pool capacity) is kept at the default value (1000%) 8 8 9 9 Math.randomize(); 10 10 //Simulator.expdef="standard-mt"; //set multithreaded experiment; this is done by the shell script 11 11 12 ExpP arams.initialgen="XX[|,1:1][N,1:1,2:1][T][G]";12 ExpProperties.initialgen="XX[|,1:1][N,1:1,2:1][T][G]"; 13 13 for(var i=0;i<complexify_geno;i++) //make a big genotype by doubling the simple one above. Note: exponential! 14 ExpP arams.initialgen=ExpParams.initialgen+ExpParams.initialgen;14 ExpProperties.initialgen=ExpProperties.initialgen+ExpProperties.initialgen; 15 15 16 16 Simulator.init(); … … 26 26 if (iter==(intervals-1)) 27 27 Simulator.stop(); 28 Simulator.print("iter=%d, simsteps=%d, evals=%d, migrations=%d, gen_count=%d, avg_numparts=%g, fit_avg=%g, fit_max=%g, time=%f, migration_time=%f, T=%d, C=%d" % iter % Simulator.stepNumber % ExpState.totaltests % ExpState.migrations % stats.gen_count % stats.st_avg_numparts % stats.st_avg_fit % stats.st_max_fit % (Math.time-t0) % ExpState.migration_time % ExpP arams.threads % ExpParams.capacity);28 Simulator.print("iter=%d, simsteps=%d, evals=%d, migrations=%d, gen_count=%d, avg_numparts=%g, fit_avg=%g, fit_max=%g, time=%f, migration_time=%f, T=%d, C=%d" % iter % Simulator.stepNumber % ExpState.totaltests % ExpState.migrations % stats.gen_count % stats.st_avg_numparts % stats.st_avg_fit % stats.st_max_fit % (Math.time-t0) % ExpState.migration_time % ExpProperties.threads % ExpProperties.capacity); 29 29 Simulator.print(GenePools[0].best().genotype); 30 30 }
Note: See TracChangeset
for help on using the changeset viewer.