Symbols#
Symbols are a model’s decision variables, intermediate variables, constants, and mathematical operations.
Model Symbols#
Some of the methods for these symbols (e.g., file operations) are intended mostly for package developers.
Absolute value element-wise on a symbol. |
|
Addition element-wise of two symbols. |
|
Tests whether all elements evaluate to True. |
|
Boolean AND element-wise between two symbols. |
|
Advanced indexing. |
|
Basic indexing. |
|
Binary decision-variable symbol. |
|
Constant symbol. |
|
Disjoint-sets decision-variable symbol. |
|
Disjoint-sets successor symbol. |
|
Disjoint-lists decision-variable symbol. |
|
Disjoint-lists successor symbol. |
|
Equality comparison element-wise between two symbols. |
|
Integer decision-variable symbol. |
|
Smaller-or-equal comparison element-wise between two symbols. |
|
List decision-variable symbol. |
|
Maximum value in the elements of a symbol. |
|
Maximum values in an element-wise comparison of two symbols. |
|
Minimum value in the elements of a symbol. |
|
Minimum values in an element-wise comparison of two symbols. |
|
Multiplication element-wise between two symbols. |
|
Addition element-wise of N symbols. |
|
Maximum values in an element-wise comparison of N symbols. |
|
Minimum values in an element-wise comparison of N symbols. |
|
Multiplication element-wise between N symbols. |
|
Numerical negative element-wise on a symbol. |
|
Boolean OR element-wise between two symbols. |
|
Permutation of the elements of a symbol. |
|
Product of the elements of a symbol. |
|
Quadratic model. |
|
Reshaped symbol. |
|
Subtraction element-wise of two symbols. |
|
Set decision-variable symbol. |
|
Squares element-wise of a symbol. |
|
Sum of the elements of a symbol. |
Inherited Methods#
- class ArraySymbol#
Base class for symbols that can be interpreted as an array.
The following ArraySymbol
methods
are inherited by the model symbols.
|
Create an |
|
Return the initialization status of the indexed state. |
|
Create a |
|
Compare to another symbol. |
|
Create a |
|
Return the number of dimensions for a symbol. |
|
Create a |
|
Create a |
|
Create a |
|
Return the shape of the symbol. |
|
Return the number of elements in the symbol. |
|
Return the state of the node. |
Return an estimated byte-size of the state. |
|
|
Return the stride length, in bytes, for traversing a symbol. |
- class Symbol#
Base class for symbols.
Each symbol corresponds to a node in the directed acyclic graph representing the problem.
The following Symbol
methods
are inherited by the ArraySymbol
class and model symbols.
|
Compare whether two nodes are identical. |
|
Return the initialization status of the indexed state. |
Iterate over a node's predecessors in the model. |
|
Iterate over a node's successors in the model. |
|
|
Compare to another node. |
|
Reset the state of a node and any successor symbols. |
|
Determine if two symbols share memory. |
Return an estimated size, in bytes, of the node's state. |
|
Topological index of the node. |