A dynamic model and an algorithm for short-term supply chain scheduling in the smart factory industry 4.0 | Synapse