Vtype ¶
Enumeration of variable types supported by the optimization system.
This enum defines the type of a variable used in a model. The type influences the domain and behavior of the variable during optimization. It is often passed when defining variables to specify how they should behave.
Attributes:
| Name | Type | Description |
|---|---|---|
Real | Vtype | Continuous real-valued variable. Can take any value within given bounds. |
Integer | Vtype | Discrete integer-valued variable. Takes integer values within bounds. |
Binary | Vtype | Binary variable. Can only take values 0 or 1. |
Spin | Vtype | Spin variable. Can only take values -1 or +1. |
Examples:
Binary class-attribute ¶
Enumeration of variable types supported by the optimization system.
This enum defines the type of a variable used in a model. The type influences the domain and behavior of the variable during optimization. It is often passed when defining variables to specify how they should behave.
Attributes:
| Name | Type | Description |
|---|---|---|
Real | Vtype | Continuous real-valued variable. Can take any value within given bounds. |
Integer | Vtype | Discrete integer-valued variable. Takes integer values within bounds. |
Binary | Vtype | Binary variable. Can only take values 0 or 1. |
Spin | Vtype | Spin variable. Can only take values -1 or +1. |
Examples:
Integer class-attribute ¶
Enumeration of variable types supported by the optimization system.
This enum defines the type of a variable used in a model. The type influences the domain and behavior of the variable during optimization. It is often passed when defining variables to specify how they should behave.
Attributes:
| Name | Type | Description |
|---|---|---|
Real | Vtype | Continuous real-valued variable. Can take any value within given bounds. |
Integer | Vtype | Discrete integer-valued variable. Takes integer values within bounds. |
Binary | Vtype | Binary variable. Can only take values 0 or 1. |
Spin | Vtype | Spin variable. Can only take values -1 or +1. |
Examples:
Real class-attribute ¶
Enumeration of variable types supported by the optimization system.
This enum defines the type of a variable used in a model. The type influences the domain and behavior of the variable during optimization. It is often passed when defining variables to specify how they should behave.
Attributes:
| Name | Type | Description |
|---|---|---|
Real | Vtype | Continuous real-valued variable. Can take any value within given bounds. |
Integer | Vtype | Discrete integer-valued variable. Takes integer values within bounds. |
Binary | Vtype | Binary variable. Can only take values 0 or 1. |
Spin | Vtype | Spin variable. Can only take values -1 or +1. |
Examples:
Spin class-attribute ¶
Enumeration of variable types supported by the optimization system.
This enum defines the type of a variable used in a model. The type influences the domain and behavior of the variable during optimization. It is often passed when defining variables to specify how they should behave.
Attributes:
| Name | Type | Description |
|---|---|---|
Real | Vtype | Continuous real-valued variable. Can take any value within given bounds. |
Integer | Vtype | Discrete integer-valued variable. Takes integer values within bounds. |
Binary | Vtype | Binary variable. Can only take values 0 or 1. |
Spin | Vtype | Spin variable. Can only take values -1 or +1. |
Examples: