Skip to main content

Comments

3 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 Pirmin,

    Similar to Python API, to suppress all console output from Gurobi with C++ API, we can set the OutputFlag to 0 before the Gurobi environment is started. 

    //create an empty environment
    GRBEnv env = GRBEnv(true);

    env.set(GRB_IntParam_OutputFlag, 0);
    env.start();

    Best regards,
    Simran

    3
  • Pirmin
    • Gurobi-versary
    • First Question
    • First Comment

    Thank you!

    0

Post is closed for comments.