View source: R/MultiTrainWithInventory.r
MultiTrainWithInventory | R Documentation |
This function will evaluate a dataframe created by DetailOpLines on a line by line basis to generate a history of production output based on various constraints and limitations of the overall system.
MultiTrainWithInventory(model, CapacityHrs, ReserveHrs, RefillTime, DischargeCap=1,
TurndownLimit=0.6, TurndownTime=1, ProgRpt=FALSE)
model |
A dataframe constructed by the DetailOpLines function. |
CapacityHrs |
A quantity of inventory in terms of hours of single active train production defining the useable capacity of a storage vessel. |
ReserveHrs |
A quantity of inventory in terms of hours of single active train production at which an operating policy will be implemented to preserve remaining inventory for support of subsequent active train failures. |
RefillTime |
The duration in hours that would be required to refill the entire capacity of a storage vessel utilizing a given accumulator of known capability. |
DischargeCap |
A quantity of trains for which there is capability to discharge from storage at appropriate conditions for the downstream process. |
TurndownLimit |
A fraction of total production at which downstream processing can continue to function at minimum rates. This value defaults to 0.6, which is typical of many single train fluid bed reactors. |
TurndownTime |
The duration in hours required to bring the downstream processing unit down to a new level of production, including potential human dialog time for confirmation of intent. This value defaults at 1 hour, which has proven to be a very typical of process plant systems requiring human confirmation of turndown request. |
ProgRpt |
A boolean value indicating whether a progress bar should be displayed, if sensible, during execution of the function. |
Returns a list containing two dataframes. The first containing columns for Time, Duration, and ProdRate for each total production rate state. A matrix of 1's and 0's identify the occurrence of specific production failures by cause. These causes may be discharge capacity exceeded, inventory run out, or demand on empty storage.
Ormerod JT, "Using Stochastic RAM Analysis to Establish an Optimal Operating Policy ",8th IMA International Conference on Modelling in Industrial Maintenance and Reliability (MIMAR), July 2014
data(ChargeTrain)
Train1<-ChargeTrain
Train2<-Train1[,-11]
Train2seeds<-data.frame(Seed=Train1$Seed+200)
Train2<-cbind(Train2,Train2seeds)
## note simulation drastically reduced for example run
Train1_sh<-SimHistory(Train1,200,100)
Train2_sh<-SimHistory(Train2,200,100)
ChargeSystem<-list(Train1_sh,Train2_sh)
ChargeTrainParallelHistory<-DetailOpLines(ChargeSystem)
ChgTwInv<-MultiTrainWithInventory(ChargeTrainParallelHistory, 16, 8, 336)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.