def _recompute_best(results):
    """_recompute_best.

    Internal helper function for the AnnealResults class. Computes the best
    AnnealResult in an AnnealResults object.

    Parameters
    ----------
    results : AnnealResults object.

    Returns
    -------
    res : AnnealResult object.
        The AnnealResult from ``results`` with the lowest value.

    """
    best = None
    for r in results:
        if best is None or r.value < best.value:
            best = r
    return best