Skip to content

Commit

Permalink
Minimize the best of population in DE only if allowed by user
Browse files Browse the repository at this point in the history
  • Loading branch information
Jana Pazurikova committed Jun 16, 2016
1 parent 72c008d commit 016b1b9
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/diffevolution.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,15 @@ void run_diff_evolution(struct subset * const ss) {
calculate_charges(ss, so_far_best);
calculate_statistics(ss, so_far_best);
kd_print_results(so_far_best);
minimize_locally(so_far_best, 1000);
calculate_charges(ss, so_far_best);
calculate_statistics(ss, so_far_best);
kd_print_results(so_far_best);

/* Minimize the best of the population once more */
if (s.polish > 2) {
minimize_locally(so_far_best, 500);
calculate_charges(ss, so_far_best);
calculate_statistics(ss, so_far_best);
kd_print_results(so_far_best);
}

float mutation_constant = s.mutation_constant;
int iters_with_evolution = 0;
int condition = 1;
Expand Down

0 comments on commit 016b1b9

Please sign in to comment.