variable_keys: Get all unique names of the model variables

View source: R/model-api.R

variable_keysR Documentation

Get all unique names of the model variables

Description

Get all unique names of the model variables

Usage

variable_keys(model)

Arguments

model

the model

Value

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

Examples

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

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