Try our new documentation site (beta).
Model Attributes
These are model attributes, meaning that they are associated with the
overall model (as opposed to being associated with a particular
variable or constraint of the model). You should use one of the
various get
routines to retrieve the value of an attribute.
These are described at the beginning of
this section).
For the object-oriented interfaces, model attributes are retrieved by
invoking the get
method on the model object itself. For
attributes that can be modified directly by the user, you can use one
of the various set
methods.
Attempting to query an attribute that is not available will produce an
error. In C, the attribute query routine will return a
GRB_ERROR_DATA_NOT_AVAILABLE
error code. The object-oriented
interfaces will throw an exception.
Subsections
- NumConstrs
- NumVars
- NumSOS
- NumQConstrs
- NumGenConstrs
- NumNZs
- DNumNZs
- NumQNZs
- NumQCNZs
- NumIntVars
- NumBinVars
- NumPWLObjVars
- ModelName
- ModelSense
- ObjCon
- ObjVal
- ObjBound
- ObjBoundC
- PoolObjBound
- PoolObjVal
- MIPGap
- Runtime
- Status
- SolCount
- IterCount
- BarIterCount
- NodeCount
- IsMIP
- IsQP
- IsQCP
- IsMultiObj
- IISMinimal
- MaxCoeff
- MinCoeff
- MaxBound
- MinBound
- MaxObjCoeff
- MinObjCoeff
- MaxRHS
- MinRHS
- MaxQCCoeff
- MinQCCoeff
- MaxQCLCoeff
- MinQCLCoeff
- MaxQCRHS
- MinQCRHS
- MaxQObjCoeff
- MinQObjCoeff
- Kappa
- KappaExact
- FarkasProof
- TuneResultCount
- NumStart
- LicenseExpiration
- Server