This function obtains the associated costs in a model without holding costs and with two differents cost of product. Demands
and capacities must be introduced in the order indicated by the ratios d/K. In other case,
agents change their position.
Vector. Deterministic demands per time unit to each agent.
K
Vector. Warehouse's capacity to each agent.
c1
Value. Cost per unit of product from the first vendor.
c2
Value. Cost per unit of product from the second vendor.
cooperation
Option to indicate cooperation. If it exists cooperation=1 else cooperation=0.
allocation
Option to indicate the allocation. If it is required allocation=1 else allocation=0.
Value
A list with the following components:
"Optimal policies" A matrix with all possible coalitions in the first column. The second column contains the optimal order to each coalition. Last column indicates the global cost of this optimal order.
"GR-rule" A matrix, for each coalition (row), contains the coalition i(S) and allocations proposed by GR-rule.