Model#
- class Model(_impl)[source]#
Top-level container in modelx object hierarchy.
Model instances are the top-level objects and directly contain
UserSpace
objects, which in turn contain other spaces orCells
objects.A model can be created by
new_model()
API function.
Model properties#
Name of the object. |
|
Dotted name of the object. |
|
Documentation string |
|
The model this object belongs to. |
|
The parent of this object. |
|
Whether a cells can have None as its value. |
|
A mapping of the names of child spaces to the Space objects |
|
Return a mapping of global references. |
|
List of |
|
A directed graph of cells. |
Model operations#
|
Close the model. |
|
Rename the model itself |
|
Set property |
Saving operations#
|
Write model to files. |
|
Archive model to a zip file. |
|
Back up the model to a file. |
|
Back up the model to a file. |
Child Space operations#
|
Set the current space to Space |
|
Create a child space. |
|
Create a child space from an module. |
|
Create spaces from from a comma-separated values (csv) file. |
|
Create a child space from an Excel range. |
|
Create a child space from an module. |
|
Create child spaces from Pandas DataFrame or Series. |
Reference operations#
|
Create a Reference bound to a pandas DataFrame or Series associating a new |
|
Assigns a user module to a Reference associating a new |
|
Creates a Reference to an Excel range |
|
Update a pandas object assigned to References |
|
Update an user-defined module assigned to References |
|
Get IOSpec associated with |
|
Delete IOSpec associate with |
Run operations#
|
Generates actions for memory-optimized run |
|
Performs memory-optimized run |