I don't know much about Python-mip but looking at the code,
maximize expects a
LinExpr, so I tried:
model.objective = maximize(1*x)
which gives the expected output.
Edit: I also opened a PR to allow
Edit: The PR has been merged, this won'tshouldn't be a problem in