Skip to main content

Cannot set objective function in Gurobi model C++

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.
  • Jaromił Najman
    • Gurobi Staff

    Hi Giorgos,

    In your code snippet, I cannot find a call to \(\texttt{init_d_matrix}\), which would initialize the matrix entries and create the \(\texttt{x}\) variables.

    Best regards, 
    Jaromił

    0

Post is closed for comments.