I've tried to replicate the below code for my own optimization problem.
However, I only get one loop.
When printing the objectives below without calling the method value(), each objective is True. For mine they are False.
How do I interpret these results?
Many thanks.
x, y = Ints('x y')
opt = Optimize()
opt.set(priority='pareto')
opt.add(x + y == 10, x >= 0, y >= 0)
mx = opt.maximize(x)
my = opt.maximize(y)
while opt.check() == sat:
print (mx.value(), my.value())