sasoptpy.Model.get_solution_summary¶
-
Model.
get_solution_summary
(self)[source]¶ Returns the solution summary table to the user
- Returns
- ss
swat.dataframe.SASDataFrame
Solution summary table, that is obtained after
Model.solve()
- ss
Examples
>>> m.solve() >>> soln = m.get_solution_summary() >>> print(type(soln)) <class 'swat.dataframe.SASDataFrame'>
>>> print(soln) Solution Summary Value Label Solver LP Algorithm Dual Simplex Objective Function obj Solution Status Optimal Objective Value 10 Primal Infeasibility 0 Dual Infeasibility 0 Bound Infeasibility 0 Iterations 2 Presolve Time 0.00 Solution Time 0.01
>>> print(soln.index) Index(['Solver', 'Algorithm', 'Objective Function', 'Solution Status', 'Objective Value', '', 'Primal Infeasibility', 'Dual Infeasibility', 'Bound Infeasibility', '', 'Iterations', 'Presolve Time', 'Solution Time'], dtype='object', name='Label')
>>> print(soln.loc['Solution Status', 'Value']) Optimal