class AbstractArchive extends Archive {

	protected void removeArchiveDominated(List<Individual> candidates) {
		Iterator<Individual> i1;
		Iterator<Individual> i2;
		for (i1 = candidates.iterator(); i1.hasNext();) {
			Objectives o1 = i1.next().getObjectives();
			for (i2 = this.iterator(); i2.hasNext();) {
				Objectives o2 = i2.next().getObjectives();
				if (o2.weaklyDominates(o1)) {
					i1.remove();
					break;
				} else if (o1.dominates(o2)) {
					i2.remove();
				}
			}
		}
	}

}