Skip to main content

Comments

2 comments

  • Simranjit Kaur
    Gurobi Staff 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

    1
  • Pirmin
    Gurobi-versary
    First Question
    First Comment

    Thank you!

    0

Please sign in to leave a comment.