28 if (
verbose > 0) std::cout <<
"Hello from objective_function_wrapper" << std::endl;
32 *failed = (failed_int != 0);
34 if (
verbose > 0) std::cout <<
" objective_function_wrapper: *failed=" << *failed <<
" at_least_one_success=" <<
at_least_one_success
42 if (verbose > 0) std::cout <<
"Hello from Solver::record_function_evaluation" << std::endl;
44 function_evaluations++;
46 clock_t now = clock();
48 bool new_optimum =
false;
49 if (!failed && (!at_least_one_success || f < best_objective_function)) {
51 at_least_one_success =
true;
52 best_objective_function = f;
53 best_function_evaluation = function_evaluations;
54 memcpy(best_state_vector, x, N_parameters *
sizeof(
double));
58 if (mpi_partition->get_proc0_world()) recorder->record_function_evaluation(function_evaluations, now, x, f);