A step of the miprgr_native implementation. Called by miprgr_branch_and_bound.
See the file header for the source the module follows.
Usage
miprgr_fractional_variable(x, integer_vars, tol = 1e-07)
Arguments
- x
A vector; indexed elementwise.
- integer_vars
See Usage.
- tol
Passed to >. Defaults to 1e-07.
Value
A list with index, fractionality, integral.
Examples
miprgr_fractional_variable(c(1, 2.4, 3.5), integer_vars = c(1, 2, 3))
#> $index
#> [1] 3
#>
#> $fractionality
#> [1] 0.5
#>
#> $integral
#> [1] FALSE
#>