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 CT > Container Terminal (CT) Library
Downloads

  #1  
Old 11-07-2012
stmyint stmyint is offline
Flexsim User
 
Join Date: Oct 2012
Posts: 14
Downloads: 6
Uploads: 0
Thanks: 6
Thanked 1 Time in 1 Post
Rep Power: 92
stmyint is on a distinguished road
Default How can i find random path in flexsim ?

Hi All,

Flexsim Vehicle always finding shortest path ... How can i choose Network Node randomly as attached file?
( Ex. when vehicles arrive NN1, continue to NN2 or NN3 randomly. )
Please advise.
Thanks.
Attached Thumbnails
Click image for larger version
Name:	path.jpg
Views:	166
Size:	26.2 KB
ID:	1964  
  #2  
Old 11-07-2012
Jason Lightfoot Jason Lightfoot is offline
Flexsim Consultant
 
Join Date: Aug 2007
Location: Somerset, UK
Posts: 719
Downloads: 20
Uploads: 0
Thanks: 123
Thanked 953 Times in 446 Posts
Rep Power: 773
Jason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond repute
Default

In standard Flexsim you'd use something like this in the Arrival trigger of the network node.

Code:
if (fromedge==1){
	return bernoulli(50,2,3);
}
The Following 2 Users Say Thank You to Jason Lightfoot For This Useful Post:
stmyint (11-07-2012)
  #3  
Old 11-07-2012
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: 642
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

you can add further tasks in the current active tasksequence, as long as the frunload has not begun. Rerank those inserted task before the frunload task.

Useful commands are:
gettasksequence(obj taskexecuter, 0); // node of the current active TS
setrank(last(obj tasksequence), rank number) //rank inserted tasksequence
// e.g. number 4
The Following User Says Thank You to Jörg Vogel For This Useful Post:
stmyint (11-07-2012)
  #4  
Old 11-07-2012
stmyint stmyint is offline
Flexsim User
 
Join Date: Oct 2012
Posts: 14
Downloads: 6
Uploads: 0
Thanks: 6
Thanked 1 Time in 1 Post
Rep Power: 92
stmyint is on a distinguished road
Default

Please check the flexsim model file.
I used opennodeedge and closenodeedge for changing alternate route to dispatch at yard block. but i got error and vehicle was waiting until nodeedge reopen. what should i add? Please advice.
thanks.
Attached Files
File Type: fsm alternate route.fsm (116.2 KB, 141 views)
  #5  
Old 06-27-2013
Kris Geisberger Kris Geisberger is offline
Flexsim Canada, Forum Moderator
 
Join Date: Aug 2007
Location: Canada
Posts: 209
Downloads: 54
Uploads: 1
Thanks: 99
Thanked 389 Times in 133 Posts
Rep Power: 451
Kris Geisberger has much to be proud ofKris Geisberger has much to be proud ofKris Geisberger has much to be proud ofKris Geisberger has much to be proud ofKris Geisberger has much to be proud ofKris Geisberger has much to be proud ofKris Geisberger has much to be proud ofKris Geisberger has much to be proud ofKris Geisberger has much to be proud ofKris Geisberger has much to be proud of
Default

There is an example of Jason's suggestion here:
http://www.flexsim.com/community/for...ead.php?t=2010


Thread Thread Starter Forum Replies Last Post
Can't find objects vasiliki grigorakaki Q&A 4 01-30-2012 03:01 AM
More random random number Paul Dowling Q&A 6 06-01-2008 07:30 PM
Find all nodes toggled as C++ Brandon Peterson Tips and Tricks 0 04-18-2008 03:36 PM
How to get a full path of the current open Flexsim model file. Regan Blackett Tips and Tricks 7 04-17-2008 10:39 AM
Expertfit cannot find network key - Flexsim Network License Kris Geisberger Q&A 0 02-05-2008 05:10 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.