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
It seems that a missing newline at the end of an
.lp
file causes parsing problems and then throws a funny warning: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