variable_types: Variable types of a model

View source: R/model-api.R

variable_typesR Documentation

Variable types of a model

Description

One component for each variable in the correct order

Usage

variable_types(model)

Arguments

model

the model

Value

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)

ompr documentation built on Sept. 9, 2023, 9:06 a.m.