Modeling and feedback control for resource allocation and performance analysis in container terminals