def get_varkeys(constraints):
    """
    Finds all of the variables in the constraints
    :param constraints: GPkit constraints
    :return: GPkit variables
    """
    variables = set()
    for constraint in constraints:
        variables = variables.union(constraint.varkeys)
    return variables