The MPS file format does not indicate whether the objective should be maximized or minimized, and each solver interprets this differently. The default in Gurobi is to minimize the objective from an MPS file. To instruct Gurobi to maximize the objective, add the lines:

OBJSENSE MAX

to the top of the MPS file. Note that `MAX` should be indented with 4 spaces.

## Comments

0 comments

Article is closed for comments.