variable_types function

Variable types of a model

Variable types of a model

One component for each variable in the correct order

variable_types(model)

Arguments

  • model: the model

Returns

a factor with levels binary, continuous, integer

Examples

library(magrittr) model <- MIPModel() %>% add_variable(x, type = "binary") %>% add_variable(y, type = "continuous") %>% add_variable(z, type = "integer") variable_types(model)
  • Maintainer: Dirk Schumacher
  • License: MIT + file LICENSE
  • Last published: 2023-09-09