Skip to contents

A step of the miprgr_native implementation. No other function in the package calls it. See the file header for the source the module follows.

Usage

miprgr_round_relaxation(x, A, b, integer_vars)

Arguments

x

Coerced to numeric by the body, with as.numeric.

A

A matrix; indexed by row and column.

b

A vector; indexed elementwise.

integer_vars

See Usage.

Value

A list with x, feasible, violations, note.

Examples

A <- matrix(c(1, 1, 1, -1), 2, byrow = TRUE)
miprgr_round_relaxation(c(1.4, 2.6), A, b = c(4, 1), integer_vars = c(1, 2))
#> $x
#> [1] 1 3
#> 
#> $feasible
#> [1] TRUE
#> 
#> $violations
#> list()
#> 
#> $note
#> [1] "rounding is not a substitute for branching"
#>