Opened 12 years ago

Closed 11 years ago

#24 closed defect (worksforme)

Comment lines (indicated by a '\') are not recognized in the LP file reader

Reported by: achterberg Owned by: forrest
Priority: minor Component: component1
Version: 1.0 Keywords: LP reader
Cc:

Description

The CBC LP file reader (CPLEX LP format) seems to be confused by comment lines. For example, reading the "enlight4.lp" instance from the contributed section of the MIPLIB2003 does not work:

Coin Cbc and Clp Solver version 1.01.00, build Jun 29 2007
CoinSolver takes input from arguments ( - switches to stdin)
Enter ? for list of commands or help
Coin:
Coin:seconds 3600
seconds was changed from 1e+100 to 3600
Coin:ratioGap 0.0
ratioGap was changed from 0 to 0
Coin:maxNodes 2100000000
maxNodes was changed from 2147483647 to 2100000000
Coin:import IP/enlight/enlight4.lp
At line 1 \This file was automatically generated by Zimpl
Unknown image \This file was automatically generated by Zimpl at line 1 of file ./IP/enlight/enlight4.lp
 There were -2 errors when importing model from ./IP/enlight/enlight4.lp
There were -2 errors on input

This was using the SVN version 1.02 of CBC from 28 June 2007.

Attachments (1)

enlight4.lp (2.1 KB) - added by achterberg 12 years ago.
LP file that produces the reader bug

Download all attachments as: .zip

Change History (3)

Changed 12 years ago by achterberg

LP file that produces the reader bug

comment:1 Changed 12 years ago by forrest

  • Owner changed from somebody to forrest
  • Status changed from new to assigned

Not really anything to do with Cbc - however I will see if it is easy to fix.

comment:2 Changed 11 years ago by ladanyi

  • Resolution set to worksforme
  • Status changed from assigned to closed

I just tried and neither trunk nor stable/2.0 has a problem reading the attached file.

So the bug has probably been fixed, just the ticket was not updated.

--Laci

Note: See TracTickets for help on using tickets.