Skip to content

bug: lp-file error: Unrecognized variable bound #541

@FBumann

Description

@FBumann

Version Checks (indicate both or one)

  • I have confirmed this bug exists on the lastest release of Linopy.

  • I have confirmed this bug exists on the current master branch of Linopy.

Issue Description

When solving a linopy model through the lp-api get an error from gurobipy:

Set parameter Username
Academic license - for non-commercial use only - expires 2026-12-18
Error reading LP format file /private/var/folders/7j/18_93__x4wl2px44pq3f570m0000gn/T/linopy-problem-zxm32_f3.lp at line 21326335
Unrecognized variable bound
Neighboring tokens: " +-0.0 <= x76271 <= +0.0 +-0.0 <= x76272 <= "

Reproducible Example

Working on it

Expected Behavior

Solve as expected (-0.0 == +0.0)

Installed Versions

Details Replace this line.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions