sasoptpy.Model

class Model(**kwargs)[source]

Bases: object

Creates an optimization model

Parameters
namestring

Name of the model

sessionswat.cas.connection.CAS or saspy.SASsession, optional

CAS or SAS Session object

Examples

>>> from swat import CAS
>>> import sasoptpy as so
>>> s = CAS('cas.server.address', port=12345)
>>> m = so.Model(name='my_model', session=s)
NOTE: Initialized model my_model
>>> mip = so.Model(name='mip')
NOTE: Initialized model mip