get_column_duals: Gets the column duals of a solution

Description Usage Arguments Value Examples

Description

Gets the column duals of a solution

Usage

1
get_column_duals(solution)

Arguments

solution

a solution

Value

Either a numeric vector with one element per column or 'NA_real_'.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 
result <- MIPModel() %>%
  add_variable(x[i], i = 1:5) %>%
  add_variable(y[i, j], i = 1:5, j = 1:5) %>%
  add_constraint(x[i] >= 1, i = 1:5) %>%
  set_bounds(x[i], lb = 3, i = 1:3) %>%
  set_objective(sum_expr(i * x[i], i = 1:5)) %>%
  solve_model(with_ROI("glpk"))

get_column_duals(result)

## End(Not run)

dirkschumacher/ompr documentation built on May 15, 2019, 8:48 a.m.