powered by
This class represents a variable constrained to be non-negative.
NonNegative(rows = 1, cols = 1, name = NA_character_)# S4 method for NonNegative as.character(x)# S4 method for NonNegative canonicalize(object)# S4 method for NonNegative is_positive(object)# S4 method for NonNegative is_negative(object)
# S4 method for NonNegative as.character(x)
# S4 method for NonNegative canonicalize(object)
# S4 method for NonNegative is_positive(object)
# S4 method for NonNegative 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 '>NonNegative object.
canonicalize: Enforce that the variable be non-negative.
canonicalize
is_positive: Always true since the variable is non-negative.
is_positive
is_negative: Always false since the variable is non-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 <- NonNegative(3, 3) as.character(x) canonicalize(x) is_positive(x) is_negative(x) # }
Run the code above in your browser using DataLab