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

Correctly Report Invalid Row Names #1799

Merged
merged 1 commit into from
Jun 12, 2024

Conversation

jens-diewald
Copy link
Contributor

@jens-diewald jens-diewald commented Jun 11, 2024

Otherwise, HiGHS may silently not write an MPS file when it runs into invalid row names and still return kOK.

I ran into this with a model that has long names with spaces in it.
Presumably a silly typo or copy&paste error.

This is the minimal fix, but some log message indicating what went wrong may also be nice.
Maybe it would be even better to just include this in the construct_names case in normaliseNames. That way, the MPS would still be written with constructed names, a warning message would be printed and kWarning would be returned.
What do you think?

Otherwise, HiGHS may silently not write an MPS file
when it runs into invalid row names and still return kOK.
@jajhall
Copy link
Member

jajhall commented Jun 11, 2024

Thanks for spotting this. I'll look at this soon and consider your suggestion

@galabovaa galabovaa merged commit 718dd79 into ERGO-Code:latest Jun 12, 2024
109 checks passed
@jens-diewald jens-diewald deleted the invalid-row-names branch June 12, 2024 14:11
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

Successfully merging this pull request may close these issues.

3 participants