A hybrid model for optimal control of single nodes in supply chains