SupplyChainScope

Top-level DSL scope: items, root nodes, cost formulations, strategy.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

How shipments move between nodes; defaults to sharedCarrier.

Functions

Link copied to clipboard

Allocate the next auto stream number (see supplyChain's autoStreamBase).

Link copied to clipboard
fun crossDock(name: String, block: NodeScope.() -> Unit = {}): NodeScope

A root cross-dock (parent = external supplier).

Link copied to clipboard
fun defaultCost(name: String? = null, params: CostParamsSpec = CostParamsSpec())

Attach a network-wide default-parameter cost formulation.

Link copied to clipboard
fun holdingPoint(name: String, block: NodeScope.() -> Unit = {}): NodeScope

A root inventory holding point (parent = external supplier).

Link copied to clipboard
fun item(name: String, leadTime: RVSpec, weight: Double = 1.0, cube: Double = 1.0, unitCost: Double = 1.0): ItemRef

Declare an item type.

Link copied to clipboard
fun perNodeCost(name: String? = null, default: CostParamsSpec = CostParamsSpec(), overrides: Map<String, CostParamsSpec> = emptyMap())

Attach a per-node-override cost formulation (built last; needs D5 runtime).

Link copied to clipboard
fun star(rootName: String, leafNames: List<String>, transportTimeFromRoot: RVSpec? = null, rootConfig: NodeScope.() -> Unit = {}, leafConfig: NodeScope.(String) -> Unit = {}): NodeScope

A one-level star: a root IHP plus a leaf IHP per name in leafNames, each attached to the root with transportTimeFromRoot.