InventoryPolicyReorderPointOrderUpToLevelPeriodic

open class InventoryPolicyReorderPointOrderUpToLevelPeriodic @JvmOverloads constructor(parent: ModelElement, reorderPoint: Int = 0, orderUpToPoint: Int = 1, reviewPeriod: Double = 1.0, initialReviewTime: Double = 0.0, name: String? = null) : InventoryPolicyAbstract(source)

A periodic-review (r, S) inventory policy: every reviewPeriod time units (starting at initialReviewTime), checks the inventory position and orders up to orderUpToPoint if at or below reorderPoint.

Unlike the continuous-review variants, checkInventory is a no-op here — review happens via a scheduled event.

See sc.inventorylayer.InventoryPolicyReorderPointOrderUpToLevelPeriodic

Constructors

constructor(parent: ModelElement, reorderPoint: Int = 0, orderUpToPoint: Int = 1, reviewPeriod: Double = 1.0, initialReviewTime: Double = 0.0, name: String? = null)

Properties

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

Functions

Link copied to clipboard
protected open override fun checkInventory()

Decide whether to place a replenishment order now.

Link copied to clipboard
open override fun getPolicyParameters(): DoubleArray

Snapshot the current parameter values.

Link copied to clipboard
protected open override fun initialize()

This method should be overridden by subclasses that need actions performed to initialize prior to a replication. It is called once before each replication occurs if the model element wants initialization. It is called after beforeReplication() is called

Link copied to clipboard
open override fun setInitialPolicyParameters(parameters: DoubleArray)

parameters may have length 2, 3, or 4. Missing trailing values are taken from myInitialPolicyParameters — matches Java behavior.

fun setInitialPolicyParameters(reorderPoint: Int, orderUpToPoint: Int, reviewPeriod: Double, initialReviewTime: Double)
Link copied to clipboard
protected open override fun setPolicyParameters(parameters: DoubleArray)

Change the policy parameters during a replication.

fun setPolicyParameters(reorderPoint: Int, orderUpToPoint: Int, reviewPeriod: Double = myReviewPeriod, initialReviewTime: Double = myInitialReviewTime)