get_row_duals function

Gets the row duals of a solution

Gets the row duals of a solution

get_row_duals(solution)

Arguments

  • solution: a solution

Returns

Either a numeric vector with one element per row or NA_real_.

Examples

## 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_row_duals(result) ## End(Not run)
  • Maintainer: Dirk Schumacher
  • License: MIT + file LICENSE
  • Last published: 2023-09-09