def is_integral(problem):
    """
    Returns True if all variables in the current solution 
    to the given LP relaxation are integral; False otherwise.
    """
    for var in problem.variables():
        if not (var.value() == int(var.value())):
            return False

    return True