This function obtains the optimal number of orders and the associated cost in an EOQ model.
Usage
EOQ(n = NA, a = NA, d = NA, h = NA, m = NA)
Arguments
n
Number of agents in the inventory model.
a
The fixed cost per order.
d
Vector. Deterministic demands per time unit to each agent.
h
Vector. Holding costs to each agent.
m
Vector. Number of orders to each agent (optional).
Value
This function calculates two vectors. The first shows the optimal order for each agent. The second vector indicates the associated cost to these orders.