Next Article in Journal
Impact of High-Intensity Interval Training on Different Slopes on Aerobic Performance: A Randomized Controlled Trial
Previous Article in Journal
VULREM: Fine-Tuned BERT-Based Source-Code Potential Vulnerability Scanning System to Mitigate Attacks in Web Applications
Previous Article in Special Issue
Recognition of Intergranular Corrosion in AISI 304 Stainless Steel by Integrating a Multilayer Perceptron Artificial Neural Network and Metallographic Image Processing
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Sequential Memetic Algorithm Optimization for Allocation Planning in Hostelry Establishments

by
Rubén Ferrero-Guillén
,
Alberto Martínez-Gutiérrez
*,
Rubén Álvarez
and
Javier Díez-González
Department of Mechanical, Computer and Aerospace Engineering, Universidad de León, 24004 León, Spain
*
Author to whom correspondence should be addressed.
Appl. Sci. 2024, 14(21), 9698; https://doi.org/10.3390/app14219698
Submission received: 24 September 2024 / Revised: 17 October 2024 / Accepted: 22 October 2024 / Published: 23 October 2024

Abstract

:
Hostelry establishments face the challenge of devising a table and chair allocation for accommodating their customers on a daily basis. This problem scales significantly with the introduction of constraints, such as scenario obstacles or the requirement of a minimum distance separation. The TLP (Table Location Problem) and the CLP (Chair Location Problem) are NP-Hard complexity problems that aim to attain the optimal table and chair distribution for certain applications. Existing approaches to this problem fail to address both the TLP and CLP simultaneously, thus resulting in suboptimal solutions achieved by imposing optimization constraints. Therefore, in this paper, a sequential optimization methodology based on a GBLS MA (Gradient-Based Local Search Memetic Algorithm) optimizations is proposed for optimizing the table and chair disposition simultaneously while also considering scenario and distancing restrictions. The proposed methodology is then implemented into a realistic establishment, where different optimization strategies within the CLP are compared. Results prove the viability and flexibility of the proposed sequential optimization for complex hostelry scenarios.

1. Introduction

Organizing and planning a table and chair disposition for accommodating customers is a significant challenge for many hostelry establishments. Multipurpose establishments with a high capacity may redraft their table disposition multiple times a day to optimize the capacity of the establishment [1].
Furthermore, the complexity of devising certain table and chair dispositions scales drastically when incrementing the number of customers. Furthermore, the addition of constraints in the form of obstacles and irregular geometries makes solving the problem even more difficult [2].
The enforcement of a minimum interpersonal separation for reducing the contagion probability due to the COVID-19 pandemic [3] has significantly impacted hostelry establishments [4]. The implementation of these restrictions entails a drastic reduction in the overall customer capacity [5], thus escalating the importance of an optimized table and chair disposition for increasing the received income.
One common way to arrange tables in order to optimize the establishment capacity is to select an efficient distribution pattern and scale it to the whole scenario. Triangular and square patterns of sides equal to the minimum interpersonal distance have been widely deployed. These geometric patterns serve as a feasible solution due to their manageable deployment and escalation while also keeping a certain organized distribution [6].
However, these pattern distributions are not necessarily the best solution for every scenario of application. While the triangular shape achieves the highest distancing efficiency, each vertex being separated at the same interpersonal distance among all other vertices, the resulting efficiency of a scaled triangular distribution may be compromised by additional constraints. Unfavorable form factors of the available space, irregular geometries, as well as the presence of obstacles such as columns, furniture, or decorations may limit the utilization of the available space, thus reducing the number of allocated chairs or the actual distancing [7].
Therefore, the search for the optimal chair distribution should not be biased by imposing any given geometrical pattern. However, without the constraints of a regular geometric pattern, the social distancing problem escalates in complexity. The optimal position of each table or chair depends not only on the scenario properties and obstacles, but also on the position of all adjacent tables or chairs. Consequently, although it is possible to derive the optimal position of a given chair, this improvement is based on the premise of a previously fixed table distribution. Therefore, in order to achieve the optimal table distribution, we must analyze the different combinations of table locations.
The resulting combinatorial problem raises the number of possible solutions substantially, especially when facing a significant number of tables or chairs to allocate in an intensely discretized space.
Problems where multiple elements are to be located over a given scenario to satisfy certain conditions are quite common throughout the literature. Optimizing a wind farm layout [8], finding the optimal sensor distribution for localization architectures [9], efficiently allocating markets for product diversity [10], or distributing facilities over a country [11] are examples of similar combinatorial problems.
These optimization problems are built upon the Maximum Diversity Problem (MDP) foundation, which aims to distribute a series of elements over a given scenario while maximizing the diversity among elements [12]. The base MDP has been categorized as NP-Hard [13] due to the number of possible solutions. NP-Hard problems are typically considered challenging to solve efficiently, as there is no guarantee of finding a solution quickly as the problem size increases. Thus, the previously defined problems, which include additional interactions of other elements present in the optimization, further challenge the convergence to the optimal solution. Such is the case of the chair or table distribution optimization problem.
Due to the high complexity of these problems, a direct approach that analyzes each possible solution is unfeasible, so multiple metaheuristic techniques have been implemented for these optimization problems [14].
In our previous works, a Genetic Algorithm (GA) was proposed for optimizing the student distribution in schools during the COVID-19 pandemic [15]. This optimization problem, described as the Table Location Problem (TLP), seeks to obtain the optimal distribution of a given number of tables over a specific scenario that guarantees the minimum distance separation and maximizes the mean interpersonal distance while also taking into consideration the scenario properties. The algorithm located a given number of tables within the scenario limits in an optimized distribution for the scenario geometry, while also respecting the scenario obstacles.
Later on, we designed a Memetic Algorithm (MA) for escalating the TLP to hostelry applications [16]. In these scenarios, the space of solutions increases significantly due to the consideration that a variable number of people may be allocated in each table. The proposed MA was further enhanced with the introduction of memory chains for recalling each individual potential for improvement in [17], improving the overall exploration and exploitation of the available space, resulting in an overall better performance.
However, our previous approach dissociated the table and chair allocation problem. This decision was selected based on the regular operation of a common hostelry establishment, where each table may accommodate a variable and unknown number of customers [18]. Nevertheless, certain establishments where celebrations or events are held and the number of assistants is known may prefer optimizing the chair and table distribution for allocating a higher number of customers or obtaining a more distanced disposition [19].
The table and chair allocation problem has never been attained simultaneously in an unbounded optimization. Luis Bañón et al. [7] analyze different table and chair distribution patterns for different scenario geometries. This provides an efficient approach to the problem; however, the performance of these distributions is compromised for scenarios with a high obstacle density, thus representing a suboptimal approach that does not completely exploit the whole space of solution, resulting in potential empty space being unexploited.
Martina Fischetti et al. [20] apply metaheuristic techniques for optimally allocating tables in hostelry scenarios; nevertheless, this study only focused on locating the tables without analyzing varying seating positions or the presence of obstacle regions. Therefore, this work provides an incomplete solution to the CLP, as the chair arrangement is not taken into consideration when deploying the tables.
On the contrary, Hassan Ugail et al. [6] implemented a heuristic-based algorithm for optimally distributing a certain number of chairs over a given scenario, considering different constraints and obstacles. However, while tables of varying geometry are taken into consideration for the optimization, these table positions are defined as fixed constraints, prior to the optimization, which limits the number of possible solutions as well as the distance distribution optimization potential.
Therefore, in this paper, a combined optimization of the table and chair distribution is proposed for hostelry applications. The exploration of the space of solutions growth introduced by establishing variable table positions may disclose solutions that further optimize the distance distribution, whereas the previously defined constrained optimizations are unable to achieve such solutions.
However, the combination of two NP-Hard problems, such as the table and chair distribution, may result in a computational cost unacceptable for daily operations in certain establishments. Consequently, following the definition of the seat environment for each table in [16], a sequential optimization algorithm that first distributes the tables according to their seat location environment and then allocates the chairs may achieve improved solutions to the constrained problem while also significantly reducing the computational cost.
Furthermore, this optimization is performed by a sequential MA optimization with memory chains for improving the optimization performance of both phases of the algorithm. Multiple genetic operators and fitness optimization functions are specifically devised for this problem in order to attain the best solution. The proposed algorithm is later proved in a realistic scenario based on the Guadi Casa Botines, an establishment designed for celebrations located in the city of León, Spain.
The obtained results confirm the soundness of the proposed methodology, obtaining near-optimal chair and table distributions for both the interpersonal distance and for the hostelry establishment arrangement strategy.
The remainder of this paper is organized as follows: the description of the table location problem and the subsequent chair location problem are described hereafter in Section 2, Section 3 details the proposed methodology and the MA structure, the optimization results over the selected scenario are presented in Section 4, while Section 5 concludes this paper.

2. Problem Description

2.1. Table Location Problem in Hostelry Applications

To achieve optimal space utilization in the competitive world of hostelry, it is essential to address the Table Location Problem (TLP) as a foundational step. The proposed methodology for attaining optimal space utilization in hostelry applications requires addressing the TLP in the first place. The TLP looks to find the Cartesian coordinates of the center of gravity of each of the tables deployed in a particular scenario, both for achieving the maximization of the distance among the tables and for introducing the maximum number of tables in safety conditions in the application scenario.
This entails the finding of the optimal subset ( T i = t i , , t n ) containing the Cartesian coordinates of the center of gravity of the n tables deployed ( t i = x i , y i ) , within the set of available locations for each table within the scenario of application ( T ) .
This problem, exponential in complexity [17], looks to maximize the distance among the tables while achieving uniformity with these distances. In this sense, the Cartesian coordinates of the tables are modified during the optimization (i.e., the decision variables of the problem) also fulfilling some restrictions for ensuring the achievement of valid table dispositions. This states the following mathematical model for the TLP:
Maximize Z = f f ( f f d ( T i ) , f f pen ( T i ) )
Subject to
x l 1 x i x l 2 x i t i ; t i T i ; t i U y l 1 y i y l 2 y i t i ; t i T i ; t i U d i j CLE d s i , j 1 , , n ; i j d k i CLE d w 1 , , n ; k 1 , , n obs
where f f d and f f pen are fitness functions for maximizing the distance among the tables and for guiding the optimizations to valid table distributions, respectively, x l 1 , x l 2 , y l 1 , and y l 2 are the scenario limits for the Cartesian coordinates of the center of gravity of the tables; U is the subset including the forbidden location for the tables due to the obstacles of the scenario; d i j CLE represents the distance among the Chair Location Environment (CLE) of the tables i and j, which must exceed the security distance ( d s ) of 1.5 m set in the Spanish legislation during the pandemic [21]; n obs is the number of obstacles defined in the scenario and d k i CLE is the distance from the obstacle k to the closest point in the CLE of the table i which must allow the passage of the waiters for a proper service exceeding a threshold distance ( d w ) .
An important fact to highlight in this model is the calculation of the distance between the CLE of different tables. The CLE is defined as the region around each table where chairs may be placed. By defining a bounded region around each table for the chair allocation, the TLP optimization is carried out independently of the Chair Location Problem CLP, described in the next subsection, while also considering the interpersonal distancing between variable chair locations in the distance calculation.
To achieve this objective, the distancing between tables is deduced from the separation between the two CLE regions of those tables, as depicted in Figure 1. From this scheme, we can compute the distance between potentially seated individuals in a stage in which the number and location of the chairs are unknown. This procedure, shown in Figure 1, guarantees the specified minimum distance separation between any pair of chairs from different tables, as described in [16].
The fitness functions for the optimizations look for reaching equilibrated table dispositions in which the mean distance among the tables is maximized, while also pursuing a certain uniformity in the distance distribution. This leads to the following formulation of the main fitness function of the optimization:
f f d ( T i ) = 1 n i = 1 n J i ε n i = 1 n J i μ closest 2
where
J i = argmin j [ 1 , n ] ; i j ( d i CLE ) ;
d i CLE is the vector containing the distances from table i to the other tables of the disposition, ε is a hyperparameter weighting the importance of reaching equilibrated table dispositions, and μ closest is the mean value of the distance among the closest tables of the table disposition analyzed.
In addition, some restrictions for attaining valid table dispositions must be considered through a negative penalization fitness function, as follows:
f f pen ( T i ) = ( f f s + f f w + f f obs ) f f s = i = 1 n f f s i f f s i = J i d s 2 if J i < d s 0 otherwise f f w = i = 1 n f f w i f f w i = ( R i d w ) 2 if R i < d w 0 otherwise f f obs = Z Θ
where
R i = argmin k [ 1 , n obs ] π w ( d k i ) ;
f f s , f f w , and f f obs represent the fitness functions for considering the achievement of the security distance among the CLE zones of each table, the facility for serving for the waiters and the avoidance of the location of a table in a forbidden region, respectively; d k i is the vector containing the distance from table i to each of the obstacles and the walls of the scenario, contained in the vector π w ; Θ is the number of tables located in forbidden regions in a particular disposition and P a weighting hyperparameter for giving enough importance to this factor.

2.2. Maximum Dispersion Problem for Optimizing the Chair Allocation

The previously defined TLP optimization attains the optimal table distribution over the proposed scenario, which is the objective of the first phase of the proposed sequential optimization. The following phase of this algorithm entails the obtention of the optimal locations of each chair over the previously delimited tables.
The Chair Location Problem or CLP seeks to obtain the Cartesian coordinates of each chair over a certain scenario that maximizes interpersonal distancing. Consequently, this optimization problem entails the finding of the optimal subset C i = c i , , c m which contains the Cartesian coordinates of the center of the m distributed chairs, being c i = x i , y i . This subset, ( C i ) , is contained within the set of possible chair locations ( L ) .
Consequently, likewise to the Maximum Diversity Problem or MDP, a subset of elements is to be selected from a larger set, seeking to optimize the distancing or diversity among elements [22]. These locations are constrained within the CLE limits, delimited by the prior TLP optimization. The resulting optimization can be described through the following mathematical model:
Maximize Z = f f div ( L )
Subject to:
x CLE k 1 x i x CLE k 2 x i L y CLE k 1 y i y CLE k 2 y i L argmin i [ 1 , n 1 ] ; j [ i + 1 , n ] K i j w i w j d c i = 1 n w i = m w i = { 0 , 1 }
where K i , j represents the diversity between the elements i and j and can be described as the Euclidean distance between the location of each element, as represented in the following expression:
K i , j = ( x i x j ) 2 + ( y i y j ) 2 ;
x i , y i and x j , y j are the Cartesian coordinates of the locations of the elements i and j in the set ( L ) ; d c is the minimum distance separation between chairs; f f div ( L ) represents the fitness function for the evaluation of the diversity (i.e., distance) distribution; x CLE k 1 x CLE k 2 and y CLE k 1 , y CLE k 2 are the lower and upper CLE limits for the Cartesian coordinates of the table k, delimited by the previous TLP optimization; w i is a binary variable that indicates whether a certain location in ( L ) has been selected as a chair location; n is the number of locations contained in ( L ) and m represents the number of chairs to be distributed.
Additional restrictions, such as the invalid placement of chairs in scenario obstacles or the imposition of a minimum distancing among chairs, are not required for the CLP optimization. By delimiting the set of possible locations within the CLE of each table, whose locations have been optimized according to the TLP restrictions, these conditions are now satisfied. Nevertheless, the result of the distance distributions achieved by the optimizations depends on the diversity evaluation, stated as f f div .
Different methodologies are pursued throughout the literature for evaluating the diversity in the MDP; however, the most extended optimization techniques rely on the maximization of the mean diversity (i.e., max-mean) [23], the maximization of the minimum diversity (i.e., max-min) [24], and the maximization of the sum of diversities (max-sum) [25]. These diversity evaluations can be implemented into the CLP by declaring the distance between chairs as the diversity among these two elements, resulting in the following expressions:
f f div ( L ) = i = 1 n 1 j = i + 1 n K i j w i w j 1 n 2 n i = 1 n 1 j = i + 1 n K i j w i w j argmin i [ 1 , n 1 ] ; j [ i + 1 , n ] K i j w i w j
Through the maximization of these functions (i.e., max-sum, mean-max, and max-min), the CLP may achieve a distance distribution that satisfies the restrictions expressed in Equation (8).

3. Sequential Optimization

To effectively tackle the challenges posed by the CLP and the TLP, it is important to recognize their underlying complexity. Given that the Multi-Dimensional Problem (MDP) is classified as NP-Hard [26], it follows that related problems like the CLP and TLP, which are based on the foundations of the MDP, also share this complexity classification. Consequently, the implementation of metaheuristic techniques, such as GA and MA, is proposed to achieve optimal solutions within a polynomial time frame.
However, the combinatorial explosion derived from the combined complexity of simultaneous optimization of the TLP and the CLP threatens the convergence to an acceptable solution. Therefore, in this paper, a sequential optimization methodology is proposed, as depicted in Figure 2. The sequential optimization is divided in two separate stages or phases, the first stage optimizes the TLP through an LS MA optimization based on the establishment scenario π . The second stage takes as input the scenario with the optimally distributed tables π by the previous stage, resulting in the desired chair and table distribution.
Despite the fact that the separate optimization of the TLP and CLP may reduce the space of solutions, limiting the optimal solution achieved, the definition of the CLE within the TLP introduces a greater degree of information regarding the posterior chair location optimization. Consequently, in the TLP optimization phase of the algorithm, the chair locations, although yet undetermined, are considered in the optimization, guiding the TLP optimization into a table distribution favorable for the CLP optimization.
Therefore, the proposed sequential optimization results in a compromise solution between computational complexity and achievable quality of the solution, attaining greater distance distributions than purely table distribution optimizations without the associated complexity of unrestricted CLP or a combined CLP and TLP optimization.
The resulting methodology, shown in Figure 2, is composed of two principal stages. The first phase, composed of an MA optimization of the TLP, results in a table distribution that maximizes the distancing between tables regarding the CLE. The second phase operates within the CLE of the previously fixed tables, obtaining the optimal chair distribution through an MA optimization.
MAs are optimization algorithms that integrate into GA optimization a certain knowledge of the problem, conceptualized as “meme”, for improving the performance of the optimization [27]. This knowledge is introduced into the optimization through a Local Search (LS), built specifically for each problem for improving the initial convergence of the algorithm, avoiding local maximums, and obtaining overall superior solutions [28]. MAs have been implemented widely for optimization paradigms, especially for solving NP-Hard problems [29].
MAs rely on the GA optimization foundations for attaining the desired solution. GAs implement evolutionary strategies for guiding optimization into the optimal solution. Within these algorithms, a population of individuals is modeled, where each individual carries the decision variables of the optimization problem, each individual representing a certain solution for the problem [30].
Throughout multiple generations, the generated population of the MA is evaluated based on its adaptation to the problem characteristics. The received values play a key role in the following genetic operators, shown in Algorithm 1, whose purpose is to guide the population into the optimal solution.
Algorithm 1: MA Structure for the TLP and the CLP Optimizations
Applsci 14 09698 i001
This pseudocode describes the basic structure of the followed local search MA optimization for the CLP and the TLP optimizations. The algorithm commences by loading the scenario of optimization and initializing the population and memory chains. The memory chains store certain information relative to the potential improvement of each individual for the LS.
The mentioned populations are then evaluated according to the fitness function of each particular problem; once assigned a fitness value to every individual, the population is exposed to a series of genetic operators (i.e., Elitism, Selection, Crossover, and Mutation) which introduce selection pressure and diversity into the optimization, critical for the optimization performance [31]. The LS is then applied to a selection of the best-suited individual. This selection is performed on a collection of the best-adapted and random individuals. The selection criteria evaluate the memory chains of each individual, selecting those that exhibit a greater potential improvement for the local search [32].
Once the selection is concluded, the local search is performed within the chosen individuals with the objective of improving the initial distributions. After the resolution of the LS, the newly acquired fitness value is compared to the initial value, prior to the LS, any fitness improvement results in the replacement of the initial individual obtained throughout the LS.
Nevertheless, Algorithm 1 reflects the basic structure from which the TLP and CLP MA optimizations are designed. From this scheme, each problem is characterized by the codification of the individuals and the specific design of certain algorithms within the MA, such as the fitness function or the local search, which are described in this section.

3.1. Table Distribution Optimization

The first stage of the algorithm consists of the MA optimization for optimally allocating a certain number of tables over the introduced scenario. The algorithm’s basic structure is described in the Algorithm 1. Once loaded, the base scenario π , with the boundaries and obstacles, the population is generated according to the proposed codification, depicted in Figure 3.
Each individual contains the Cartesian coordinates of each table over the given scenario. These values are coded in binary, which is a key design factor for future genetic operators of the MA. A binary to decimal scaled conversion is proposed for optimally surveying the given scenario, avoiding the location of tables outside the scenario boundaries in irregular establishments as proposed in [15]. Moreover, each table carries an ID tag for its identification during the LS and for the CLP optimization.
The conversion and scale of each table location to the scenario of application and the obstacle collision detection are performed within the fitness function, evaluating each individual according to the achieved distance distribution and the fulfillment of certain restrictions. The main structure of this algorithm is described in Algorithm 2.
Algorithm 2: Fitness function for the TLP MA ( d C L E , Population , π )
Applsci 14 09698 i002
The fitness evaluation of each individual starts by obtaining the Cartesian coordinates of each table location, T. From these locations, the interpersonal distance distribution between tables d is computed, which is measured as the Euclidean distance between the CLE regions of each table, as shown in Figure 1.
Therefore, the distance calculation requires the obtention of the distance from each table center to the intersection of each CLE region for the intersection angle. However, this distance, d C L E , is only dependent on the angle of intersection α between tables and the table geometry.
Consequently, in the proposed algorithm, a d C L E polar distribution is computed at the start of the TLP optimization for multiple intersection angles, saving these values for the table-to-table distance calculation, reducing the complexity of the fitness evaluation algorithm [16].
Moreover, the algorithm evaluates the number of collisions with obstacles and the number of distances that do not reach the d s minimum interpersonal distance. The severity of the infringement δ d s is also measured for the unsuitable distance, where δ d s = d s d i , j . Based on this restriction analysis, two different evaluation methodologies are proposed.
Table distributions that exhibit any penalization (i.e., obstacle collision or distance infraction) are penalized according to the expressions exhibited in Equations (5) and (6), resulting in a negative fitness value. On the other hand, table distributions that do not result in any obstacle collision or any distance infraction result in a positive fitness function, guiding the optimization into adhering to these imposed restrictions.
Once evaluated, the individuals are preserved, arranged, crossed, and mutated through the respective genetic operators. The cycle of the fitness evaluation and these operators constitute the basic GA optimization, which is complemented in this paper with a specifically designed local search for the TLP, which takes place when certain criteria (i.e., probabilistic, or sequential activation) are met, thus resulting in the proposed LS MA.
The proposed local search aims to intensify a reduced sample of individuals from the population set, improving the fitness value of these individuals through a GBLS (Gradient-Based Local Search) procedure [33], thus guiding the optimization into achieving the desired solution.
The selection of the local search individuals is performed over a certain pool of individuals from the base population that consists of a combination of the best-adapted individuals and random selections, thus attaining a diverse and elitist sample of the population [34]. From this initial pool, the local search individuals are selected by analyzing the improvement potential of each drafted individual. The improvement potential of each table distribution is measured by the intensity parameter, described through the following expression:
I i = C 1 δ + C 2 μ + C 3 n 1
where I i represents the intensity of the individual i; C 1 , C 2 , and C 3 are co-factors obtained experimentally, as stated in [35]; δ , n and m are contained within the memory chains of each individual and represent, respectively, the fitness improvement of the last LS, the number of times that the individual have been improved, and the improvement viability, measured as
μ = ρ m j ;
where ρ is the table-moving step and m j the number of table movements performed within the LS execution j.
The memory chains are initialized in default values (i.e., null δ , n , ρ , m ) at the start of the optimization and are then updated within the LS procedure. Individuals that undergo any alteration in the mutation operator have their memory chains reinitialized; the same procedure is applied to the novel individuals generated in the crossover function. However, preserved individuals in the proposed methodology conserve their memory chains, thus enhancing the LS individual’s selection.
Once the individuals have been selected, the GBLS is performed for each of the local search individuals, intensifying the respective table distributions through the methodology described in Figure 4.
The purpose of the GBLS for the TLP is to improve the table distribution by introducing multiple small movements in certain table positions. Each movement is performed based on a step size ρ and a movement direction. The obtention of the optimal movement direction for each chair constitutes a significant challenge, the presence of obstacles, the minimum distance restriction, and the exceeding number of possible configurations of distributions threaten the viability of any exact procedure [16].
Therefore, an iterative approach is proposed where the direction of movement is computed locally for a single table through the distance gradient of the utmost proximate table:
d i , j = x i x j K i , j , y i y j K i , j
where d i , j obtains the gradient direction from table j to table i.
The resulting direction of movement increases the minimum distance separation of the moved table i until the minimum distance is measured to another adjacent table k, different from j. Following Figure 4, the iterative algorithm will evaluate the gradient with table k, increasing the minimum distance until a certain number of movements are performed or until the result position is repeated from previous steps.
Moreover, the GBLS also aims to assist the table distribution in evading obstacles. When the moving table i is located within an obstacle, the algorithm computes the gradient for obtaining the direction that distances the table from the obstacle until the table evades the obstacle.
Nevertheless, the proposed GBLS only intensifies one table per LS iteration, and thus the table selection for each iteration constitutes a cardinal step for improving the individual fitness value. A selection methodology is proposed where the algorithm evaluates multiple parameters that are related to the potential of each table for improving the individual fitness value, which is obtained from the following expression:
P i = C 4 d min C 5 N adj C 6 N rep + F 1 + X
where C 4 , C 5 , and C 6 are co-factors adjusted experimentally; N adj is the number of adjacent tables (i.e., number of tables under a certain radius); d min is the minimum distance among the adjacent tables; N rep is the number of times that the table i has been selected for the given individual; F 1 is a step function of value κ when the table i is within an obstacle and 0 otherwise, and X is a random variable.
The proposed methodology favors the selection of tables that induce a penalization in the fitness value (i.e., distance or obstacle restriction). On the other hand, the selection penalizes tables that have undergone previous selections as well as tables that have a considerable number of adjacent tables, thus favoring the selection of those tables within the periphery, expanding the limits of the table distributions, exploiting all the available space.
Nevertheless, as previously stated, no methodology is optimal for each possible table configuration, and thus a random variable is implemented to introduce a degree of entropy into the selection procedure, which allows for the exploration of other possibilities that are unreachable within the proposed selection methodology [36].
Consequently, the GBLS is implemented through an iterative intensification of certain tables, where each table is moved at least n t times for each selection, and n s selections are performed for each LS individual.
The resulting MA optimization excels in scenarios with a high obstacle density, such as the one proposed in this paper, improving the initial convergence of the optimization and exploiting all the available space, improving the table distribution for the following CLP optimization, discussed hereafter.

3.2. Chair Allocation Optimization

The conclusion of the TLP MA results in the obtention of an optimized table distribution over the approached environment. Once locating the tables, the proposed sequential optimization continues with the chair distribution optimization. The CLP optimization aims to obtain the chair distribution that maximizes the interpersonal distance. The scenario of optimization, π , is composed of the CLE of the previously fixed tables.
Moreover, the NP-Hard complexity of this problem requires the employment of metaheuristic techniques for obtaining a valid solution within a polynomial time [37,38]. Consequently, due to the existing similarities between the TLP and CLP, an LS MA is proposed for obtaining an adequate solution for CLP optimization.
However, the dissimilarities that differentiate the CLP from the TLP, such as the different scenarios, inhibit the direct application of the methodology proposed for the TLP into the CLP. Due to these aspects, an MDP-based codification is proposed for attaining the desired solution, represented in Figure 5.
Within the proposed codification, each individual carries the whole set of possible chair locations. These chair locations are contained within each table CLE. Therefore, the space of possible locations is discontinuous, starting in the CLE of the Table 1 in Figure 5 covering the table chair location environment counterclockwise, then moving to the CLE of Table 2 repeating the presented procedure until all tables are covered.
Each table is identified by its ID number, defined in the TLP codification; however, in order to trace a more connected space, the table identifications are rearranged according to their final location after the TLP optimization, covering the scenario from top to bottom and from left to right.
Furthermore, in the proposed codification of the individual genotype, each bit represents whether a location is selected or not as a chair location. Consequently, the sum of each individual genotype must always add up to the number of chairs to be distributed. This supposes a relevant constraint for the crossover and mutation operators, where the genotype of each individual is permutated in different ways for exploring the space of solutions.
The unchecked exercise of these operators may result in changes in the genotype that increase or decrease the total number of ones within each individual, thus altering the associated number of chair placements and resulting in invalid distributions.
Constrained GA optimizations, where genetic operators may result in unfeasible solutions to the proposed problem, are a common problem throughout the literature [39,40]. In order to bypass this situation, three methodologies are usually employed for guiding the convergence into the problem domain [41].
The first solution entails the design of weighted penalties within the fitness evaluation for those unfeasible solutions. However, this approach has unfavorable results for problems with a high probability of generating an unfeasible solution [42]. Furthermore, the weight of each penalization should be revaluated for each different scenario of application, affecting the flexibility of the proposed methodology.
On the contrary, the second approach focuses on the employment of special decoders and repair operators. These algorithms project invalid individuals into the feasible region [43]. However, these operators may result in the loss of genetic diversity when the feasible region is small and discontinuous.
Furthermore, the third approach is centered on the development of domain-specific GA [44]. This methodology is based on the development of specific GA operators that operate within the problem-feasible region. This procedure usually results in the best solution, especially for problems with underrepresented feasible regions, such as the CLP optimization [45].
However, the design of these algorithms is an arduous task, as these methodologies must prove an equal exploration of the whole space of solutions in order to provide the diversity required for solving the problem [46]. Nevertheless, due to the limited and discontinuous feasible region of the MDP codification, the implementation of domain-specific MA is required to attain the desired solution.
Therefore, in this paper, a novel crossover and mutation operator are proposed for attaining a constrained GA optimization of the MDP for the first time in the authors’ knowledge. The proposed crossover operator, detailed in Algorithm 3, aims to provide a sufficient genetic drift without incurring excessive diversification, which could imperil the algorithm’s convergence with the optimal solution.
The proposed algorithm adapts the multiple-point crossover operator into a variable segmentation process for operating within the constant number of restrictions [47]. The algorithm starts by initializing the new population of individuals, defined as offspring, which share the codification of the old population but are initialized with all zeros. For each pair of individuals within the population and the offspring (i.e., the progenitors and descendants), the algorithms trace different segments for reallocating the bits within the fathers to the descendants.
Each segment is determined by its origin point, its length, and its final point. The origin point is determined randomly among each possible bit position that has not been selected or that has been in a previous segment. The length of the segment is calculated through the following equation in order to avoid overflow of the parents’ descendants with their own:
L = min { N max { D 1 , D 2 } , L 0 }
where L is the segment length; N is the number of chairs (i.e., the total number); D 1 and D 2 represent the two formed descendants from each pair of progenitors, with the binary codification proposed for the CLP and L 0 being a hyperparameter for initializing the default length.
Algorithm 3: Pseudocode of the variable segmentation-designed crossover operator for the CLP optimization (Population, Num Chairs).
Applsci 14 09698 i003
Once setting the origin point and length of the segment, the end point is deduced from the individual bit positions, as represented in Figure 6.
The segment advances through each individual binary codification in a given direction, each bit representing a unit of length. The segment may surpass previously segmented bits and can link the end and the beginning of the genotype. Once obtaining the segment, similar to the multiple-point crossover, each bit position and value is transferred to the descendants. The bit assignment that determines which progenitor string adheres to each descendant is computed randomly at each segmentation.
The segmentation process is repeated until at least one of the descendants reaches the required number (i.e., the sum of its genotype equals the number of chairs). However, a possible outcome of this procedure is the event in which one descendant still lacks a certain number. A sequential methodology is proposed for completing the last individual, in which the leftover ones in both progenitors are passed to the remaining descendant.
Nevertheless, progenitors that share leftovers within the same positions require additional operations for delivering the required number to the uncompleted descendant. Thus, for each missing one, the algorithm iteratively passes a bit of value from a progenitor to the missing descendant. The progenitor is randomly selected, and the bit position is randomly selected among all possible positions (i.e., all positions where the progenitor has a one and the descendant a zero).
The repetition of this procedure for every pair of individuals from the population constitutes the new generation of individuals, in which each individual has an equal number to the number of placed chairs.
On the other hand, the CLP codification also requires the particularization of the mutation operator. Similarly, to the crossover operator, the permutation of the individual genotypes performed within the mutation algorithm may shift the total number. Consequently, a two-step mutation operator has been proposed for altering certain individuals within the population.
For each mutated individual, the first step entails the mutation of ones, where each bit has a low percentage of being negated, turning into a zero. After the negation step, the algorithm computes the number of ones and permutes random zeros into ones until the total number of ones fits the desired number of chairs.
Once defining the mutation and crossover operators, we can elaborate the fitness function for the proposed LS MA optimization. Multiple fitness functions have been proposed in order to evaluate the diversity (i.e., distancing among individuals) of the chair distribution. Three evaluations are commonly applied to MDP optimization problems for achieving the maximum diversity, as shown in Equation (10) (i.e., max-sum, max-mean, and min-max) [48].
Therefore, in search of the most-suited methodology, all fitness methodologies will be considered for the results section. Nevertheless, for the CLP, both the minimum distance achieved and the mean distancing are important parameters. However, the separation of both metrics into different optimization functions may guide the convergence of the optimization into reaching each separate metric and not both combined [49]. Therefore, a fourth fitness function is proposed for the CLP optimizations, which combines the min-max and max-mean functions for guiding the convergence into reaching a more adequate solution, presented in the following equation:
f f mix = f f max-mean + M + ( 1 + f f min-max ) 3
where
M = 1 + D 1 ¯ b + i = 1 3 1 + Q i ¯ a i ;
Q i ¯ represents the averaged distance quartiles of the distance distribution of the analyzed individual; D 1 ¯ is the averaged first decile of the distance distribution, and a , b are hyperparameters for weighting the fitness value.
Based on the achieved fitness value, the selection and elitism operate similarly to the previous TLP optimization. Furthermore, due to the elevated number of possible locations, the initial phase of the optimization of the algorithm proves especially problematic due to the random distribution of chairs over the scenario; thus, multiple consecutive changes are required to improve the mean and minimum distance.
Consequently, a GBLS is proposed for improving the initial convergence of the CLP optimization, improving the initial growth while avoiding local maximums. Similar to the TLP, the proposed LS is applied to a certain number of individuals, selected from among the best-fitted and other random individuals. From this draft, the final selection of the local search individuals is performed based on the intensity parameter described in Equation (11). The improvement viability expressed within this equation has been reformulated for the CLP, resulting in the following expression:
μ = ρ m j
where ρ represents the movement step and m j the number of chair movements performed within the LS execution j.
Once selecting the LS individuals, the GBLS takes place for improving the fitness value of the given chair distributions. The proposed methodology for the CLP LS is depicted in Figure 7.
For each individual, the proposed LS performs multiple chair selections for evaluating the chair positions whose movements entail the most fitness improvement potential. This potential is measured by a parameter that evaluates different aspects regarding the chair proximity, resulting in the following expression:
P i = C 7 d min C 8 N table C 9 N rep + X
where C 7 , C 8 , and C 9 are co-factors adjusted experimentally; N table is the number of placed chairs within the table in which the chair i is located; N rep is the number of times that the chair i has been selected for the analyzed individual; and X is a random variable.
Similar to the potential for selecting tables for the TLP optimization, the CLP selection favors those chairs that present a deficient minimum interpersonal distance, which may severely penalize the fitness value. Nevertheless, a random parameter is also proposed in order to introduce a certain degree of entropy into the optimization, resulting in a well-rounded selection procedure.
Once a chair has been selected, the algorithm intensifies the chair location by evaluating the optimal direction of movement. Following the codification of the individual, the range of movement of a chair within a table is limited to two opposite directions (i.e., clockwise and counterclockwise). Therefore, the GBLSs perform exploration for both directions, moving the selected chair in each direction until the minimum distance between the selected chair and the most proximate chair of a given instance is less than the minimum distance of the previous instance. The algorithm then saves the chair location of the last valid instance.
The result of this procedure is the obtention of the best-suited chair locations for both directions, regarding only the minimum distance. The GBLS then selects the location that attains the minimum distance between (i.e., one of the two directions or the initial position) replacing the original position if modified.
The proposed methodology proves essential for improving the initial phase of the optimization, where multiple chairs are scattered around the environment, and where the fitness evaluation may be compromised by the resulting distance distribution, especially for the min-max strategy.
In conclusion, the previously detailed sequential optimization composed of two LS MA optimizations proves mandatory for approaching the TLP and CLP, especially when confronting harsh scenarios with a high obstacle density or with irregular geometries, such as the one proposed in this paper. In the results section, the performance of the designed methodology is analyzed, comparing the different fitness strategies for CLP optimization in order to attain the best solution.

4. Results

In this section, a case study of a hostelry scenario is presented to evaluatethe performance of the proposed algorithm.The selected scenario is based on Gaudi’s Casa Botines, a multipurpose establishment with a significant capacity, represented in Figure 8. The high density of obstacles present within the proposed scenario added to the irregularity of the valid location environment and the overall size constitute an arduous approach for allocating customers within the establishment.
Traditional approaches may fail when trying to allocate the maximum number of chairs while maintaining a certain interpersonal distance. On the other hand, table and chair distribution techniques present in the literature may result in suboptimal solutions due to the severe constraints introduced by the scenario geometry. Therefore, the selected scenarios represent an ideal case study for testing and analyzing the performance of the designed technique in all its variants.
Once loading the scenario into the sequential optimization, following the diagram present in Figure 2, the algorithm commences with the TLP optimization. All simulations were performed in the Python programming language, version 3.8.1, executed with an Intel® i7 2.4 GHz of CPU and 16 GB of RAM. The simulations were executed with the list of hyperparameters shown in Table 1.
The outcome of the TLP optimization, depicted in Figure 9, represents the optimized table distribution for a total of 26 tables, a significant number of tables within the scenario of study while respecting the stated restrictions. This figure represents the result of the first stage of the sequential optimization approach, and also the starting point for the posterior optimization of the chair arrangement.
The achieved distribution of Figure 9 exploits the available space in the scenario periphery and between obstacles, increasing the interpersonal distancing among tables, reaching a mean interpersonal separation of 3.28 m with a minimum distance separation of 2.4 m. Furthermore, while some deviation is present in the distance distribution, the algorithm achieves adequate uniformity in the achieved solution, reaching a standard deviation of 0.72 m.
Once optimizing the tables, their positions are fixed in place, and the second phase of the sequential optimization takes place—the LS MA CLP optimization. Table 2 details the different hyperparameters adjusted for the proposed algorithm.
Through the previously detailed hyperparameters, multiple LS MA optimizations are executed. A comparison among the different MDP optimization strategies is proposed in search of the best-suited technique for the CLP and for the presented scenario of study. The results of each optimization strategy are detailed in Table 3.
Results show that while the maximum mean distancing value is obtained by the max-mean strategy, the associated minimum distance yields no benefit for such an establishment. Similarly, the max-sum approach also fails to provide a valid distribution. These two optimization functions only favor the global distancing, in both mean value and total sum, and thus they fail at providing a more distributed arrangement.
On the other hand, both the min-max and the mix optimization strategy attain valid distributions, reaching good metrics in mean and minimum distancing, with a low standard deviation. However, the min-max optimization method only focuses on improving the absolute minimum distance, and while the resulting mean value is also favorable, the obtained distance distribution is less efficient than that attained by the mix strategy, as depicted in Figure 10.
While the analyzed metrics of the mix and min-max strategies display a certain similarity, their difference is noticeable when comparing the resulting distance distributions. The min-max strategy only takes into account the overall minimum value, attaining in the process a valid and distributed chair arrangement. However, this methodology is deficient when it comes to optimizing chairs with a low distance profile but greater than the global minimum distance.
Consequently, in Figure 10, a concentration of distances is perceptible in the proximity of the minimum distances, which is unfavorable for the overall quality of the distribution. On the other hand, the proposed methodology takes into consideration multiple metrics, pursuing a uniform distance profile with the gross of the distances of higher value to that of minimum distance, yet with a sufficient minimum separation. Based on these results, a mixed strategy could be the most desirable approach for most hostelry establishments, striking an adequate balance between mean and minimum distancing.
The achieved distance distribution from the proposed methodology is desirable both for decreasing the contagion probability and also for providing a more pleasant and attractive distribution for the establishment, where a certain degree of symmetry and order is appealing to the customer. The described order can be appreciated within the resulting chair distribution, shown in Figure 11, where a certain pattern is repeated throughout the tables.
Nevertheless, the proposed methodology orients these patterns in a way that, while attaining the optimal local distance profile within the table, the distancing among adjacent tables is also optimized. Furthermore, when allocating a number of chairs not divisible by the number of tables—such is the case of the proposed optimization—the algorithm also determines the optimal table for introducing the higher number of chairs, allocating them to the most distanced tables.
Therefore, the proposed methodology proves valuable for optimally allocating a certain number of customers over a determined certain. The proposed optimization strategy also achieves a distance profile, favorable both for sanitary purposes and for customer appeal. The proposed methodology is also adaptable to different scenarios, admitting varying and limiting restrictions while achieving a near-optimal solution, thus fulfilling the main objectives of this paper.

5. Conclusions

Devising a table and chair distribution to accommodate all customers is a significant challenge for many hospitality businesses, especially for multipurpose establishments that must regularly rearrange tables and chairs for daily service. This challenge not only affects the operational efficiency of businesses but also has important social and economic implications. Optimizing the use of space can lead to an increase in customer capacity, which can significantly boost revenue while ensuring safety and comfort for patrons. Additionally, for venues hosting large events, the ability to increase the maximum occupancy without compromising organization is vital for successfully accommodating a larger number of attendees.
Solutions for this problem are analyzed throughout the literature, where varying methodologies are proposed for attaining a valid solution. However, these approaches fail at optimizing both table and chair distribution in addition to other constraints such as the presence of obstacles or the effect of irregular scenarios. The combinatorial nature of these optimization problems combined, being each problem categorized as NP-Hard, with the addition of these constraints constitute an optimization problem yet unresolved in the literature.
In this paper, a sequential memetic algorithm optimization is proposed for attaining a near-optimal solution for the TLP and CLP combined. The proposed procedure implements a multiphase optimization procedure, where the algorithm first obtains the optimal coordinates of each table that maximize the distancing among tables, computed with respect to a chair location environment where chairs are placed.
The second phase of the optimization attains the optimal chair locations for the previously distributed tables. Different optimization strategies utilized throughout the literature are compared with a specifically designed procedure for obtaining the best-suited solution for these establishments.
The proposed methodology is then implemented into a realistic hostelry scenario with multiple constraints regarding table and chair placement and minimum interpersonal separation. The obtained results prove the viability of the presented methodology, where the specifically designed CLP optimization attains the best-suited distributions for such scenarios. Furthermore, the flexibility of the designed procedure also supports the introduction of additional constraints regarding event celebrations (i.e., performances and ceremonies) or other restrictions of diverse nature.

Author Contributions

Conceptualization, R.F.-G. and J.D.-G.; formal analysis, A.M.-G.; investigation, R.F.-G., J.D.-G., and R.Á.; methodology, R.F.-G., J.D.-G., and R.Á.; project administration, A.M.-G.; resources, R.F.-G. and J.D.-G.; software, R.F.-G., A.M.-G., and R.Á.; supervision, J.D.-G. and A.M.-G.; validation, A.M.-G. and R.Á.; visualization, R.F.-G. and J.D.-G.; writing—original draft, R.F.-G. and J.D.-G.; writing—review and editing, A.M.-G. and R.Á. All authors have read and agreed to the published version of the manuscript.

Funding

This research was developed and funded by the project of the Spanish Ministry of Science, Innovation and Universities grant number PID2023-153047OB100 and the Universidad de León.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The raw data supporting the conclusions of this article will be made available by the authors on request.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Tyagi, M.; Bolia, N.B. Approaches for restaurant revenue management. J. Revenue Pricing Manag. 2021, 21, 17–35. [Google Scholar] [CrossRef]
  2. Thompson, G.M. Optimizing a restaurants seating capacity: Use dedicated or combinable tables? Cornell Hotel Restaur. Adm. Q. 2002, 43, 48–57. [Google Scholar] [CrossRef]
  3. Han, E.; Tan, M.M.J.; Turk, E.; Sridhar, D.; Leung, G.M.; Shibuya, K.; Asgari, N.; Oh, J.; García-Basteiro, A.L.; Hanefeld, J.; et al. Lessons learnt from easing COVID-19 restrictions: An analysis of countries and regions in Asia Pacific and Europe. Lancet 2020, 396, 1525–1534. [Google Scholar] [CrossRef] [PubMed]
  4. Ashraf, B.N.; Goodell, J.W. COVID-19 social distancing measures and economic growth: Distinguishing short-and long-term effects. Financ. Res. Lett. 2022, 47, 102639. [Google Scholar] [CrossRef] [PubMed]
  5. Pérez, V.; Aybar, C.; Pavía, J.M. COVID-19 and changes in social habits. Restaurant terraces, a booming space in cities. The case of Madrid. Mathematics 2021, 9, 2133. [Google Scholar] [CrossRef]
  6. Ugail, H.; Aggarwal, R.; Iglesias, A.; Howard, N.; Campuzano, A.; Suárez, P.; Maqsood, M.; Aadil, F.; Mehmood, I.; Gleghorn, S.; et al. Social distancing enhanced automated optimal design of physical spaces in the wake of the COVID-19 pandemic. Sustain. Cities Soc. 2021, 68, 102791. [Google Scholar] [CrossRef]
  7. Bañón, L.; Bañón, C. Improving Room Carrying Capacity within Built Environments in the Context of COVID-19. Symmetry 2020, 12, 1683. [Google Scholar] [CrossRef]
  8. Fischetti, M.; Pisinger, D. Mathematical optimization and algorithms for offshore wind farm design: An overview. Bus. Inf. Syst. Eng. 2019, 61, 469–485. [Google Scholar] [CrossRef]
  9. Díez-González, J.; Álvarez, R.; Sánchez-González, L.; Fernández-Robles, L.; Pérez, H.; Castejón-Limas, M. 3D Tdoa problem solution with four receiving nodes. Sensors 2019, 19, 2892. [Google Scholar] [CrossRef]
  10. Dhingra, S.; Morrow, J. Monopolistic competition and optimum product diversity under firm heterogeneity. J. Political Econ. 2019, 127, 196–232. [Google Scholar] [CrossRef]
  11. Lozano-Osorio, I.; Sanchez-Oro, J.; Lopez-Sanchez, A.D.; Duarte, A. A reactive path relinking algorithm for solving the bi-objective p-Median and p-Dispersion problem. Soft Comput. 2023, 27, 8029–8059. [Google Scholar] [CrossRef]
  12. Antipov, D.; Neumann, A.; Neumann, F. A Detailed Experimental Analysis of Evolutionary Diversity Optimization for OneMinMax. In Proceedings of the Genetic and Evolutionary Computation Conference, Melbourne, VIC, Australia, 14–18 July 2024; pp. 467–475. [Google Scholar]
  13. Ghosh, J.B. Computational aspects of the maximum diversity problem. Oper. Res. Lett. 1996, 19, 175–181. [Google Scholar] [CrossRef]
  14. Martí, R.; Gallego, M.; Duarte, A.; Pardo, E.G. Heuristics and metaheuristics for the maximum diversity problem. J. Heuristics 2013, 19, 591–615. [Google Scholar] [CrossRef]
  15. Ferrero-Guillén, R.; Díez-González, J.; Verde, P.; Álvarez, R.; Perez, H. Table Organization Optimization in Schools for Preserving the Social Distance During the COVID-19 Pandemic. Appl. Sci. 2020, 10, 8392. [Google Scholar] [CrossRef]
  16. Ferrero-Guillén, R.; Díez-González, J.; Martínez-Guitiérrez, A.; Álvarez, R. Optimal COVID-19 Adapted Table Disposition in Hostelry for Guaranteeing the Social Distance Through Memetic Algorithms. Appl. Sci. 2021, 11, 4957. [Google Scholar] [CrossRef]
  17. Ferrero-Guillén, R.; Díez-González, J.; Verde, P.; Martínez-Gutiérrez, A.; Alija-Pérez, J.M.; Perez, H. Memory Chains for Optimizing the Table Disposition During the COVID-19 Pandemic. In Proceedings of the International Conference on Bioengineering and Biomedical Signal and Image Processing, Meloneras, Gran Canaria, Spain, 19–21 July 2021; Springer: Berlin/Heidelberg, Germany, 2021; pp. 472–483. [Google Scholar] [CrossRef]
  18. Thompson, G.M. Optimizing restaurant-table configurations: Specifying combinable tables. Cornell Hotel Restaur. Adm. Q. 2003, 44, 53–60. [Google Scholar] [CrossRef]
  19. Duan, Y.; Jia, D.; Jia, Y. Joint demand and capacity optimization in a service system. In Proceedings of the IEEE Conference Anthology, Chongqing, China, 1–8 January 2013; pp. 1–4. [Google Scholar] [CrossRef]
  20. Fischetti, M.; Fischetti, M.; Stoustrup, J. Safe distancing in the time of COVID-19. Eur. J. Oper. Res. 2023, 304, 139–149. [Google Scholar] [CrossRef]
  21. Moliner, L.; Alegre, F. COVID-19 Restrictions and Its Influence on Students’ Mathematics Achievement in Spain. Educ. Sci. 2022, 12, 105. [Google Scholar] [CrossRef]
  22. Parreño, F.; Álvarez-Valdés, R.; Martí, R. Measuring diversity. A review and an empirical analysis. Eur. J. Oper. Res. 2021, 289, 515–532. [Google Scholar] [CrossRef]
  23. Martí, R.; Martínez-Gavara, A. Discrete Diversity and Dispersion Maximization; Springer: Berlin/Heidelberg, Germany, 2023. [Google Scholar]
  24. Mahmoudinazlou, S.; Kwon, C. A hybrid genetic algorithm for the min–max Multiple Traveling Salesman Problem. Comput. Oper. Res. 2024, 162, 106455. [Google Scholar] [CrossRef]
  25. Bui, H.T.; Spiers, S.; Loxton, R. Solving Euclidean Max-Sum problems exactly with cutting planes. Comput. Oper. Res. 2024, 168, 106682. [Google Scholar] [CrossRef]
  26. Katayama, K.; Narihisa, H. An Evolutionary Approach for the Maximum Diversity Problem; Springer: Berlin/Heidelberg, Germany, 2005. [Google Scholar] [CrossRef]
  27. Neri, F.; Cotta, C. Memetic algorithms and memetic computing optimization: A literature review. Swarm Evol. Comput. 2012, 2, 1–14. [Google Scholar] [CrossRef]
  28. Phan, Q.M.; Luong, N.H. Pareto Local Search is Competitive with Evolutionary Algorithms for Multi-Objective Neural Architecture Search. In Proceedings of the Genetic and Evolutionary Computation Conference, Lisbon, Portugal, 15–19 July 2023; pp. 348–356. [Google Scholar]
  29. Zhou, Y.; Kong, L.; Yan, L.; Liu, Y.; Wang, H. A memetic algorithm for a real-world dynamic pickup and delivery problem. Memetic Comput. 2024, 16, 203–217. [Google Scholar] [CrossRef]
  30. Papazoglou, G.; Biskas, P. Review and comparison of genetic algorithm and particle swarm optimization in the optimal power flow problem. Energies 2023, 16, 1152. [Google Scholar] [CrossRef]
  31. Alhijawi, B.; Awajan, A. Genetic algorithms: Theory, genetic operators, solutions, and applications. Evol. Intell. 2024, 17, 1245–1256. [Google Scholar] [CrossRef]
  32. Ekinci, S.; Izci, D.; Abualigah, L.; Zitar, R.A. A modified oppositional chaotic local search strategy based aquila optimizer to design an effective controller for vehicle cruise control system. J. Bionic Eng. 2023, 20, 1828–1851. [Google Scholar] [CrossRef]
  33. D’Angelo, G.; Palmieri, F. GGA: A modified genetic algorithm with gradient-based local search for solving constrained optimization problems. Inf. Sci. 2021, 547, 136–162. [Google Scholar] [CrossRef]
  34. Verde, P.; Ferrero-Guillén, R.; Álvarez, R.; Díez-González, J.; Perez, H. Node Distribution Optimization in Positioning Sensor Networks through Memetic Algorithms in Urban Scenarios. Eng. Proc. 2020, 2, 73. [Google Scholar] [CrossRef]
  35. Verde, P.; Díez-González, J.; Ferrero-Guillén, R.; Martínez-Gutiérrez, A.; Perez, H. Memetic chains for improving the local wireless sensor networks localization in urban scenarios. Sensors 2021, 21, 2458. [Google Scholar] [CrossRef]
  36. Jiacheng, L.; Lei, L. A hybrid genetic algorithm based on information entropy and game theory. IEEE Access 2020, 8, 36602–36611. [Google Scholar] [CrossRef]
  37. Eremeev, A.V.; Kel’manov, A.V.; Kovalyov, M.Y.; Pyatkin, A.V. Maximum diversity problem with squared Euclidean distance. In Proceedings of the International Conference on Mathematical Optimization Theory and Operations Research, Ekaterinburg, Russia, 8–12 July 2019; Springer: Berlin/Heidelberg, Germany, 2019; pp. 541–551. [Google Scholar] [CrossRef]
  38. Ferrero-Guillén, R.; Alija-Pérez, J.M.; Martínez-Gutiérrez, A.; Álvarez, R.; Verde, P.; Díez-González, J. Black widow optimization for reducing the target uncertainties in localization wireless sensor networks. Log. J. IGPL 2024, 2024, jzae032. [Google Scholar] [CrossRef]
  39. Nadeem, Z.; Javaid, N.; Malik, A.W.; Iqbal, S. Scheduling appliances with GA, TLBO, FA, OSR and their hybrids using chance constrained optimization for smart homes. Energies 2018, 11, 888. [Google Scholar] [CrossRef]
  40. Afshari, H.; Hare, W.; Tesfamariam, S. Constrained multi-objective optimization algorithms: Review and comparison with application in reinforced concrete structures. Appl. Soft Comput. 2019, 83, 105631. [Google Scholar] [CrossRef]
  41. Kouba, Z.; Lazansky, J.; Marik, V.; Vlcek, T.; Zenisek, P. Experiments with genetic algorithm in a CIM task. In Proceedings of the Twelfth European Meeting on Cybernetics and Systems Research, Vienna, Austria, 1 March 1994; Volume 2, pp. 1833–1840. [Google Scholar] [CrossRef]
  42. Shen, X. On the method of penalization. Stat. Sin. 1998, 8, 337–357. [Google Scholar]
  43. Schoenauer, M.; Xanthakis, S. Constrained GA optimization. In Proceedings of the 5th International Conference on Genetic Algorithms. Morgan Kaufmann, Urbana-Champaign, IL, USA, 17–21 June 1993; pp. 573–580. [Google Scholar]
  44. Hamamoto, S. Development and validation of genetic algorithm-based facility layout a case study in the pharmaceutical industry. Int. J. Prod. Res. 1999, 37, 749–768. [Google Scholar] [CrossRef]
  45. Salhi, S.; Petch, R. A GA based heuristic for the vehicle routing problem with multiple trips. J. Math. Model. Alg. 2007, 6, 591–613. [Google Scholar] [CrossRef]
  46. Zhigljavsky, A. Theory of Global Random Search; Pinter, J., Ed.; Mathematics and Its Applications; Springer: Dordrecht, The Netherlands, 1991; Volume 65. [Google Scholar] [CrossRef]
  47. Zainuddin, F.A.; Abd Samad, M.F.; Tunggal, D. A review of crossover methods and problem representation of genetic algorithm in recent engineering applications. Int. J. Adv. Sci. Technol. 2020, 29, 759–769. [Google Scholar]
  48. Kuo, C.C.; Glover, F.; Dhir, K.S. Analyzing and modeling the maximum diversity problem by zero-one programming. Decis. Sci. 1993, 24, 1171–1185. [Google Scholar] [CrossRef]
  49. Borenstein, Y.; Poli, R. Fitness distributions and GA hardness. In Proceedings of the International Conference on Parallel Problem Solving from Nature, Birmingham, UK, 18–22 September 2004; Springer: Berlin/Heidelberg, Germany, 2004; pp. 11–20. [Google Scholar] [CrossRef]
  50. Ferrero-Guillén, R.; Díez-González, J.; Álvarez, R.; Pérez, H. Analysis of the genetic algorithm operators for the node location problem in local positioning systems. In Proceedings of the International Conference on Hybrid Artificial Intelligence Systems, Gijón, Spain, 11–13 November 2020; Springer: Berlin/Heidelberg, Germany, 2020; pp. 273–283. [Google Scholar] [CrossRef]
Figure 1. Distance calculation between tables for the TLP. The interpersonal distance d i , j is as the distance between the CLE regions of each table.
Figure 1. Distance calculation between tables for the TLP. The interpersonal distance d i , j is as the distance between the CLE regions of each table.
Applsci 14 09698 g001
Figure 2. Sequential optimization methodology for solving the TLP and CLP.
Figure 2. Sequential optimization methodology for solving the TLP and CLP.
Applsci 14 09698 g002
Figure 3. Codification and decodification scheme of the population for the TLP LS MA.
Figure 3. Codification and decodification scheme of the population for the TLP LS MA.
Applsci 14 09698 g003
Figure 4. Representation of the GBLS intensification procedure applied to the selected LS individuals for the TLP optimization.
Figure 4. Representation of the GBLS intensification procedure applied to the selected LS individuals for the TLP optimization.
Applsci 14 09698 g004
Figure 5. Codification proposal for the CLP LS MA optimization.
Figure 5. Codification proposal for the CLP LS MA optimization.
Applsci 14 09698 g005
Figure 6. Segment tracing of the progenitors for the proposed crossover operator for the CLP optimization. Bits 1, 2, 3 and 1’, 2’, 3’ are passed to the descendants, following a random assignment.
Figure 6. Segment tracing of the progenitors for the proposed crossover operator for the CLP optimization. Bits 1, 2, 3 and 1’, 2’, 3’ are passed to the descendants, following a random assignment.
Applsci 14 09698 g006
Figure 7. Representation of the GBLS intensification procedure applied to the selected LS individuals for the CLP optimization. The selection is repeated n s times per individual, up to n c movements per selection.
Figure 7. Representation of the GBLS intensification procedure applied to the selected LS individuals for the CLP optimization. The selection is repeated n s times per individual, up to n c movements per selection.
Applsci 14 09698 g007
Figure 8. Case scenario for evaluating the performance of the proposed methodology. The red rectangles represent the obstacles where no chair or table should be placed.
Figure 8. Case scenario for evaluating the performance of the proposed methodology. The red rectangles represent the obstacles where no chair or table should be placed.
Applsci 14 09698 g008
Figure 9. Obtained table distribution from the first phase of the sequential optimization, the LS MA for the TLP.
Figure 9. Obtained table distribution from the first phase of the sequential optimization, the LS MA for the TLP.
Applsci 14 09698 g009
Figure 10. Density plot for the distance distributions resulting from the different CLP optimization strategies.
Figure 10. Density plot for the distance distributions resulting from the different CLP optimization strategies.
Applsci 14 09698 g010
Figure 11. Attained chair and distance distribution from the proposed sequential optimization.
Figure 11. Attained chair and distance distribution from the proposed sequential optimization.
Applsci 14 09698 g011
Table 1. List of hyperparameters for the TLP LS MA optimization, adjusted experimentally following the methodology exposed in [50].
Table 1. List of hyperparameters for the TLP LS MA optimization, adjusted experimentally following the methodology exposed in [50].
ParameterValue
Number of Individuals300
Stop Criteria300 Generations or
90% Population Equal
Number of Points16,384
Number of Possible Solutions *1 3.68 × 10 109
Elitism Percentage15%
Selection TechniqueTournament 3
Crossover TechniqueMulti-Point 3
Mutation Percentage12% Population
12% Genotype
d s , d w 1.5 and 0.3 m
ε , Z2.5, 100
Table Dimensions1.9 × 0.9 m
C 1 , C 2 , C 3 1, 0.5, 1.5
C 4 *2, C 5 , C 6 7 + 0.03 · gen 1 , 14, 2
κ , X lim *3300, [0, 6]
a , b [1.5, 1.3, 1.25], 2
LS Criteria 1 per 15 generations
LS Individuals 20
n t , n s 8, 10
*1 Resulting from the combinatorial nature of the TLP [17] for 26 table distributions. *2  g e n is the number of underwent generations. *3   X lim represents the limits of the random variable X.
Table 2. List of hyperparameters for the CLP LS MA optimization, adjusted experimentally through the procedure stated in [50].
Table 2. List of hyperparameters for the CLP LS MA optimization, adjusted experimentally through the procedure stated in [50].
ParameterValue
Number of Individuals400
Stop Criteria400 Generations or
90% Population Equal
Number of Points2500
Number of Possible Solutions *1 N > 1.29 × 10 305
Elitism Percentage15%
Selection TechniqueTournament 3
Crossover TechniqueVariable Segmentation
Mutation Percentage15% Population
20% Genotype
d c , L 0 1 m, 50 bits
C 1 , C 2 , C 3 10, 5, 1
a , b [1.5, 1.3, 1.25], 2
LS Criteria 1 per 10 generations
LS Individuals 30
n s , n c 300, 90
C 7 , C 8 , C 9 15, 1.5, 2
X lim [0, 4]
*1 Resulting from the combinatorial nature of the CLP [17] for 105 chair distributions.
Table 3. Comparison among the different MDP optimization strategies for the CLP.
Table 3. Comparison among the different MDP optimization strategies for the CLP.
StrategyMean DistMin DistStandard Deviation
Max-mean2.72 m0.05 m1.14 m
Min-max2.49 m1.08 m1.01 m
Max-sum2.39 m0.02 m1.26 m
Mix2.53 m1.08 m1.01 m
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Ferrero-Guillén, R.; Martínez-Gutiérrez, A.; Álvarez, R.; Díez-González, J. Sequential Memetic Algorithm Optimization for Allocation Planning in Hostelry Establishments. Appl. Sci. 2024, 14, 9698. https://doi.org/10.3390/app14219698

AMA Style

Ferrero-Guillén R, Martínez-Gutiérrez A, Álvarez R, Díez-González J. Sequential Memetic Algorithm Optimization for Allocation Planning in Hostelry Establishments. Applied Sciences. 2024; 14(21):9698. https://doi.org/10.3390/app14219698

Chicago/Turabian Style

Ferrero-Guillén, Rubén, Alberto Martínez-Gutiérrez, Rubén Álvarez, and Javier Díez-González. 2024. "Sequential Memetic Algorithm Optimization for Allocation Planning in Hostelry Establishments" Applied Sciences 14, no. 21: 9698. https://doi.org/10.3390/app14219698

APA Style

Ferrero-Guillén, R., Martínez-Gutiérrez, A., Álvarez, R., & Díez-González, J. (2024). Sequential Memetic Algorithm Optimization for Allocation Planning in Hostelry Establishments. Applied Sciences, 14(21), 9698. https://doi.org/10.3390/app14219698

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop