src/population.cpp
/**
 *	Return the best cover found during evolution.
 */
Return the best cover found during evolution.
Return the best cover found during evolution .
Cover Population::get_best() const {
	Cover result = pool_[0];
	for (const Cover& c : pool_) {
		if (c.get_fitness() > result.get_fitness()) {
			result = c;
		}
	}
	return result;
}
Cover Population :: get_best ( ) const { Cover result = pool_ [ 0 ] ; for ( const Cover & c : pool_ ) { if ( c . get_fitness ( ) > result . get_fitness ( ) ) { result = c ; } } return result ; }
Return the best cover found during evolution.
Return the best cover found during evolution .