tierFromTables

fun tierFromTables(namePrefix: String, items: List<ItemRef>, policyTable: List<List<PolicySpec>>, initialOnHand: Int, transportTime: RVSpec? = null, demandTable: List<List<RVSpec?>>? = null)(source)

Expand a node × item table into a tier of child IHPs. Row r becomes child ${namePrefix}${r+1}; column c is items[c]. Each cell of policyTable becomes an inventory (with initialOnHand); each non-null cell of demandTable (if given) becomes a demand generator. Mirrors the MultiEchelonNetworkSSPolicyExample rsTable / demandMeans, but as data.

Parameters

policyTable

[node][item] replenishment policies

demandTable

optional [node][item] demand inter-arrivals