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

def parameters(self):

    params = self.objective.parameters()
    for constr in self.constraints:
        params += constr.parameters()
    return list(set(params))
