class AbstractArchive extends Archive {

	protected void removeDominatedCandidates(List<Individual> candidates) {
		for (int i = 0; i < candidates.size() - 1; i++) {
			Objectives o1 = candidates.get(i).getObjectives();
			for (int j = i + 1; j < candidates.size(); j++) {
				Objectives o2 = candidates.get(j).getObjectives();
				if (o2.weaklyDominates(o1)) {
					candidates.remove(i);
					i--;
					break;
				} else if (o1.weaklyDominates(o2)) {
					candidates.remove(j);
					j--;
				}
			}
		}
	}

}