A production scheduling algorithm for a distributed mini factories network model