Hello,
I am using the pywraplp.Solver.CreateSolver('SCIP') to solve a NFM.
I would like to return all optimal sulutions.
Somehow, I only get one optimal solution. All the other solutions have a higher objective value.
status = self.m.Solve()
if status == pywraplp.Solver.OPTIMAL:
print('Solution: 1')
print('Objective value =', self.m.Objective().Value())
for i in range(2,11):
print("Solution: ", i)
status_next = self.m.NextSolution()
print(status_next)
if status_next == pywraplp.Solver.OPTIMAL:
print('Objective value =', self.m.Objective().Value())