gave gp_cost_function a min and a max