nconstraints | R Documentation |
Number of variables (rows) of the model
nconstraints(model)
model |
the model |
An integer equal to the number of variables. A variable is here a column in the resulting constraint matrix.
library(magrittr)
model <- MIPModel() %>%
add_variable(x) %>%
add_variable(y[i], i = 1:10)
nconstraints(model) # 11
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.