I have a model that returns multiple solutions. Is there a way I can write the suboptimal solutions to a file?
I was hoping that I could do something like the following:
for i in range(model.getAttr("SolCount")):
model.params.SolutionNumber = i
However, it only seems to save the optimal solution all the time. Is there a way to get around this?
Please sign in to leave a comment.