TWBatching Element
This class controls the batching of time-weighted variables within the Model.
The batch interval is used to schedule events during a replication and must be the same throughout the replication. If the supplied interval is 0.0, then the method getApproximateBatchInterval() will be used to determine the interval for the replication.
Time-based variables (TimeWeighted) are first discretized based on a batching interval. The default batching interval is based on the value of the initial number of batches. This is by default set to DEFAULT_NUM_TW_BATCHES = 512. These initial batches are then rebatched, according to the procedures within BatchStatistic
Use addTimeWeighted(TimeWeighted tw) to add TimeWeighted variables to the batching.
Author
rossetti
Parameters
the model element
the batching interval and must be greater than 0
a name for the element
Constructors
Types
Properties
Returns a list of summary statistics on all TimeWeighted variables. The list is a copy of originals.
This method returns a suggested batching interval based on the length of the run, the warm-up period, and default number of batches.
The priority for the batching events.
Sets the batch interval length. Changing this during a replication has no effect. The batch interval is used to schedule events during a replication and must be the same throughout the replication. If the supplied interval is 0.0, then the method getApproximateBatchInterval() will be used to determine the interval for the replication
Checks if a batching event has been scheduled for this model element
The starting number of batches for time-weighted batching. Used in approximating a batch interval size
Functions
Adds the supplied TWResponse variable to the batching
This method returns a suggested batching interval based on the length of the replication and warm-up length for TimeWeighted variables.
Returns a statistical summary BatchStatistic on the TimeWeighted variable across the observed batches This returns a copy of the summary statistics.
Gets the CSV Header for the TimeWeighted
Gets the CSV row for the TimeWeighted
Removes the supplied TWResponse variable from the batching
Look up the TWBatchStatisticObserver for the given TimeWeighted variable