Skip to main content

A simple rolling-horizon model is implemented using gurobi, but the result is wrong.(C++ api)

Answered

Comments

2 comments

  • Official comment
    Simranjit Kaur
    • Gurobi Staff
    This post is more than three 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.
  • Jaromił Najman
    • Gurobi Staff

    You could use the GRBModel::write() method to write your model to a human readable LP file

    model.write("myModel.lp")

    and then analyze the generated file named \(\texttt{myModel.lp}\). Maybe there is something missing or wrong in your model construction which you should be able to see in the file.

    Best regards, 
    Jaromił

    0

Post is closed for comments.