mwhc {Inventorymodel}R Documentation

MWHC

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

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

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)

#MWHC model
#Cooperative case
#$`Optimal policies`
#      Coalitions Optimal orders    Costs
#1              0     0.00000000  0.00000
#2        '{ 1 }'     0.07520921 14.74965
#3        '{ 2 }'     0.10684954 20.86510
#4        '{ 3 }'     0.10406757 20.89599
#5        '{ 4 }'     0.11094004 21.79985
#6      '{ 1,2 }'     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
#             ..  

[Package Inventorymodel version 1.1.0.1 Index]