define_resources.Rd
Creates a data frame of resource constraints for the RAM model,
allowing both upper ("<=``) and lower (
">="`) bounds.
define_resources(resources, availability, direction)
Data frame with columns: resource
, availability
, and direction
.
# Upper bounds only
define_resources(
resources = c("land", "labor"),
availability = c(100, 200),
direction = c("<=", "<=")
)
#> resource availability direction
#> 1 land 100 <=
#> 2 labor 200 <=
# Mixed upper/lower bounds (min requirement for protein, max for feed)
define_resources(
resources = c("protein_min", "feed_max"),
availability = c(2.5, 10),
direction = c(">=", "<=")
)
#> resource availability direction
#> 1 protein_min 2.5 >=
#> 2 feed_max 10.0 <=