mwhcct {Inventorymodel}R Documentation

MWHCCT

Description

This function obtains the associated costs in a basic EOQ system without holding costs and with a general transportation cost.

Usage

mwhcct(n = NA, a = NA, av = 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.

av

Vector. The transportations cost per order to each possible group of agents.

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

If n is lesser than 0, a matrix with all possible coalitions in the first column. The next n columns contain the associated cost to each agent in the coalition. Last column indicates the global cost of the optimal order. Otherwise, this matriz contains the individual costs and the associated values for N.

Examples

mwhcct(n=3,a=10,av=c(0,10,10,10,20,20,20,30),d=c(1,0.95,0.9),K=c(1,1,1),
cooperation=1,allocation = 1)
# MWHC with Transportation Costs model
#Cooperative case
#[1] "Shapley Value"
#$`Optimal solution`
#  1 2 3   Coalition Cost
#1 0 0 0           0  0.0
#2 1 0 0     '{ 1 }' 20.0
#3 0 1 0     '{ 2 }' 19.0
#4 0 0 1     '{ 3 }' 18.0
#5 1 1 0   '{ 1,2 }' 30.0
#6 1 0 1   '{ 1,3 }' 30.0
#7 0 1 1   '{ 2,3 }' 28.5
#8 1 1 1 '{ 1,2,3 }' 40.0
#
#$`Allocation R rule`
#      1     2  3
#  13.75 13.25 13

[Package Inventorymodel version 1.1.0.1 Index]