Description Usage Arguments Value Examples
View source: R/inventorygames.R
Generic function to show the associated cost game to a EOQ or EPQ model.
1 2 |
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). |
r |
Vector. Replacement rate to each agent. In general, r>d. |
s |
Vector. Cost of a shortage to each agent. |
model |
Model to select. |
The characteristic function of the assoaciated cost game is calculated to model EOQ
or EPQ
.
1 2 3 4 5 6 7 8 9 10 11 | inventorygames(n=3,a=600,d=c(500,300,400),h=c(9.6,11,10),model="EOQ")
# 1 2 3 Coalition Order cost
# 0 0 0 0 0.000
# 1 0 0 1 2400.000
# 0 1 0 2 1989.975
# 0 0 1 3 2190.890
# 1 1 0 12 3117.691
# 1 0 1 13 3249.615
# 0 1 1 23 2959.730
# 1 1 1 123 3810.512
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.