Skip to main content

GRBgeterrormsg() vs GRBgetmerrormsg()

Ongoing

Comments

2 comments

  • Maliheh Aramon
    • Gurobi Staff

    Hi Mike, 

    As you know, only GRBgeterrormsg() function is included in our official documentation. Therefore, we recommend using this officially documented function.

    You are correct that the Gurobi C API includes a function named GRBgetmerrormsg(GRBmodel *model). However, this function internally calls GRBgeterrormsg() after verifying the validity of the model pointer. Is there a specific reason you prefer to use GRBgetmerrormsg instead of GRBgeterrormsg?

    Best regards,

    Maliheh

    0
  • Mike Heinen
    • Gurobi-versary
    • First Comment
    • First Question

    No reason other than making the code a little cleaner on our end.

    0

Please sign in to leave a comment.