ATTENTIONThis 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 |
|
Downloads |
Flexsim Student Forum Forum for discussion for Flexsim Students using the Flexsim Textbook. |
#1
|
|||
|
|||
Send to Port By Percentage
Hi everyone!
Good day! I would like to set the send to port by percentage values that would refer from a probability global table. I have tried to use "gettablenum("Probability Flow", 1, 1)" under Percent but is not functioning well. I have attached the sample file. I appreciate your inputs. Thank you! Best, Herwina Richelle |
#2
|
|||
|
|||
Instead of value 0.65 you need to use 65 and etc..
Percentages must sum to 100. |
The Following User Says Thank You to Dawid Dabal For This Useful Post: | ||
Herwina Richelle Andres (03-18-2015) |
#3
|
||||
|
||||
a different approach is the use of the function cempirical([global table by rank, node or name], [stream number])
Jörg |
The Following User Says Thank You to Jörg Vogel For This Useful Post: | ||
Herwina Richelle Andres (03-18-2015) |
#4
|
|||
|
|||
Hi Jorg and Dawid!
I've tried using your suggestions but both do not seem to work. The output per location does not correspond to the percentages defined. Thanks! Best, Herwina |
#5
|
|||
|
|||
Hi Herwina,
I've fixed additional error in your model. gettablenum("Probability Flow", 1, 2) - change to =>gettablenum("Probability Flow", 2, 1) and etc The first value is a row number and the second is a column number. Now everything should be ok. |
The Following 2 Users Say Thank You to Dawid Dabal For This Useful Post: | ||
Herwina Richelle Andres (03-18-2015) |
#6
|
|||
|
|||
Percentages not correspond to the results
Hi Dawid,
Thanks for your input. I have applied the same concept in a bigger model. As I have validated the results of the first four objects, the defined percentages do not correspond to the results. COM_A360_1 has an inputof 700 units, but from the results it seems that the percentages did not workat all. See attached model and photo. Thank you for your help. Best, Herwina Richelle |
#7
|
|||
|
|||
Hi everyone,
I have fixed the problem. I had two global tables with the same name thus the code from the send to port is referring to the first table. Thank you guys for your help! Best, Herwina Richelle |
The Following 3 Users Say Thank You to Herwina Richelle Andres For This Useful Post: | ||
Jörg Vogel (03-17-2015) |
Tags |
david chan |
Thread | Thread Starter | Forum | Replies | Last Post |
Send flowitems to different ports by percentage! | DilAmaya | Container Terminal (CT) Library | 7 | 12-26-2013 05:13 AM |
FlexTips: Send To Port By Label | Markus Cueva | FlexSim Media | 0 | 09-09-2013 03:19 PM |
FlexTips: Send To Port By Expression | Markus Cueva | FlexSim Media | 0 | 09-05-2013 10:02 AM |
Send To Port | Liang Wen Yin | Q&A | 2 | 08-11-2012 03:20 AM |
Problem with Send to Output Port | Joe Allen | Q&A | 3 | 05-14-2009 02:38 PM |