Ways finding using Wallacei

Hi, I want to find the ways keeping away from some obstacles, and find the shortest one, described as below:

But unfortunately, the ways found are not the optimal ones , how can I improve the model?
ways with obstacles.gh (103.9 KB)

Hi, I recomed using pedsim instead, please see file attached
pedsim.gh (15.8 KB)

i like to use shortest walk: