ATTENTION

This FlexSim Community Forum is read-only. Please post any new questions, ideas, or discussions to our new community (we call it Answers) at https://answers.flexsim.com/. Our new Question & Answer site brings a modern, mobile-friendly interface and more focus on getting answers quickly. There are a few differences between how our new Q&A community works vs. a classic, threaded-conversation-style forum like the one below, so be sure to read our Answers Best Practices.


flexsim.com

Go Back   FlexSim Community Forum > FlexSim Software > Q&A
Downloads

Q&A Using Flexsim and building models

  #1  
Old 05-23-2012
daniel dunst daniel dunst is offline
Flexsim User
 
Join Date: Feb 2012
Posts: 1
Downloads: 2
Uploads: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
daniel dunst is on a distinguished road
Default Array of Itemtypes - few problems

Hello, I'm a student working on some college logistics project. We just got introduced to flexsim few months ago and were sorting our problems on our own till now. We're having some kind of crisis in our project and simply can't manage with these problems. I would be very grateful if you could try to answer or atleast give some hints to the following problems.

We got few queues that are dynamically getting different itemtype objects. That means that when the 1st arrival is itemtype 1 it gets assigned to queue1, 2nd arrival with itemtype 2 gets assigned to queue2. At another "Run" we might get that itemtype2 assigned to queue1, and when we get the queue1 empty it can also get objects with different itemtype than the one before.

The problem is that we need to control Transporter to collect some amount of objects with array of few defined itemtypes and we have an important condition that may occur :

1. to stop the collecting of objects when we get enough amount of them -> we got it solved

2. to stop collecting when queues don't have enough amount of specified objects (because our condition is that we need to stop gathering objects with summary "lenght" (that is defined in label) when it would take more than 600 meters, but when summary lenght of our actual objects with itemtypes that we're looking for are lower than 600m, we STILL need to gather what we got and send it further) -> to stop collecting after getting few specified itemtype objects when the other ones that he could obtain to fulfill the condition aren't in queues yet.

3. We're looking for a way to end collection when there is not even a single item with itemtype that we specified in itemtype array function - and skip to another set of itemtypes in array function (rows in GlobalTable1)

4. We're aswell forced to change the array of itemtypes, change the itemtypes in the code after completing each collection of objects. We're wondering if it's possible to change the array of itemtypes and force our transporter to react after each change in pull requirements ? Becuase we know that it works when specific itemtype enters the queues that we're working with... the problem is that we need to make it work without getting new items with specific itemtypes.

This is our sample model. It will probably help you understand what we're trying to get. Since our explanation is probably not too clear
Later on we will raise the array, to 3 itemtypes that the transporter can use to collect one group till 600 meter lenght.
Sometimes the transporter takes few objects after the queue63 throws the group further, but we want to sort it out by using delaytime function.

Attached Files
File Type: zip sample123_itemarray.zip (85.7 KB, 109 views)
  #2  
Old 06-05-2012
Matt Long Matt Long is offline
FlexSim Development
 
Join Date: Apr 2012
Posts: 66
Downloads: 37
Uploads: 29
Thanks: 2
Thanked 150 Times in 40 Posts
Rep Power: 192
Matt Long is a glorious beacon of lightMatt Long is a glorious beacon of lightMatt Long is a glorious beacon of lightMatt Long is a glorious beacon of lightMatt Long is a glorious beacon of light
Default confused

I am a little confused as to what you're trying to do. Looking at your Queue's pull requirement, are you wanting that tied into your global table? I'm guessing you want to grab each of the quantities of itemtypes as specified in your global table, but right now you are just pulling items of itemtype 1. I'm just not sure why you're creating an array?

As a couple of notes to your model, picklist options associated with triggers like OnExit of the source can make things more easily readable. For instance, I removed your code in the OnExit trigger and set a picklist option for Set Itemtype and Color (using a distribution of duniform(1,6,1)). This also colors my items making it easier to see which item the transporter is supposed to grab.


Thread Thread Starter Forum Replies Last Post
How to set the process of two itemtypes by the MultiProcessor Vic Li Q&A 12 07-21-2015 11:34 AM
Maximum Value inside an array Congshi Wang Q&A 4 03-02-2011 10:53 AM
array size juan alberto Q&A 0 12-21-2010 03:03 AM
Can't get value from global array Joe Allen Q&A 7 10-30-2008 09:06 AM
Assign an array to a variable AlanZhang Q&A 6 04-24-2008 01:59 PM


All times are GMT -6.
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.
Copyright 1993-2018 FlexSim Software Products, Inc.