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