Skip to main content

Writing a .lp file

Answered

Comments

1 comment

  • Simranjit Kaur
    • Gurobi Staff

    Hi Dhruv,

    Your LP file is in the correct format.  One way to check this is to navigate to the location of your LP file and run the following commands with Python:

    import gurobipy as gp
    model = gp.read("powerloss.lp")

    It seems the error is due to your code not being able to locate/open the LP file. Please ensure your code can access the file.

    Best regards,
    Simran

    0

Please sign in to leave a comment.