Skip to main content
Question

i did not get the expected output by Using cost attribute at shortest path finder .

  • November 19, 2020
  • 3 replies
  • 16 views

gogopotter90
Contributor
Forum|alt.badge.img+13

Adding cost attribute :

i have specific attribute and i would like to find the path that has the lowest value of this attribute ,even if it is shortest path or longest path ,does not matter of the length .

i tried to use Cost type by one attribute ,i did not get any paths so i used by two attributes and i get output but it goes through two paths . one path has cost attribute=30 ,and the second path has cost attribute = 60 ,i did not understand why it goes through this path that contains 60 . i thought ,it will goes only through path 30 .

 

secondly ,i was watching videos about shortest path finder and i did the same parameter for attribute value mapper but i did not understand why should i make the parameters like that ,default value 2 ...

why will be better for Cost to use two attributes instead only one attribute ?

i need only to get one path that contains lowest cost of attribute ,how could i achieve that and does not matter of the length ?

 

the network is noded correctly ,because i used cost type by length and it works great .

 

Att.ValueMapperS.P.F.Path

3 replies

DanAtSafe
Safer
Forum|alt.badge.img+18
  • Safer
  • November 20, 2020

Hi @gogopotter90​ Can you please submit a case and send us some sample data and your workspace to test here? thanks


gogopotter90
Contributor
Forum|alt.badge.img+13
  • Author
  • Contributor
  • November 21, 2020
DanAtSafe wrote:

Hi @gogopotter90​ Can you please submit a case and send us some sample data and your workspace to test here? thanks

it will be hard to upload the data , but could you tell me ,does it correct method to use the cost by setting the parameters of attribute mapper like the image ?what is the idea of create these values (Default value = 2 ,x=1 ,y=3 ) .i have only seen in video and i did similar but i think,he did not explain clearly the reason .Thanks for ur reply


DanAtSafe
Safer
Forum|alt.badge.img+18
  • Safer
  • November 24, 2020
gogopotter90 wrote:

it will be hard to upload the data , but could you tell me ,does it correct method to use the cost by setting the parameters of attribute mapper like the image ?what is the idea of create these values (Default value = 2 ,x=1 ,y=3 ) .i have only seen in video and i did similar but i think,he did not explain clearly the reason .Thanks for ur reply

The cost should be a number, so yes, you can use the AttributeValueMapper as you have done to set the new value to the 'type' attribute.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings