@Test
	public void testAcceptableError() {
		halt = new AcceptableError(2,4);
		vanillaSwarm.setHaltingCriteria(halt);
		Vector<Double> opt = vanillaSwarm.optimise(function);
		double result = function.CalculateFitness(opt);
		assertTrue(result >= 2 - 4 && result <= 2 + 4);
	}