Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

missing newline / end of line at end of .lp file gives funny error message #145

Closed
dlaehnemann opened this issue Feb 18, 2021 · 1 comment

Comments

@dlaehnemann
Copy link

It seems that a missing newline at the end of an .lp file causes parsing problems and then throws a funny warning:

Welcome to the CBC MILP Solver 
Version: devel 
Build Date: Feb 18 2021 

command line - /path/to/bin/cbc no_eol_at_file_end.lp solve (default strategy 1)
### CoinLpIO::readLp(): Binary variable End5702_35702 does not appear in objective function or constraints
#CoinLpIO scan_next(): End inserted
Line 1 End
### CoinLpIO::readLp(): Binary variable  does not appear in objective function or constraints

It seems to then run forever without any further output, so I am assuming that the parsing does go awry altogether and runs into some endless loop (without grabbing memory, though).

A minimal example is attached, just rename it to the correct file extension .lp:
no_eol_at_file_end.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant