Container terminals play a crucial role in exporting and importing goods, where export and import containers are loaded and unloaded. Containers are usually loaded and unloaded with a dock crane. A quay crane is assigned at a container port in advance, considering a ship's arrival schedule. However, allocating a quay crane is difficult owing to the limited number of quay cranes available and the need to consider the shipping timetable. In this study, by considering the schedule of each ship arriving from a container terminal, the number of unloaded containers for each ship, and the limited number of quay cranes, we conduct quay crane assignment through a simulation model to increase the productivity of a container terminal. Alongside, it is evident that artificial intelligence (AI) and machine learning (ML) are necessary for port management in many ways, from berth scheduling to quay allocation. In this study, we also investigate the applicability of ML and metaheuristic approaches in quay allocation problems and explore further possibilities. In this study, we also highlight the sensor-based automation of quay allocation using Internet of Things (IoT) technologies for future research in the domain of port and terminal management.