Skip to main content

C# — How to suppress “Set parameter LicenseID to value …” despite LogToConsole=0 and OutputFlag=0

Answered

Comments

1 comment

  • Simranjit Kaur
    • Gurobi Staff

    Hi Yuan,

    To suppress all Gurobi logging, including LicenseID information, you need to set the parameter OutputFlag or LogToConsole to 0 on an empty environment before it is started. 

    GRBEnv env = new GRBEnv(true);
    env.Set(GRB.IntParam.LogToConsole, 0);
    env.Set(GRB.IntParam.OutputFlag, 0);
    env.Start();

    I hope this helps!

    Best regards,
    Simran

    0

Please sign in to leave a comment.