Learn R Programming

ompr (version 1.0.4)

variable_types: Variable types of a model

Description

One component for each variable in the correct order

Usage

variable_types(model)

Value

a factor with levels binary, continuous, integer

Arguments

model

the model

Examples

Run this code
library(magrittr)
model <- MIPModel() %>%
  add_variable(x, type = "binary") %>%
  add_variable(y, type = "continuous") %>%
  add_variable(z, type = "integer")
variable_types(model)

Run the code above in your browser using DataLab