Learn R Programming

ompr (version 1.0.4)

variable_bounds: Variable lower and upper bounds of a model

Description

Variable lower and upper bounds of a model

Usage

variable_bounds(model)

Value

a list with two components 'lower' and 'upper' each having a numeric vector of bounds. One for each variable.

Arguments

model

the model

Examples

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

Run the code above in your browser using DataLab