public void testSwarm(File file){
		System.out.println("shit");
		swarm.setNumberOfParticles(numberOfParticles);
		System.out.println(haltingCriteria.size());
		int counter = 0;
		for(int i = 0; i < haltingCriteria.size(); i++){
			swarm.setHaltingCriteria(haltingCriteria.get(i));
			System.out.println("halt");
			counter++;
			for(int k = 0; k < velocityUpdate.size(); k++){
				setVelocityUpdate(velocityUpdate.get(k));
				System.out.println("vel");
				counter++;
				for(int n = 0; n < neighbourhood.size(); n++){
					System.out.println(n);
					swarm.setNeighbourhood(neighbourhood.get(n));
					for(int m = 0; m < function.size(); m++){
						Function f = function.get(m);
						Vector<Double> resultVector = swarm.optimise(f);
						System.out.println(resultVector.toString());
						double result = f.CalculateFitness(resultVector);
						System.out.println(result);
						System.out.println(swarm.toString());
						manager.writeTofile(swarm.toString(), file);
						System.out.println(resultVector.toString());
						manager.writeTofile("result Vector :" + resultVector.toString(), file);
						System.out.println(result);
						manager.writeTofile("result :" + result, file);
					}
				}
			}
		}
	}