sasoptpy.Model¶
-
class
Model
(**kwargs)[source]¶ Bases:
object
Creates an optimization model
- Parameters
- namestring
Name of the model
- session
swat.cas.connection.CAS
orsaspy.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