def _calculate_queue(self, n_agents, t_1, t_2, t_3):
    'Calculates the number of agents that belongs to each queue.\n\n        Args:\n            n_agents (int): Number of agents.\n            t_1 (float): Fitness value of first agent in the population.\n            t_2 (float): Fitness value of second agent in the population.\n            t_3 (float): Fitness value of third agent in the population.\n\n        Returns:\n            The number of agents in first, second and third queues.\n\n        '
    if (t_1 > c.EPSILON):
        n_1 = ((1 / t_1) / (((1 / t_1) + (1 / t_2)) + (1 / t_3)))
        n_2 = ((1 / t_2) / (((1 / t_1) + (1 / t_2)) + (1 / t_3)))
        n_3 = ((1 / t_3) / (((1 / t_1) + (1 / t_2)) + (1 / t_3)))
    else:
        n_1 = (1 / 3)
        n_2 = (1 / 3)
        n_3 = (1 / 3)
    q_1 = int((n_1 * n_agents))
    q_2 = int((n_2 * n_agents))
    q_3 = int((n_3 * n_agents))
    return (q_1, q_2, q_3)
Calculates the number of agents that belongs to each queue.

Args:
    n_agents (int): Number of agents.
    t_1 (float): Fitness value of first agent in the population.
    t_2 (float): Fitness value of second agent in the population.
    t_3 (float): Fitness value of third agent in the population.

Returns:
    The number of agents in first, second and third queues.
def _calculate_queue(self, n_agents, t_1, t_2, t_3):
    'Calculates the number of agents that belongs to each queue.\n\n        Args:\n            n_agents (int): Number of agents.\n            t_1 (float): Fitness value of first agent in the population.\n            t_2 (float): Fitness value of second agent in the population.\n            t_3 (float): Fitness value of third agent in the population.\n\n        Returns:\n            The number of agents in first, second and third queues.\n\n        '
    if (t_1 > c.EPSILON):
        n_1 = ((1 / t_1) / (((1 / t_1) + (1 / t_2)) + (1 / t_3)))
        n_2 = ((1 / t_2) / (((1 / t_1) + (1 / t_2)) + (1 / t_3)))
        n_3 = ((1 / t_3) / (((1 / t_1) + (1 / t_2)) + (1 / t_3)))
    else:
        n_1 = (1 / 3)
        n_2 = (1 / 3)
        n_3 = (1 / 3)
    q_1 = int((n_1 * n_agents))
    q_2 = int((n_2 * n_agents))
    q_3 = int((n_3 * n_agents))
    return (q_1, q_2, q_3)