variable_keys function

Get all unique names of the model variables

Get all unique names of the model variables

variable_keys(model)

Arguments

  • model: the model

Returns

a character vector ordered in the same way as the constraint matrix columns and objective vector

Examples

library(magrittr) model <- MIPModel() %>% add_variable(x[i], i = 1:3) variable_keys(model)
  • Maintainer: Dirk Schumacher
  • License: MIT + file LICENSE
  • Last published: 2023-09-09