pub fn nsga2<F>(f: &F, config: NsgaConfig) -> Result<NsgaReport>where F: Fn(&Array1<f64>) -> Vec<f64> + Sync,
Run NSGA-II with crowding-distance survival selection.