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

.lp parser accepts rather broken input #1451

Closed
fuglede opened this issue Oct 10, 2023 · 1 comment
Closed

.lp parser accepts rather broken input #1451

fuglede opened this issue Oct 10, 2023 · 1 comment
Assignees

Comments

@fuglede
Copy link
Contributor

fuglede commented Oct 10, 2023

This came up in lovasoa/highs-js#35: If an .lp has the contents

blah blah not a good file

HiGHS will read the file and treat is as an empty model, when really, one would probably want an error that the input is broken. Indeed, the parser would throw an error on such an input in earlier versions of HiGHS.

@jajhall
Copy link
Member

jajhall commented Oct 10, 2023

Highs::readModel now returns HighsStatus::kError for this file. Fixed by #1453

@jajhall jajhall closed this as completed Oct 10, 2023
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

2 participants