powered by
This class represents a boolean variable.
Bool(rows = 1, cols = 1, name = NA_character_)# S4 method for Bool as.character(x)# S4 method for Bool canonicalize(object)# S4 method for Bool is_positive(object)# S4 method for Bool is_negative(object)
# S4 method for Bool as.character(x)
# S4 method for Bool canonicalize(object)
# S4 method for Bool is_positive(object)
# S4 method for Bool is_negative(object)
The number of rows in the variable.
The number of columns in the variable.
(Optional) A character string representing the name of the variable.
A '>Bool object.
canonicalize: Enforce that the variable be boolean.
canonicalize
is_positive: A boolean variable is always positive or zero.
is_positive
is_negative: A boolean variable is never negative.
is_negative
id
(Internal) A unique identification number used internally.
rows
cols
name
primal_value
(Internal) The primal value of the variable stored internally.
# NOT RUN { x <- Bool(3, name = "indicator") ## Boolean 3-vector y <- Bool(3, 3) ## Matrix boolean name(x) as.character(x) canonicalize(y) is_positive(x) is_negative(y) # }
Run the code above in your browser using DataLab