Optimize Factory Layouts and Minimize Inventory Requirements