Learn R Programming

InventorymodelPackage (version 1.0.2)

mfoc: MFOC

Description

This function obtains the associated costs in a fixed order cost model.

Usage

mfoc(n = NA, a = NA, d = NA, K = NA, cooperation = c(0, 1))

Arguments

n
Agents in the inventory situation.
a
The fixed cost per order.
d
Vector. Deterministic demands per time unit to each agent.
K
Vector. Warehouse's capacity to each agent.
cooperation
Option to indicate cooperation. If it exists cooperation=1 else cooperation=0.

Value

A vector with the individual cost to each agent in a MFOC.

Examples

Run this code
mfoc(n=3,a=200,d=c(1.2,1.4,1.2),K=c(6,10,8),cooperation=0)

#[1] "Individual cost"
#[1] 40 28 30

Run the code above in your browser using DataLab