Description Usage Arguments Value Examples
This function obtains the associated costs in a model without holding costs. Demands
and capacities must be introduced in the order indicated by the ratios d/K
. In other case,
agents change their position.
1 2 |
n |
Agents in the inventory situation. |
a |
The fixed cost per order. |
b |
Vector. Shortage cost per unit to each agent. |
d |
Vector. Deterministic demands per time unit to each agent. |
K |
Vector. Warehouse's capacity to each agent. |
cooperation |
Option to indicate cooperation. If it exists |
allocation |
Option to indicate the allocation. If it is required |
A list with the following components:
"Optimal policies"
A matrix with all possible coalitions in the first column. The second column contains the optimal order to each coalition. Last column indicates the global cost of this optimal order.
"R-rule"
A matrix, for each coalition (row), contains the coalition i(S) and allocations proposed by R-rule.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | mwhc(n=4,a=180,b=c(15,15,10,12),d=c(0.45,0.95,1.05,1.2),K=c(5,7.5,8,9),
cooperation=1,allocation=1)
#"Optimal policies"
# Coalitions Optimal orders Costs
# 0 0.00000000 0.00000
# 1 0.07520921 14.74965
# 2 0.10684954 20.86510
# 3 0.10406757 20.89599
# 4 0.11094004 21.79985
# 12 0.10684954 20.86510
# ..
#
#$"R-rule"
# Coalition_SxT 1 2 3 4
# 0 0.00000 0.000000 0.000000 0.00000
# 1 14.74965 0.000000 0.000000 0.00000
# 2 0.00000 20.865100 0.000000 0.00000
# 3 0.00000 0.000000 20.895986 0.00000
# 4 0.00000 0.000000 0.000000 21.79985
# 2 0.00000 20.865100 0.000000 0.00000
# 3 0.00000 0.000000 20.895986 0.00000
# ..
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.