'Returns a list of the variables in the problem.'

def variables(self):

    vars_ = self.objective.variables()
    for constr in self.constraints:
        vars_ += constr.variables()
    return list(set(vars_))
