The MPS file format does not indicate whether the objective should be maximized or minimized, and each solver interprets this differently. By default, Gurobi assumes the objective function of an MPS file should be *minimized*.

To instruct Gurobi to maximize the objective function, add the lines

OBJSENSE

MAX

to the top of the MPS file. Note that `MAX` should be indented by four spaces.

### Further information