Skip to main content

Why is attribute nodeCount double?

Answered

Comments

3 comments

  • Jaromił Najman
    Gurobi Staff Gurobi Staff

    Hi Alberto,

    The NodeCount can exceed values of \(2^{32}\). A double is the easiest standard data type that can cope with this. 64 bit integers might also work but they depend on the operating system, thus to not overcomplicate things, the NodeCount attribute is of double type.

    Best regards,
    Jaromił

    0
  • Alberto Torrejón Valenzuela
    First Comment
    First Question

    Thank you so much for the kind replay Jaromił.

    Excuse my ignorance about data types, but what would 166.5 nodes explored mean then?

    Alberto

    0
  • Jaromił Najman
    Gurobi Staff Gurobi Staff

    There will be no 0.X nodes reported, i.e., you can safely convert the NodeCount to an integer. The double data type is only used to allow for very large numbers and not to report a partial NodeCount.

    Best regards,
    Jaromił

    0

Please sign in to leave a comment.