Re: [R] rpanel / list error

2012-03-09 Thread jism7690
Hi Michael, Thank you for your reply. I have uploaded the minimum, I have left out the formulas for calculating the amounts as they are not important to the loop. Basically I have a while loop running that adds to the list of values and then outside this loop I have a list called sis, this is the

[R] rpanel / list error

2012-03-08 Thread jism7690
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

Re: [R] Discrete Event Simulation problem

2012-02-13 Thread jism7690
I have made some chances and I believe now the only problem is making the system reorder. Please any help would be great test - function(seed = 123456789, maxStock= 100, minStock = 20,t.max=1100,inventory =50) { LAST = t.max START = 0 t.demand = START t.supply = START t.current = START

[R] Discrete Event Simulation problem

2012-02-10 Thread jism7690
Hi All, I am attempting to simulation an inventory model on R and I am having some problems. I believe the problem is when I define my demand rate is stays constant throughout so when I do need to reorder the model does not recognise it as I have the initial supply arrival time set to infinity at