Hi,
When i'm exploring the HEFTPlanningAgorithm code, i find that the only operation that allows allocating a VM to a task is task.setVmId(chosenVM.getId()); .
And, as mentioned in "findFinishTime" method , a task can be inserted in the middle of a the scheduled tasklist of a specific VM in the "schedule" Map.
I find that this insert is not taken in consideration in the mentionned code : task.setVmId(chosenVM.getId());
Thanks