coin-or / coin-or/CoinUtils

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

Open
#93 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
53
Forks
47
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

Research direction

Start in CoinUtils/src/CoinMpsIO.cpp at CoinMpsIO::readGMPL and inspect how it handles a model with no data section or external data file. Reproduce the failure with a GMPL model matching one of the listed cases, then verify that parsing completes without termination and that existing model/data behavior remains unchanged.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.