@staticmethod
def parameters_dict(parameters):
    """
        Create and return a dict from a list of PSO parameters.
        This is useful for printing the named parameters.

        :param parameters: List with PSO parameters assumed to be in the correct order.
        :return: Dict with PSO parameters.
        """
    return {'num_particles': parameters[0], 'omega': parameters[1], 'phi_p':
        parameters[2], 'phi_g': parameters[3]}
