variable_types: Variable types of a model

Description Usage Arguments Value Examples

Description

One component for each variable in the correct order

Usage

1

Arguments

model

the model

Value

a factor with levels binary, continuous, integer

Examples

1
2
3
4
5
6
library(magrittr)
model <- MIPModel() %>%
  add_variable(x, type = "binary") %>%
  add_variable(y, type = "continuous") %>%
  add_variable(z, type = "integer")
variable_types(model)

dirkschumacher/ompr documentation built on May 15, 2019, 8:48 a.m.