Skip to main content

Why is attribute nodeCount double?

Answered

Comments

4 comments

  • Official comment
    Simranjit Kaur
    Gurobi Staff Gurobi Staff
    This post is more than three years old. Some information may not be up to date. For current information, please check the Gurobi Documentation or Knowledge Base. If you need more help, please create a new post in the community forum. Or why not try our AI Gurobot?.
  • 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
    Gurobi-versary
    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

Post is closed for comments.