Conditions | 3 |
Total Lines | 10 |
Code Lines | 9 |
Lines | 10 |
Ratio | 100 % |
Changes | 0 |
1 | # Author: Simon Blanke |
||
20 | View Code Duplication | def _base_test(opt, init_positions): |
|
|
|||
21 | for nth_init in range(len(init_positions)): |
||
22 | pos_new = opt.init_pos(nth_init) |
||
23 | score_new = get_score(pos_new) |
||
24 | opt.evaluate(score_new) |
||
25 | |||
26 | for nth_iter in range(len(init_positions), n_iter): |
||
27 | pos_new = opt.iterate(nth_iter) |
||
28 | score_new = get_score(pos_new) |
||
29 | opt.evaluate(score_new) |
||
30 | |||
49 |