Time optimal control problem of a class of fractional distributed systems