CoinUtils icon indicating copy to clipboard operation
CoinUtils copied to clipboard

Method CoinMpsIO::readGMPL fails for GMPL model files without data section

Open svigerske opened this issue 5 years ago • 2 comments

Issue created by migration from Trac.

Original creator: xypron

Original creation time: 2008-12-24 03:30:55

Assignee: @mjsaltzman

Version: 0.99

GMPL model files without data section can exist. Unfortunately method CoinMpsIO::readGMPL either wants a data section or a data file to be given. Otherwise it terminates.

Data sections are not necessary in the following cases

  • parameters are fully specified in the model section
  • data is generated via random number generator
  • data is read via the table IN statement from a file or a SQL data base

Please, check the appended patch file.

You can also have a look at the differences under the following URL [http://glpk.dyndns.org/viewvc/svn/coin-or/tags/coin-Osi-Y99/CoinUtils/src/CoinMpsIO.cpp?59f4d6c83d=376&726397de14=368&view=diff]

Best regards

Xypron

svigerske avatar Mar 02 '19 20:03 svigerske

Attachment CoinMpsIO.cpp.patch by xypron created at 2008-12-24 03:31:41

Patch to allow multiple data files

svigerske avatar Mar 02 '19 20:03 svigerske

Comment by xypron created at 2008-12-24 03:34:07

The patch file description is wrong. It should be "Patch to allow models w/o data section"

svigerske avatar Mar 02 '19 20:03 svigerske