types (Set/Get) | R Documentation |
The types of a given optimization problem (OP)
can be accessed or mutated via the method 'types'
.
types(x)
types(x) <- value
x |
an object used to select the method. |
value |
an R object. |
a character vector.
Stefan Theussl
## minimize: x + 2 y
## subject to: x + y >= 1
## x, y >= 0 x, y are integer
x <- OP(objective = 1:2, constraints = L_constraint(c(1, 1), ">=", 1))
types(x) <- c("I", "I")
types(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.