Filter Content By
Version
Text Search
Error handling
Errors in the Gurobi .NET interface are handled through the .NET exception mechanism. In the example, all Gurobi statements are enclosed inside atry
block, and any associated errors would be caught by thecatch
block:
} catch (GRBException e) { Console.WriteLine("Error code: " + e.ErrorCode + ". " + e.Message); }