An analytical model for automated packaging lines design