twolines: Two-lines rule

Description Usage Arguments Value Examples

View source: R/twolines.R

Description

Two-lines rule for a basic EOQ system without holding costs and with transportation cost.

Usage

1
twolines(n = NA, a = NA, av = NA, d = NA, K = NA)

Arguments

n

Agents in the inventory situation.

a

The fixed cost per order.

av

Vector. The transportations cost per order to each agent.

d

Vector. Deterministic demands per time unit to each agent.

K

Vector. Capacities of agents' warehouse to each agent.

Value

The output is a vector who contains the allocation to each player.

Examples

1
2
3
4
twolines(n=3,a=400,av=c(300,500,200),d=c(2,2,5),K=c(9,8,7))

#"Two-lines rule"
#0.0000 219.6429 423.2143

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