static void write_oposite_objective_values(FILE *fit_file, const int *fit, const solution_t *solutions, const int *pop_size){ int i; for (i=0; i < *pop_size; i++){ fprintf (fit_file,"%d %f \n", i+1, get_oposite_specific_objective(&solutions[i],fit)); } }
/** Returns the displyed value of an specific objective */ double get_displayed_value_of_objective(const solution_t *sol, const int *index, const int *obj, const type_fitness_energies_t *fitness_energies){ if ( (fitness_energies[*obj] == fit_hbond) || (fitness_energies[*obj] == fit_hydrophilic)|| (fitness_energies[*obj] == fit_hbond_main) || (fitness_energies[*obj] == fit_stride_total) || (fitness_energies[*obj] == fit_stride_helix) || (fitness_energies[*obj] == fit_stride_beta) ) { return get_oposite_specific_objective(&sol[*index],obj); }else{ return get_specific_objective(&sol[*index],obj); } }