mwhc: MWHC

Description Usage Arguments Value Examples

View source: R/mwhc.R

Description

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.

Usage

1
2
mwhc(n = NA, a = NA, b = NA, d = NA, K = NA, cooperation = c(0, 1), 
allocation = c(0, 1))

Arguments

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 cooperation=1 else cooperation=0.

allocation

Option to indicate the allocation. If it is required allocation=1 else allocation=0.

Value

A list with the following components:

Examples

 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
#             ..  

InventorymodelPackage documentation built on May 29, 2017, 9:39 p.m.