import VBASim import Basic_Classes as bc import RNG import numpy as np #initialize variables TheQueues = [] TheResources = [] TheDTStats = [] TheCTStats = [] #create instances of objects ParkingLot = bc.FIFOQueue() MaxCars = 0 TimeSpent = bc.DTStat() Calendar = bc.EventCalendar() TheQueues.append(ParkingLot) TheDTStats.append(TimeSpent) AllAverageQueues = [] AllMaxCars = [] AllTimeSpent = [] print("Rep", "Average Number", "Max Number", "Average Time Spent") MeanTBA = 0.021 #for stationary Poisson arrival #MeanTBA = 0.03312 #for nonstationary Poisson arrival MeanPT = 1.0
# -*- coding: utf-8 -*- import VBASim import RNG import Basic_Classes import math import numpy as np import pandas as pd from scipy import stats Clock = 0.0 ZRNG = RNG.InitializeRNSeed() Queue = Basic_Classes.FIFOQueue() # Inventory Calendar = Basic_Classes.EventCalendar() Server = Basic_Classes.Resource() # dummy, not used TheCTStats = [] TheDTStats = [] TheQueues = [] TheResources = [] TheQueues.append(Queue) TheResources.append(Server) AllStats = [] p = 0.2 MeanTBA = 1.0 # Demand Arrival MeanLead = 1.0 # Item Arrival T = 240 # Runlength s = 4 S = 10 NumSold = 0 # total number of sold items M = 0 # total number of ordered items o = 0.5 r = 1