Displaying 2 results from an estimated 2 matches for "storage_cost".
Did you mean:
storage_costs
2012 Feb 10
2
Discrete Event Simulation problem
...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
order_costs = 0
storage_costs = 0
sales = 0
sum = list(inventory = 50,order_costs = 0,storage_costs = 0,sales =0)
while(index < LAST){
index = index + 1
t.demand = GetDemand() ### expected time to next sale
t.supply = Inf ### expected time to arrival of order, Infinity as order
has not been placed
t.next =min(t.de...
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.