coin-or / pulp

A python Linear Programming API
http://coin-or.github.io/pulp/
Other
2.04k stars 381 forks source link

reading MPS file doesn't parse the objective sense #655

Open stephenjmaher opened 1 year ago

stephenjmaher commented 1 year ago

Describe the new feature

When reading an MPS file, the objective sense is not parsed. The objective sense has to been passed to fromMPS as a parameter before reading the instance.

I would like add to the readMPS method to parse the objective sense, if it is specified in the file. If the objective sense is not specified, then the sense defaults to LpMinimize.