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 |
#1
|
|||
|
|||
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. |
#2
|
|||
|
|||
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
|
||||
|
||||
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
|
|||
|
|||
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. |
#5
|
|||
|
|||
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 |