Model.
to_optmodel
Returns the model in OPTMODEL format
Examples
>>> print(n.to_optmodel()) proc optmodel; var y init 2; min myobj = 2 * y; solve; quit;