Skip to main content

Writing a .lp file

Answered

Comments

2 comments

  • Official comment
    Simranjit Kaur
    • Gurobi Staff
    This post is more than two years old. Some information may not be up to date. For current information, please check the Gurobi Documentation or Knowledge Base. If you need more help, please create a new post in the community forum, or try Gurobot, our chatbot interface offering instant, expert-level support.
  • 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

Post is closed for comments.