PMC Forums  

Go Back   PMC Forums > Simulation > Manufacturing Simulation
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Manufacturing Simulation job shop, flow shop, and assembly line simulation, plus resource utilization, manufacuting efficiency, queuing analysis, implementing kanban

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-27-2009, 12:53 AM
divya.seethapathy divya.seethapathy is offline
Member
 
Join Date: Jul 2009
Posts: 4
Question Defining array size and recording 1D array values

I am working on an inventory model that requires me define a 1D array, the size of which depends on another variable. I have two questions:
1. How do I define such a 1D array variable?
2. How do I view the values stored in the array variable. For eg. If my array variable is of size 50, how do I import the values to excel using Statistic?

Really looking forward for some help!

Divya
Reply With Quote
  #2 (permalink)  
Old 07-27-2009, 11:50 AM
ewilliams ewilliams is offline
Moderator
 
Join Date: May 2007
Location: Detroit area, Michigan, U.S.A.
Posts: 216
Send a message via Skype™ to ewilliams
Default Arena One-Dimensional Array Variable

In the Basic template, use Variable. Define the variable you want, specifying the number of rows you want (for 1-dimensional, leave the number of columns blank). To IMport values into this Variable from Excel or to EXport values from this Variable to Excel, you must use the ReadWrite block and the File module in the Advanced Process template.
__________________
E. Williams, PMC
Reply With Quote
  #3 (permalink)  
Old 07-27-2009, 07:34 PM
divya.seethapathy divya.seethapathy is offline
Member
 
Join Date: Jul 2009
Posts: 4
Default

Thanks William. I am now able to read the values, however my logic seems to be wrong. Let me explain my problem.
I have a variable that takes on consecutive values within a range. For eg. X=1,2,3,4...Y, where Y=50. I now need to calculate the percentage time that the value of X is 1,2,3...Y.

My approach was to use an array variable of size Y and compute the interval between two arrivals and store it in the array. But this is not giving me any results. Is there a better way to do it?


Your reply was located here:
http://forums.pmcorp.com/simulation-analysis/918-defining-array-size-recording-1d-array-values.html
I have moved it to this thread. Have a great day!
Brad.S
-Forum Moderator

Last edited by Brad.S; 07-28-2009 at 09:17 AM. Reason: Merged threads
Reply With Quote
  #4 (permalink)  
Old 07-27-2009, 07:53 PM
divya.seethapathy divya.seethapathy is offline
Member
 
Join Date: Jul 2009
Posts: 4
Smile calculating percentage Time

Thanks William,

somehow my reply seems to have vanished. I am now able to read the values of the variable. However there seems to be a logic error.

I have a variable that takes on consecutive values in a particular range. X=1,2,3...Y, where Y=50 (for eg.)

I now need to calculate the percentage time that the Value of X=1,2,...Y.

In order to do that I defined a 1D to store the time inbetween value changes of X. However this does not seem to work as the array size in the exported file is equal to the number of entities that passed through X.

How do I calculate the percentage time?
Really appreciate any leads.

Divya
Reply With Quote
  #5 (permalink)  
Old 08-01-2011, 06:40 PM
lthoa lthoa is offline
Member
 
Join Date: Jun 2011
Posts: 28
Default

[QUOTE=ewilliams;7423]In the Basic template, use Variable. Define the variable you want, specifying the number of rows you want (for 1-dimensional, leave the number of columns blank). To IMport values into this Variable from Excel or to EXport values from this Variable to Excel, you must use the ReadWrite block and the File module in the Advanced Process template.[/QUOTE]
Could you please clarify a bit more on your solution, I'm new to Arena. I'm running into the same problem. I am simulating the operation of a railway network. In my model, I have a variable NumberOfStations and some arrays whose sizes depend on this variable. Each time I update the NumberOfStations I have to go over all the arrays to update which are really painful and error-prone.
Reply With Quote
  #6 (permalink)  
Old 09-12-2011, 11:08 PM
wanqing70 wanqing70 is offline
Banned
 
Join Date: Aug 2011
Posts: 3
Cool process of development

school that the whole incident in the process of [url=http://www.juicycoutureoutletoutlet.com/]juicy couture outlet[/url] development , the teacher’s actions seriously violated the teacher of [url=http://www.juicycouture-bags.net/]juicy couture bags[/url] the people should have the moral quality requirements , but also violated the [url=http://www.juicycoutureoutletsales.com/]juicy couture outlet[/url] school’s ethics specifications , ruined schools reputation , resulting in [url=http://www.louis-vuittonshoes.net/]louis vuitton shoes[/url] adverse effects , must be severely dealt with without [url=http://www.replicajuicycouture.net/]replica juicy couture[/url] leniency.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is Off
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 11:21 AM.



Content Relevant URLs by vBSEO 3.0.0