Learn R Programming

InventorymodelPackage (version 1.0.2)

inventorygames: Inventorygames

Description

Generic function to show the associated cost game to a EOQ or EPQ model.

Usage

inventorygames(n = NA, a = NA, d = NA, h = NA, m = NA, r = NA, s = NA, model = c("EOQ", "EPQ"))

Arguments

n
Number of agents in the inventory model.
a
The fixed cost per order.
d
Vector. Deterministic demands per time unit to each agent.
h
Vector. Holding costs to each agent.
m
Vector. Number of orders to each agent (optional).
r
Vector. Replacement rate to each agent. In general, r>d.
s
Vector. Cost of a shortage to each agent.
model
Model to select. EOQ and EPQ models can be considered.

Value

The characteristic function of the assoaciated cost game is calculated to model EOQ or EPQ.

Examples

Run this code
inventorygames(n=3,a=600,d=c(500,300,400),h=c(9.6,11,10),model="EOQ")

#    1 2 3 Coalition Order cost
#    0 0 0         0      0.000
#    1 0 0         1   2400.000
#    0 1 0         2   1989.975
#    0 0 1         3   2190.890
#    1 1 0        12   3117.691
#    1 0 1        13   3249.615
#    0 1 1        23   2959.730
#    1 1 1       123   3810.512

Run the code above in your browser using DataLab