Learn R Programming

InventorymodelPackage (version 1.0.2)

linerule: Line rule

Description

Line rule for an inventory transportation system when coalition N is formed.

Usage

linerule(n=NA,a=NA,av=NA,d=NA,h=NA,m=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.
h
Vector. Holding cost per time unit to each agent.
m
Vector. Number of orders to each agent (optional).

Value

Allocation for each agent if N was formed.

Examples

Run this code
linerule(n=3,a=200,av=c(300,300,900),d=c(90,80,20),h=c(0.06,0.06,0.1),m=NA)

#[1] 51.38935 46.10733 66.33250

Run the code above in your browser using DataLab