Model of scheduling under constraints of energy and unavailability of the machine