sasoptpy.Model.get_problem_summary

Model.get_problem_summary(self)[source]

Returns the problem summary table to the user

Returns
psswat.dataframe.SASDataFrame

Problem summary table, that is obtained after Model.solve()

Examples

>>> m.solve()
>>> ps = m.get_problem_summary()
>>> print(type(ps))
<class 'swat.dataframe.SASDataFrame'>
>>> print(ps)
Problem Summary
                                Value
Label
Problem Name                   model1
Objective Sense          Maximization
Objective Function                obj
RHS                               RHS
Number of Variables                 2
Bounded Above                       0
Bounded Below                       2
Bounded Above and Below             0
Free                                0
Fixed                               0
Number of Constraints               2
LE (<=)                             1
EQ (=)                              0
GE (>=)                             1
Range                               0
Constraint Coefficients             4
>>> print(ps.index)
Index(['Problem Name', 'Objective Sense', 'Objective Function', 'RHS',
'', 'Number of Variables', 'Bounded Above', 'Bounded Below',
'Bounded Above and Below', 'Free', 'Fixed', '',
'Number of Constraints', 'LE (<=)', 'EQ (=)', 'GE (>=)', 'Range', '',
'Constraint Coefficients'],
dtype='object', name='Label')
>>> print(ps.loc['Number of Variables'])
Value               2
Name: Number of Variables, dtype: object
>>> print(ps.loc['Constraint Coefficients', 'Value'])
4