Description Usage Arguments Value Examples
This function obtains the associated costs in a model without holding costs and with two differents cost of product. Demands
and capacities must be introduced in the order indicated by the ratios d/K
. In other case,
agents change their position.
1 |
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. |
c1 |
Value. Cost per unit of product from the first vendor. |
c2 |
Value. Cost per unit of product from the second vendor. |
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.
"GR-rule"
A matrix, for each coalition (row), contains the coalition i(S) and allocations proposed by GR-rule.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | mwhc2c(n=3,a=1,b=c(10,10,10),d=c(30,45,46),K=c(30,45,46),c1=3.5,c2=3,cooperation=1,allocation=1)
#$`Optimal policies`
# Coalitions Optimal orders Costs
# 0 0.0000000 0.0000
# 1 0.9505864 105.5947
# 2 0.9515422 157.9165
# 3 0.9515838 161.4046
# 12 0.9523090 262.5595
# 13 0.9523241 266.0476
# 23 0.9525115 318.3690
# 123 0.9527470 423.0118
#
#$`GR-rule`
# Coalition_SxT 1 2 3
# 0 0.0000 0.0000 0.0000
# 1 105.5947 0.0000 0.0000
# 2 0.0000 157.9165 0.0000
# 3 0.0000 0.0000 161.4046
# 12 105.0238 157.5357 0.0000
# 13 105.0188 0.0000 161.0288
# 23 0.0000 157.4352 160.9338
# 123 104.8790 157.3184 160.8144
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.