find_max is just an ordinary arg_max function, make it look like one.
These variables should be protected:
int num, num_fit;
Create these new protected variables:
int my_rank, psize, int total_pop, int nb_proc
Initialize them in the constructor, which should pick them up from its parameters. Remove these variables from any other method's parameter list in every optimization class.
Functions that are involved in the accept reject criteria are now moved to aux_functions.cpp. However, there are still functions in optalg that call on some of those functions. I think we should try to untangle them further when we reorganize main.cpp.
int my_rank, psize, int total_pop, int nb_proc are now protected variables in the class.
int num, num_fit are now protected variables.
find_max now have only one input variable: the fit array.
Once #16 is closed, we need to reorganize the optimization classes a bit.
Move all of these functions to an aux_functions.cpp file, they have nothing to do with the class variables:
find_max is just an ordinary arg_max function, make it look like one.
These variables should be protected: int num, num_fit;
Create these new protected variables:
Initialize them in the constructor, which should pick them up from its parameters. Remove these variables from any other method's parameter list in every optimization class.