Hi, I am trying to code Dijkstra's algorithm, using a method, to allow MUs to go on the shortest line. I want to set the "weight" of the line as the length, and repeat this for every line. How could I do this? I also want to use arrays, but I can't find any resources for SimTalk that have this. Are there any resources for learning SimTalk other than what's in Manufacturing Simulation with Plant Simulation and SimTalk?
If you use Transporters and Tracks/TwoLaneTracks you can use the built-in algorithm (yes, Dijkstra's algorithm). By just setting a destination for the Transporter, the software will calculate the shortest (weighted) path.
Only for Tracks and Transporters. So, if you can use it for your specific projects depends on what you want to model. There are some cases where both approaches could work.