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 > Flexsim Student Forum
FAQ Downloads Calendar Search Mark Forums Read

Flexsim Student Forum Forum for discussion for Flexsim Students using the Flexsim Textbook.

Reply
 
Thread Tools Display Modes
  #1  
Old 03-13-2015
Herwina Richelle Andres Herwina Richelle Andres is offline
Flexsim User
 
Join Date: Aug 2014
Location: Philippines
Posts: 13
Downloads: 8
Uploads: 0
Thanks: 9
Thanked 3 Times in 1 Post
Rep Power: 64
Herwina Richelle Andres is on a distinguished road
Default 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
Attached Files
File Type: fsm Send to Port By Percentage.fsm (16.9 KB, 489 views)
Reply With Quote
  #2  
Old 03-13-2015
Dawid Dabal Dawid Dabal is offline
Cempel Consulting Poland
 
Join Date: Sep 2013
Location: Poland
Posts: 4
Downloads: 8
Uploads: 0
Thanks: 5
Thanked 8 Times in 4 Posts
Rep Power: 0
Dawid Dabal is on a distinguished road
Default

Instead of value 0.65 you need to use 65 and etc..

Percentages must sum to 100.
Attached Files
File Type: fsm Send to Port By Percentage_v02.fsm (17.1 KB, 453 views)
Reply With Quote
The Following User Says Thank You to Dawid Dabal For This Useful Post:
  #3  
Old 03-13-2015
Jörg Vogel's Avatar
Jörg Vogel Jörg Vogel is offline
Flexsim User
 
Join Date: Sep 2007
Location: Hannover, Germany
Posts: 643
Downloads: 35
Uploads: 0
Thanks: 802
Thanked 665 Times in 410 Posts
Rep Power: 636
Jörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond repute
Default

a different approach is the use of the function cempirical([global table by rank, node or name], [stream number])

Jörg
Reply With Quote
The Following User Says Thank You to Jörg Vogel For This Useful Post:
  #4  
Old 03-15-2015
Herwina Richelle Andres Herwina Richelle Andres is offline
Flexsim User
 
Join Date: Aug 2014
Location: Philippines
Posts: 13
Downloads: 8
Uploads: 0
Thanks: 9
Thanked 3 Times in 1 Post
Rep Power: 64
Herwina Richelle Andres is on a distinguished road
Default

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
Reply With Quote
  #5  
Old 03-16-2015
Dawid Dabal Dawid Dabal is offline
Cempel Consulting Poland
 
Join Date: Sep 2013
Location: Poland
Posts: 4
Downloads: 8
Uploads: 0
Thanks: 5
Thanked 8 Times in 4 Posts
Rep Power: 0
Dawid Dabal is on a distinguished road
Default

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.
Attached Files
File Type: fsm Send to Port By Percentage_v03.fsm (16.9 KB, 530 views)
Reply With Quote
The Following 2 Users Say Thank You to Dawid Dabal For This Useful Post:
arunkrmahadeva (03-18-2015), Herwina Richelle Andres (03-18-2015)
  #6  
Old 03-17-2015
Herwina Richelle Andres Herwina Richelle Andres is offline
Flexsim User
 
Join Date: Aug 2014
Location: Philippines
Posts: 13
Downloads: 8
Uploads: 0
Thanks: 9
Thanked 3 Times in 1 Post
Rep Power: 64
Herwina Richelle Andres is on a distinguished road
Default 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


Attached Thumbnails
Click image for larger version

Name:	OE Simulator.5.jpg
Views:	496
Size:	753.2 KB
ID:	2795  
Attached Files
File Type: fsm OE Simulator.5.fsm (174.2 KB, 467 views)
Reply With Quote
  #7  
Old 03-17-2015
Herwina Richelle Andres Herwina Richelle Andres is offline
Flexsim User
 
Join Date: Aug 2014
Location: Philippines
Posts: 13
Downloads: 8
Uploads: 0
Thanks: 9
Thanked 3 Times in 1 Post
Rep Power: 64
Herwina Richelle Andres is on a distinguished road
Default

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
Reply With Quote
The Following 3 Users Say Thank You to Herwina Richelle Andres For This Useful Post:
arunkrmahadeva (03-18-2015), David Chan (03-19-2015), Jörg Vogel (03-17-2015)
Reply

Tags
david chan

Thread Tools
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 On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
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


All times are GMT -6. The time now is 04:31 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.
Copyright 1993-2018 FlexSim Software Products, Inc.