sasoptpy.Model.to_optmodel

Model.to_optmodel(self, **kwargs)[source]

Returns the model in OPTMODEL format

Examples

>>> print(n.to_optmodel())
proc optmodel;
var y init 2;
min myobj = 2 * y;
solve;
quit;