Displaying 2 results from an estimated 2 matches for "maxstock".
2012 Feb 10
2
Discrete Event Simulation problem
...t to infinity at
the start as no order has been played but I have an if statement saying, if
the level falls below a certain point then an order should be placed, I have
the expected time to order arrival set to be before the the sale but this is
not working.
Any Help would be appreciated. Thanks
maxStock = 100
minStock = 20
t.max=1100.0
LAST = t.max
START = 0
GetDemand<-function() START + runif(1,min=0,max=2)
main <- function(t.max,maxStock,minStock)
{
index = 0
t.current = START #### Starting Conditions
t.demand = START
t.supply = START
inventory = 50...
2012 Mar 08
3
rpanel / list error
Hi All,
I have created a simulation that works perfect and I have the results been
returned in a list as I have multiple values. I then decided to include some
user interaction by using the package rpanel, I now get the error:
object of type 'builtin' is not subsettable
when I attempted to have the return my list with the results .
Any help needed. I can also upload code if needs be.