The spatial representation technique is an efficient method for packing boxes into a container; however, it has a limitation in dealing with constraints. For practical applications, there are however limitations when dealing with constraints. These constraints provide flexibility for the user to decide which boxes should be placed first. After imposing the initial conditions, the optimisation p…