How can I increase speed up simulation of my least-cost path model

后端 未结 1 1688
北恋
北恋 2021-01-19 08:20

By using network extension, the following code builds the least-cost path between two polygons (composed of several patches) :

to calculate-LCP [ID-polygon-         


        
相关标签:
1条回答
  • 2021-01-19 08:47

    You only need to call nw:set-snapshot turtles links once when you first set up the network. If any weights change, or any links or nodes are added or removed, you'll need to call it again. This should speed up your code tremendously.

    0 讨论(0)
提交回复
热议问题