Open stephenjmaher opened 1 year ago
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
Fixes #655
This PR makes it possible to set the objective sense in an MPS file. Currently, the objective sense in the MPS file is ignored. The sense needs to be supplied to
fromMPS
as a parameter.This change does the following:
sense
parameter inLpProblem.fromMPS
now defaults toNone
.readMPS
methods checks for the headerOBJSENSE
in the MPS file. If the header is encounter there are two options:or
both options are handled in the
readMPS
method.LpMinimize
.LpProblem.fromMPS
, then this overrides the sense that is specified in the MPS file.