private double[] calculateMemoryConsumption(Component component, HardwareAlternative hardwareAlternative) {
		double consumption[] = { -1, -1 };
		consumption[0] = component.getUsageMemory().getEnergyPoints();
		for (HardwareComponent memory : hardwareAlternative.getHardwareComponents()) {
			double temp = Utils.consumptionMemory((Memory) memory, component.getUsageMemory())[1];
			if (temp != -1 && (temp < consumption[1] || consumption[1] == -1))
				consumption[1] = temp;
		}
		return consumption;
	}