8.7. Attributes during modeling and solving¶
Attributes allow you to access and modify the model by using APIs and obtain the status of the optimization solution. Attributes are classified as follows:
Model attributes: These attributes use scalar values whereas variable and linear constraint attributes contain an entry of each variable or constraint in the model. You can use the methods provided by these APIs to query the attribute value of a single constraint or variable, or query the attribute values of a constraint or variable array. Generally, array-based query is more efficient. For more information about examples, see the examples in the API document.
Solution attributes: Solution attributes are similar to model attributes but specific to the optimization solution.
Simplex method attributes: These attributes use scalar values.
Interior point method (IPM) attributes: These attributes use scalar values.
- 8.7.1. Model attributes
- 8.7.2. Solution attributes
- 8.7.2.1. “SolutionTime”
- 8.7.2.2. “PresolverTime”
- 8.7.2.3. “SolverTime”
- 8.7.2.4. “HasSolution”
- 8.7.2.5. “HasPrimalRay”
- 8.7.2.6. “HasDualRay”
- 8.7.2.7. “PrimalObjVal”
- 8.7.2.8. “DualObjVal”
- 8.7.2.9. “PrimalSoln”
- 8.7.2.10. “DualSoln”
- 8.7.2.11. “ColBasis”
- 8.7.2.12. “RowBasis”
- 8.7.2.13. “Activity”
- 8.7.2.14. “ReducedCost”
- 8.7.2.15. “SymMatPrimalSoln”
- 8.7.2.16. “MIP/GapAbs”
- 8.7.2.17. “MIP/GapRel”
- 8.7.3. Simplex method attributes
- 8.7.4. IPM attributes