Model.getAttr()

getAttr ( attrname )

Query the value of a model attribute. The full list of available attributes can be found in the Attributes section.

Example usage:

  print model.numintvars
  print model.getAttr("numIntVars")
  print model.getAttr(GRB.attr.numIntVars)