rna_rec {stratallo} | R Documentation |
RNA - Recursive Implementation
Description
Usage
rna_rec(
total_cost,
A,
bounds = NULL,
unit_costs = rep(1, length(A)),
check_violations = .Primitive(">=")
)
Arguments
total_cost |
( |
A |
( |
bounds |
(
|
unit_costs |
( |
check_violations |
( |
Note
this coded was not extensively tested.
Examples
A <- c(3000, 4000, 5000, 2000)
M <- c(100, 90, 70, 80) # upper bounds.
rna_rec(total_cost = 190, A = A, bounds = M)
rna_rec(total_cost = 312, A = A, bounds = M)
rna_rec(total_cost = 339, A = A, bounds = M)
rna_rec(total_cost = 340, A = A, bounds = M)