nvars | R Documentation |
Number of variables of a model
nvars(model)
model |
the model |
a list with three named elements. 'binary' => number of binary variables, 'integer' => number of integer variables, 'continuous' => number of continuous variables.
library(magrittr)
model <- MIPModel() %>%
add_variable(x[i], i = 1:10, type = "binary") %>%
add_variable(y[i], i = 1:5, type = "continuous") %>%
add_variable(z[i], i = 1:2, type = "integer")
nvars(model)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.