BinarySymbolGenerator¶
- class BinarySymbolGenerator¶
A generator of binary variables. Deprecated.
Use
VariableGenerator, which takes the type of the variable as its first argument. Every method of this class calls that generator with the type “Binary”.Methods
Make an array of binary variables.
Make a matrix of binary variables.
Make one binary variable.
Attributes
The variables that this generator made.
- __init__()¶
- array(*args, **kwargs)¶
Make an array of binary variables.
- Returns:
The array that
array()made with “Binary”.
- matrix(*args, **kwargs)¶
Make a matrix of binary variables.
- Returns:
The matrix that
matrix()made with “Binary”.
- scalar(*args, **kwargs)¶
Make one binary variable.
- Returns:
The variable that
scalar()made with “Binary”.
- __deprecated__ = 'BinarySymbolGenerator is deprecated since amplify v1.0.0 and will no longer support in the near future.\nUse VariableGenerator instead. Please see the migration guide for details: https://amplify.fixstars.com/docs/amplify/v1/migration.html'¶