question

Michael D6 avatar image
0 Likes"
Michael D6 asked Joerg Vogel commented

AGV Parameter AStar

AGV as Parameter Random Placement.fsmHello, I created a simple model attached that has an A Star network and then an AGV as a parameter. When I increase the number of AGVs they all are placed in the same spot. I would ideally like the AGVs assigned to random spots in the AStar network. Can someone recommend an easy way to do that so that the location of the AGVs is different on startup?

FlexSim 21.2.3
agvastar
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Joerg Vogel commented

Object location property can alter a position of an object by setting separately components of Vec3 property x, y or z. Or you can set a whole position by a created Vec3 data value.

There is a Vec3 class value constructor which translates three double values for x, y, and z or an array of three number values.

Statistical distribution duniform returns discrete values in parameter range lowest to highest value. You can also use other uniform or statistical distributions to get randomly values to assign them as values into a location property.

· 3
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.