EOQcoo

Share:

Description

This function calculates the optimal number of orders and the associated cost when agents are cooperating in the EOQ model.

Usage

1
EOQcoo(n = NA, a = NA, d = NA, h = NA, m = NA)

Arguments

n

Number of agents in the inventory model.

a

The fixed cost per order.

d

Vector. Deterministic demands per time unit to each agent.

h

Vector. Holding costs to each agent.

m

Vector. Number of orders to each agent (optional).

Value

A list with the following components:

  • Optimal order A matrix with all possible coalitions in the first column. The next n columns contain the associated cost to each agent in the coalition. Last column indicates the global cost of the optimal order.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
EOQcoo(n=3,a=600,d=c(500,300,400),h=c(9.6,11,10))

#[1] "Optimal order"
#  Coalition        1        2        3 Coalitional costs
#          0   0.0000   0.0000   0.0000             0.000
#          1 250.0000   0.0000   0.0000          2400.000
#          2   0.0000 180.9068   0.0000          1989.975
#          3   0.0000   0.0000 219.0890          2190.890
#         12 192.4501 115.4701   0.0000          3117.691
#         13 184.6372   0.0000 147.7098          3249.615
#         23   0.0000 121.6327 162.1770          2959.730
#        123 157.4592  94.4755 125.9673          3810.512