Skip to content

[bug] Return an error for inconsistent imported NL bounds #122

Open

Description

@GermanHeim

Describe the bug
Importing a variable with bounds such as 10 <= x <= 0 reaches the infallible core variable builder and panics. A malformed input file should produce a reader error.

Expected behaviour
We should validate decoded bound pairs before constructing the model and return IoError::InvalidNl identifying the b section and the offending variable index when the lower bound exceeds the upper bound.

We should preserve legitimate unbounded variables and fixed variables. Also, we should follow the core bound contract without using panic catching as validation.

Additional context
This issue is tagged good first issue specifically to help new contributors get hands-on with the codebase and wants to contribute in the long term. Please do not use AI for this issue.

Activity

  1. added
    bug
    good first issue
    io
    on Oct 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    buggood first issueio

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions