public long computeCostOf(int[] tuple) {
		for (Task task : tasks) {
			if (task.evaluate(tuple) == 1)
				return 1;
			// task.displayEvaluations();
		}
		for (int i = 0; i < tasks.length; i++) {
			for (int period = tasks[i].getOriginValue(); period < tasks[i].getEndValue(); period++) {
				int heightSum = tasks[i].getHeightValue();
				for (int j = i + 1; j < tasks.length; j++) {
					if (period >= tasks[j].getOriginValue() && period < tasks[j].getEndValue())
						heightSum += tasks[j].getHeightValue();
				}
				if (heightSum > limit) {
					// System.out.println(" i = " + i + " time = " + period);
					return 1;
				}
			}
		}
		return 0;
	}