Learn R Programming

ompr (version 1.0.4)

variable_keys: Get all unique names of the model variables

Description

Get all unique names of the model variables

Usage

variable_keys(model)

Value

a character vector ordered in the same way as the constraint matrix columns and objective vector

Arguments

model

the model

Examples

Run this code
library(magrittr)
model <- MIPModel() %>%
  add_variable(x[i], i = 1:3)
variable_keys(model)

Run the code above in your browser using DataLab