sasoptpy.Model.get_statements¶
-
Model.
get_statements
(self)[source]¶ Returns a list of all statements inside the model
- Returns
- st_listlist
List of all statement objects
Examples
>>> m.add_statement(so.abstract.LiteralStatement("expand;")) >>> m.get_statements() [<sasoptpy.abstract.statement.literal.LiteralStatement object at 0x7fe0202fc358>] >>> print(m.to_optmodel()) proc optmodel; var x; min obj1 = x * x; expand; solve; quit;