Skip to main content

Please correct my code

Answered

Comments

3 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 why not try our AI Gurobot?.
  • Matthias Miltenberger
    • Gurobi Staff

    Hi!

    You are creating an empty environment using

    GRBEnv env = new GRBEnv(true);

    Please just use the normal environment constructor (without the \(\texttt{true}\) argument) to make Gurobi find your license and start a proper environment. Alternatively, you need to start the environment explicitly, using

    env.start()

    Cheers,
    Matthias

    0
  • Matthias Miltenberger Thank you so much.

    0

Post is closed for comments.