variable_types: Variable types of a model

Description Usage Arguments Value Examples

View source: R/model-api.R

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/romp documentation built on Oct. 6, 2018, 4:36 a.m.