This function obtains the optimal number of orders and the associated cost in the inventory transportation system.
Usage
STI(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
This function calculates two vectors. The first one shows the optimal order for each agent. The second vector indicates the associated cost to these orders.
R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> library(InventorymodelPackage)
Loading required package: e1071
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/InventorymodelPackage/STI.Rd_%03d_medium.png", width=480, height=480)
> ### Name: STI
> ### Title: STI
> ### Aliases: STI
>
> ### ** Examples
>
> STI(n=3,a=200,av=c(300,300,900),d=c(90,80,20),h=c(0.06,0.06,0.1),m=NA)
$`Optimal order`
[1] 1224.745 1154.701 663.325
$`Order cost`
[1] 73.48469 69.28203 66.33250
>
> #$"Optimal order"
> #[1] 1224.745 1154.701 663.325
> #
> #$"Order cost"
> #[1] 73.48469 69.28203 66.33250
>
>
>
>
>
> dev.off()
null device
1
>