Learn R Programming

Inventorymodel (version 1.1.0.1)

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))

Value

If cooperation=0, a vector with the individual cost to each agent in a MFOC. If cooperation=1 and n is lesser than 0, a matrix which contains the associated costs for each possible group. Otherwise, this matrix only contains the individual costs and the associated values for N.

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.

Examples

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

#MFOC model
#[1] 40 28 30

Run the code above in your browser using DataLab