def remove_rectangle(rlist, u_low, u):
    """
    Function to remove non-optimal rectangle
    from the list of rectangles

    Parameters
    ----------
    rlist : list
        List of rectangles.
    u_low : list
        Lower bound of the rectangle to remove.
    u : list
        Upper bound of the rectangle to remove.

    Returns
    -------
    list
        Updated list of rectangles.

    """

    return [r for r in rlist if r != [u_low, u]]