Inventorymodel: Inventorymodel

Description Usage Arguments See Also Examples

View source: R/Inventorymodel.R

Description

General function in Inventorymodel package for obtaining the optimal policy by selecting any model and its corresponding parameters.

Usage

1
2
3
Inventorymodel(model=c("EOQ","EPQ","STI","FOC","MCT","MWHC","MWHC2"),
n=NA,a=NA,av=NA,d=NA,h=NA,m=NA,r=NA,s=NA,K=NA,b=NA,c1=NA,c2=NA,
cooperation=c(0,1),allocation=c(0,1))

Arguments

model

Model to select. EOQ, EPQ, STI, mfoc, mct, mwhc or mwhc2c models can be considered.

n

Number of agents in the inventory model.

a

The fixed cost per order.

av

Vector. Transportation costs to each agent.

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.

K

Vector. Warehouse capacity to each agent.

b

Vector. Shortage cost to each agent.

c1

Value. Cost of a product from the first supplier.

c2

Value. Cost of a product from the second supplier.

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.

See Also

EOQ, EOQcoo, EPQ, EPQcoo, STI, STIcoo, mct, mfoc, mwhc and mwhc2c.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
Inventorymodel(model="MCT",n=3,a=400,av=c(300,500,200),d=c(2,2,5),K=c(9,8,7),
cooperation=1,allocation=1)
#[1] "MCT"
#[1] "Two-lines rule"
#$`Optimal solution`
#  1 2 3 Coalition     Cost
#  0 0 0         0   0.0000
#  1 0 0         1 155.5556
#  0 1 0         2 225.0000
#  0 0 1         3 428.5714
#  1 1 0        12 225.0000
#  1 0 1        13 500.0000
#  0 1 1        23 642.8571
#  1 1 1       123 642.8571
#
#$`Allocation two-lines rule`
#[1]   0.0000 219.6429 423.2143

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