def get_set_members(instance, sets):
    """Get set members relative to a list of sets
    :param instance: Pyomo Instance
    :param sets: List of strings with the set names
    :return: A list with the set members
    """
    sm = []
    for s in sets:
        sm.append([v for v in getattr(instance, s).data()])
    return sm