<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Network Analyst - Slope-Switch at Junctions in ArcGIS Network Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-network-analyst-questions/network-analyst-slope-switch-at-junctions/m-p/466372#M4450</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;its actually for electric vehicles. when they are driving downhill section and when they are recuperating (reusing breakenergy) then they actually receive some energy when driving downhill, thus the negative values &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Using the fuel consumption as accumulated attribute works fine, when i would look for a service area with a certain distance, like 100 km, but thats unfortunately not the case &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;so is there really no possible way to get this thing worked out with the fuelconsumption as impedance attribute?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Sep 2010 15:22:56 GMT</pubDate>
    <dc:creator>ThomasSchmidt</dc:creator>
    <dc:date>2010-09-14T15:22:56Z</dc:date>
    <item>
      <title>Network Analyst - Slope-Switch at Junctions</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/network-analyst-slope-switch-at-junctions/m-p/466365#M4443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello everyone, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Im using a street data set with calculated slope and fuel consumption. In my data set there are some roads with a large slope, so the fuel consumption on negative slope is much lower than on positive slope. My goal is to model a network (Routes and/or Service Area), that can pick on the junctions/nodes between the streets the following slope direction (+ or -) and accumulate the fuel consumption. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;My tests so far didnt work out properly, the larger the route got, the worse the results became. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Looking forward to your ideas! &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Greetings,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thomas&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Aug 2010 08:28:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/network-analyst-slope-switch-at-junctions/m-p/466365#M4443</guid>
      <dc:creator>ThomasSchmidt</dc:creator>
      <dc:date>2010-08-11T08:28:27Z</dc:date>
    </item>
    <item>
      <title>Re: Network Analyst - Slope-Switch at Junctions</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/network-analyst-slope-switch-at-junctions/m-p/466366#M4444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Why not store the positive/negative slope information on the edges themselves (e.g., using a descriptor attribute)? Having +/- slope information stored on the junction can be misleading since each junction can connect to multiple edges, some of which may have positive slope, and some of which may have negative slope.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please let me know if I have misunderstood your use case.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Aug 2010 14:56:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/network-analyst-slope-switch-at-junctions/m-p/466366#M4444</guid>
      <dc:creator>MichaelRice</dc:creator>
      <dc:date>2010-08-11T14:56:05Z</dc:date>
    </item>
    <item>
      <title>Re: Network Analyst - Slope-Switch at Junctions</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/network-analyst-slope-switch-at-junctions/m-p/466367#M4445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Right now I got two fields of slope in my street network attribute table: one for the positive slope and one for the negative slope. My goal is to get the exact results over a route with several ups and downs, which lead to different fuel consumption (obviously u need more fuel when driving uphill than downhill). When i want to receive the whole fuel consumption for that route, id like to have my network accumulate the consumption numbers from my attribute table according to the positive and negative slope. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When im "driving" over a route with 4 lines, first + slope, 2nd -, 3rd +, 4th - etc., id like the network analyst to "jump" in the attribute table to one field from another to get the exact consumption over this route. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hopefully this made it a little more understandable &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; I dont have the Slope itsself on the Junctions, i just thought it would be possible to adjust to junctions so they belong to the right slope numbers of the next part of the road.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Aug 2010 15:13:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/network-analyst-slope-switch-at-junctions/m-p/466367#M4445</guid>
      <dc:creator>ThomasSchmidt</dc:creator>
      <dc:date>2010-08-11T15:13:14Z</dc:date>
    </item>
    <item>
      <title>Re: Network Analyst - Slope-Switch at Junctions</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/network-analyst-slope-switch-at-junctions/m-p/466368#M4446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Here is what I would suggest: &lt;/SPAN&gt;&lt;BR /&gt;&lt;OL&gt;&lt;BR /&gt;&lt;LI&gt;Create two fields in your streets feature class called "FT_FuelConsumption" and "TF_FuelConsumption" to represent the fuel consumption for both directions (From-To and To-From) of a given street, respectively.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Calculate these field values (e.g., using a VBScript formula in the Field Calculator) based on whether they have a positive or negative slope for that direction.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Create a cost attribute called "FuelConsumption" in your network dataset. Specify the "FT_FuelConsumption" and "TF_FuelConsumption" fields as the sources for this attribute for your streets in the From-To and To-From directions, respectively.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Solve your route as before, but specify to accumulate "FuelConsumption" (this can be specified from the Accumulation tab on your Route analysis layer property pages). You can then open your Routes attribute table after a solve and see the total fuel consumption in the "Total_FuelConsumption" field.&lt;/LI&gt;&lt;BR /&gt;&lt;/OL&gt;&lt;BR /&gt;&lt;SPAN&gt;Let me know if you have any further questions.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Aug 2010 15:29:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/network-analyst-slope-switch-at-junctions/m-p/466368#M4446</guid>
      <dc:creator>MichaelRice</dc:creator>
      <dc:date>2010-08-11T15:29:29Z</dc:date>
    </item>
    <item>
      <title>Re: Network Analyst - Slope-Switch at Junctions</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/network-analyst-slope-switch-at-junctions/m-p/466369#M4447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This actually worked out and the Accumulation-Results looked right! &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I just have to adjust my Consumption-Formula now, since I have + and - in one attribute field now. (That was the reason why I calculated one field to positive and one to negative slope, so I can use the mathematical expressions easier). As u mentioned, the VBScript will be the way to go &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Will hopefully work out, thx for your help Michael!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Aug 2010 08:53:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/network-analyst-slope-switch-at-junctions/m-p/466369#M4447</guid>
      <dc:creator>ThomasSchmidt</dc:creator>
      <dc:date>2010-08-12T08:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: Network Analyst - Slope-Switch at Junctions</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/network-analyst-slope-switch-at-junctions/m-p/466370#M4448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;its me again and I got one more question &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; The routing worked out perfectly, but now ive been trying to solve a service area with the same attributes I already used for solving the routing problems. My goal is to produce range maps for the car type im working with. Ive been using the FuelConsumption attribute as impedance setting and the maximum value of fuel the car can handle as my default break. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem with solving the service areas now, is, that they arent using the the maximum value, i rather get some random results in between, changing from every location I start from. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you have any ideas on how to fix this? I was thinking about service areas cant handle negative values, since there are some in my fuelconsumption attributes. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thx in advance for any ideas !&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Sep 2010 13:27:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/network-analyst-slope-switch-at-junctions/m-p/466370#M4448</guid>
      <dc:creator>ThomasSchmidt</dc:creator>
      <dc:date>2010-09-14T13:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: Network Analyst - Slope-Switch at Junctions</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/network-analyst-slope-switch-at-junctions/m-p/466371#M4449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Negative values for an impedance attribute will be considered as "restricted" by the solvers, and the solver will not be allowed to traverse an element with such negative values. This is because the search algorithm is based on a variant of the well-known Dijkstra's algorithm, which cannot properly handle negative values. Therefore, the only way to include such negative values in the results would be to use this as an accumulated attribute rather than the impedance attribute itself.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a reason that some of these values are negative? I would assume that fuel consumption is always a non-negative value. Am I misunderstanding something?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Sep 2010 14:44:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/network-analyst-slope-switch-at-junctions/m-p/466371#M4449</guid>
      <dc:creator>MichaelRice</dc:creator>
      <dc:date>2010-09-14T14:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: Network Analyst - Slope-Switch at Junctions</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/network-analyst-slope-switch-at-junctions/m-p/466372#M4450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;its actually for electric vehicles. when they are driving downhill section and when they are recuperating (reusing breakenergy) then they actually receive some energy when driving downhill, thus the negative values &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Using the fuel consumption as accumulated attribute works fine, when i would look for a service area with a certain distance, like 100 km, but thats unfortunately not the case &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;so is there really no possible way to get this thing worked out with the fuelconsumption as impedance attribute?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Sep 2010 15:22:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/network-analyst-slope-switch-at-junctions/m-p/466372#M4450</guid>
      <dc:creator>ThomasSchmidt</dc:creator>
      <dc:date>2010-09-14T15:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: Network Analyst - Slope-Switch at Junctions</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/network-analyst-slope-switch-at-junctions/m-p/466373#M4451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ah, I see. This is quite an interesting use-case.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;so is there really no possible way to get this thing worked out with the fuelconsumption as impedance attribute?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Theoretically, yes; there are shortest path algorithms which will work for negative weight values (assuming no negative weight cycles in the graph). However, this would require some programming to create a custom solver within the Network Analyst framework to handle such negative values appropriately as, unfortunately, there are no out-of-the-box solvers in Network Analyst which can handle this scenario as an impedance attribute. Additionally, programming a custom solver is no trivial task. If you are interested, however, I can point you to some useful resources on this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please let me know, and we can proceed from there.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Sep 2010 15:33:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/network-analyst-slope-switch-at-junctions/m-p/466373#M4451</guid>
      <dc:creator>MichaelRice</dc:creator>
      <dc:date>2010-09-14T15:33:42Z</dc:date>
    </item>
    <item>
      <title>Re: Network Analyst - Slope-Switch at Junctions</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/network-analyst-slope-switch-at-junctions/m-p/466374#M4452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Since I dont see any other option at the moment, i would like to take a look at this, yes. It would be great, when u could link me to some resources. I would take a look at those informations and then I know if I would be able to do this or not. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Looking forward to it, thanks !&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Sep 2010 15:46:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/network-analyst-slope-switch-at-junctions/m-p/466374#M4452</guid>
      <dc:creator>ThomasSchmidt</dc:creator>
      <dc:date>2010-09-14T15:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: Network Analyst - Slope-Switch at Junctions</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/network-analyst-slope-switch-at-junctions/m-p/466375#M4453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Okay, this will require knowledge in two particular areas:&lt;/SPAN&gt;&lt;BR /&gt;&lt;OL&gt;&lt;BR /&gt;&lt;LI&gt;The Bellman-Ford Algorithm&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Programming Custom Network Analyst Solvers&lt;/LI&gt;&lt;BR /&gt;&lt;/OL&gt;&lt;BR /&gt;&lt;SPAN&gt;Let's start with the algorithmic requirements. The Bellman-Ford (BF) algorithm is discussed in sufficient detail here: &lt;/SPAN&gt;&lt;A href="http://en.wikipedia.org/wiki/Bellman_Ford"&gt;http://en.wikipedia.org/wiki/Bellman_Ford&lt;/A&gt;&lt;SPAN&gt;. If necessary, you can, of course, find more detailed discussions elsewhere on the web simply by searching for "Bellman-Ford". This algorithm provides the foundation for which you can find single-source shortest paths in graphs which may have negative weight edge costs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, after thinking about your use case some more, I have found a potential wrinkle in using this algorithm for service areas based on fuel tank capacity. You cannot simply run the BF algorithm and then choose those nodes whose shortest path distance from your source is less than or equal to your fuel tank capacity.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Consider the following problem, in which we want to find the shortest path (based on your potentially negative fuel consumption values) from some point A to some point C. Suppose that the shortest path from point A to point C travels through some other, intermediate point B. Suppose also that we have a fuel tank capacity of 20 fuel units (whatever units they may be).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If we simply used the standard BF algorithm, we could potentially end up in the following scenario. The shortest path from A to C costs 10 fuel units total. This is clearly within the fuel tank capacity. However, this path is made up of two subpaths: the shortest path from A to B and the shortest path from B to C. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We may have that the shortest path from A to B is 30 fuel units, but the shortest path from B to C is -20 fuel units. This, of course, gives us our total of 10 fuel units altogether, but there is one slight problem: the subpath just to get from A to B takes well over the 20 unit tank capacity, so this represents an infeasible route. That is, the vehicle could never even get to point B without running out of fuel!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Therefore, it seems you will have to modify the algorithm to somehow account for this capacity. In the original algorithm (using pseudocode from the link provided above), during each iteration each edge, (u,v), is "relaxed" using the following logic:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if u.distance + uv.weight &amp;lt; v.distance:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT]v.distance := u.distance + uv.weight[/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT]v.predecessor := u[/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To account for your capacity, we must adjust this logic using some additional constraints, such as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if u.distance + uv.weight &amp;lt; v.distance &lt;/SPAN&gt;&lt;STRONG&gt;AND u.distance &amp;lt;= capacity&lt;/STRONG&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT]v.distance := u.distance + uv.weight[/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT]v.predecessor := u[/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Otherwise, if we allowed to relax an edge from node u and u.distance &amp;gt; capacity, this could result in an infeasible solution similar to the above. This adjustment should provide you with the shortest possible path to each node, v, for which no subpath exceeds fuel capacity. Then, after running the algorithm, you should only need to select those nodes, v, for which v.distance &amp;lt;= capacity, and this should effectively give you your desired "service area" of nodes within fuel capacity from the source. Of course, if needed, you would then be responsible for building some form of polygon around those nodes to represent the actual area. I will leave it to you to decide how to do that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Okay, now on to the second part: programming a custom solver in Network Analyst. As I said before, this is no trivial task, but it is certainly achievable. We have provided a (simple) custom solver sample online which shows how to determine connectivity from a given set of source nodes in a graph. The sample can be found here: &lt;/SPAN&gt;&lt;A href="http://resources.esri.com/help/9.3/arcgisdesktop/com/samples/NetworkAnalyst/Solvers/CustomSolver/D463AD8F-83BE-4641-A39A-B4EA5597A7B4.htm"&gt;http://resources.esri.com/help/9.3/arcgisdesktop/com/samples/NetworkAnalyst/Solvers/CustomSolver/D463AD8F-83BE-4641-A39A-B4EA5597A7B4.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This shows the basics of which interfaces must be supported to have your solver appropriately recognized by the Network Analyst framework, as well as some of the basics of programmatically traversing the network dataset graph representation. Reviewing this sample should be a good starting point for you, and should at least give you some initial idea of what it will take to create your own custom solver. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please let me know if you have any further questions.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Sep 2010 19:37:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/network-analyst-slope-switch-at-junctions/m-p/466375#M4453</guid>
      <dc:creator>MichaelRice</dc:creator>
      <dc:date>2010-09-14T19:37:37Z</dc:date>
    </item>
    <item>
      <title>Re: Network Analyst - Slope-Switch at Junctions</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/network-analyst-slope-switch-at-junctions/m-p/466376#M4454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks, will take a look at this tomorrow morning when im at work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the best possible case, I dont just want to find the shortest path or the path which lets the car drive the most. It actually should count the paths in every direction, its obvious that some paths require more or less fuel. Maybe I misunderstood you, but just wanted to point this out again. Lets see if I can get this going!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Sep 2010 20:16:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/network-analyst-slope-switch-at-junctions/m-p/466376#M4454</guid>
      <dc:creator>ThomasSchmidt</dc:creator>
      <dc:date>2010-09-14T20:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: Network Analyst - Slope-Switch at Junctions</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/network-analyst-slope-switch-at-junctions/m-p/466377#M4455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, what I was suggesting should let you identify the entire range of the network which you can successfully reach within your specified fuel tank capacity. This will consider paths in all directions starting from the source, and not just a single path (I was just using the single path example to illustrate some potential problems to be aware of). For each node reachable within this capacity, this will also tell you how much fuel it took to get there.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Sep 2010 20:22:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/network-analyst-slope-switch-at-junctions/m-p/466377#M4455</guid>
      <dc:creator>MichaelRice</dc:creator>
      <dc:date>2010-09-14T20:22:05Z</dc:date>
    </item>
    <item>
      <title>Re: Network Analyst - Slope-Switch at Junctions</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/network-analyst-slope-switch-at-junctions/m-p/466378#M4456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;its actually for electric vehicles. when they are driving downhill section and when they are recuperating (reusing breakenergy) then they actually receive some energy when driving downhill, thus the negative values &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Using the fuel consumption as accumulated attribute works fine, when i would look for a service area with a certain distance, like 100 km, but thats unfortunately not the case &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; &lt;BR /&gt;&lt;BR /&gt;so is there really no possible way to get this thing worked out with the fuelconsumption as impedance attribute?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One possibility is to create a new impedance attribute for your roads where the downhill traversal cost is zero (if you have more than say a negative two percent grade).&amp;nbsp; This isn't technically correct but it is probably very close to what you will encounter in the real world.&amp;nbsp; A real world calculation would need to take into consideration the coefficient of drag of the vehicle, speed of the vehicle when traversing the edge, rolling resistance of the tires, etc.&amp;nbsp; Simply saying that traversing an edge is "free" will probably come very close to the actual cost and you can then use the route solver to estimate the difference between this new attribute and your older attribute with negative costs.&amp;nbsp; Best of all you could use this new attribute in the route and service area solvers to generate least energy consumption routes and service areas.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Sep 2010 21:41:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/network-analyst-slope-switch-at-junctions/m-p/466378#M4456</guid>
      <dc:creator>DougSterling</dc:creator>
      <dc:date>2010-09-14T21:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: Network Analyst - Slope-Switch at Junctions</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/network-analyst-slope-switch-at-junctions/m-p/466379#M4457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Checked everything today and it looks like I could get this going, when I would have more time left. I have to finish the work on this in one week and its not the only thing I have left for this work. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Today I was thinking about the option to take the distance as the impedance attribute and choose a value much higher than the car actually could drive without refueling. I then wanted to make a selection from the accumulated fuel-attribute with "to_fuelconsumption &amp;lt;= maximum fuel in car". From this point on, I could create a new layer from the selected features or even make a buffer around it to visualize the results. I wanted to check if the service area accumulates the negative values for the fuel consumption but couldnt find a line where it was working. I checked for lines with "from_fuelconsumption &amp;gt; to_fuelconsumption" which should select me all the lines with an energy reward for the car. Do I have to change anything in the network properties (besides the stuff which you already told me before in the thread) for the accumulation of the fuel with negative values?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I also thought about the option to make all negative values = 0, this would make it easier to work and visualize everything without a problem. The point is, that those negative values is actually a main part of this work Im doing so not recognizing this part doesnt seem to be an option for me, sorry. You are obviously right though, that there are a lot of other parameters having impact on the fuelconsumption. However, this would be the topic of following, related works, this one is designed for a simple model considering the slope and the length of the streetsegments. The results dont look too bad either. Thanks for your idea though! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Sep 2010 13:01:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/network-analyst-slope-switch-at-junctions/m-p/466379#M4457</guid>
      <dc:creator>ThomasSchmidt</dc:creator>
      <dc:date>2010-09-15T13:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: Network Analyst - Slope-Switch at Junctions</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/network-analyst-slope-switch-at-junctions/m-p/466380#M4458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Do I have to change anything in the network properties (besides the stuff which you already told me before in the thread) for the accumulation of the fuel with negative values?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You should not have to change anything. Just check on the FuelConsumption attribute in the Accumulation tab on the analysis layer's property pages. If it is not accumulating the values properly for some reason, please post an example of what appears to be incorrect.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I was thinking about the option to take the distance as the impedance attribute and choose a value much higher than the car actually could drive without refueling. I then wanted to make a selection from the accumulated fuel-attribute with "to_fuelconsumption &amp;lt;= maximum fuel in car"&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is certainly a reasonable approximation. However, please note that if you simply select those parts of the network for which "to_fuelconsumption &amp;lt;= maximum fuel in car", then you could run into the exact same problem I was mentioning earlier about finding infeasible routes due to having a subpath which itself exceeds fuel capacity (even if the full shortest path does not). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What you really want is to find only those parts of the network which are reachable within your fuel capacity and for which no subpath from the source exceeds fuel capacity. Does this make sense?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You could still do this using the Service Area solver and a slight variation of your suggested approach above (of using a length-based impedance attribute while accumulating FuelConsumption). After solve, for each element which is reachable within the fuel capacity, you would need to trace the shortest path back to the source and only if every element along this subpath is itself reachable within capacity would you select that original element.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There is an older online sample (in VB6) which shows how to trace paths back to the source for service area traversal results. You can find this sample here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://edndoc.esri.com//arcobjects/9.2/CPP_VB6_VBA_VCPP_Doc/COM_Samples_Docs/NetworkAnalyst/TraversalResult/47680c4c-c854-4a0d-b975-d27cebc3ec8b.htm"&gt;http://edndoc.esri.com//arcobjects/9.2/CPP_VB6_VBA_VCPP_Doc/COM_Samples_Docs/NetworkAnalyst/TraversalResult/47680c4c-c854-4a0d-b975-d27cebc3ec8b.htm&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Sep 2010 15:31:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/network-analyst-slope-switch-at-junctions/m-p/466380#M4458</guid>
      <dc:creator>MichaelRice</dc:creator>
      <dc:date>2010-09-15T15:31:33Z</dc:date>
    </item>
    <item>
      <title>Re: Network Analyst - Slope-Switch at Junctions</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/network-analyst-slope-switch-at-junctions/m-p/466381#M4459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;You should not have to change anything. Just check on the FuelConsumption attribute in the Accumulation tab on the analysis layer's property pages. If it is not accumulating the values properly for some reason, please post an example of what appears to be incorrect. &lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am not at my working computer anymore, so I cant provide you any screens. I did a service area solve and had a look at the attribute table of the lines (~20k). I had a look through them and couldnt find a To_FuelConsumption having a lower value than the From_Fuel. I tried to select those lines then via select all lines "to_fuelconsumption &amp;lt; from_fuelconsupmtion". I havent received any result. I cant imagine that theres no single line in roughly 20000 lines which wouldnt have had a single negative value. By the way: approximately 30% of my street segments include a negative value on either From_ or To_FuelCon. Maybe theres a fault from me to think that this selection would give results, but it should be right, I suppose. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(I havent had any restriction attribute activated and used the right attribute fields for the From-To and To-From Values. I checked that already)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When you would have any ideas on this, they would be very welcome. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;This is certainly a reasonable approximation. However, please note that if you simply select those parts of the network for which "to_fuelconsumption &amp;lt;= maximum fuel in car", then you could run into the exact same problem I was mentioning earlier about finding infeasible routes due to having a subpath which itself exceeds fuel capacity (even if the full shortest path does not). &lt;BR /&gt;&lt;BR /&gt;What you really want is to find only those parts of the network which are reachable within your fuel capacity and for which no subpath from the source exceeds fuel capacity. Does this make sense?&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This definitely makes sense &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; Have to try out the VB file u linked me tomorrow.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Sep 2010 16:09:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/network-analyst-slope-switch-at-junctions/m-p/466381#M4459</guid>
      <dc:creator>ThomasSchmidt</dc:creator>
      <dc:date>2010-09-15T16:09:25Z</dc:date>
    </item>
    <item>
      <title>Re: Network Analyst - Slope-Switch at Junctions</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/network-analyst-slope-switch-at-junctions/m-p/466382#M4460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thomas,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have investigated this some more, and there actually appears to be a logic error in accumulating negative values for the Service Area solver. Therefore, it appears that your unique use-case scenario has uncovered a previously-unknown issue. Thanks for bringing this to our attention! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; I have logged this as a bug, and we will take care of it as soon as possible.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the meantime, you still have valid information which you can use for your purposes. Instead of using the field values from your Lines feature class, you can use the field values from the traversal results. Traversal results are just feature class representations of the individual edges, junctions, and turns that were traversed for a given solution, and the cost information associated with them.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The sample I pointed you to earlier shows how to work with traversal results to trace paths back to the source facilities for service area solutions. There is another add-in for ArcMap which allows you to automatically generate the traversal results for a given solution and it adds this information to ArcMap as new feature layers. Please see this sample here: &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/gallery/file/arcobjects-net-api/details?entryID=C8A2186E-1422-2418-3494-48812C8DB8DE"&gt;http://resources.arcgis.com/gallery/file/arcobjects-net-api/details?entryID=C8A2186E-1422-2418-3494-48812C8DB8DE&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Using this add-in, you can solve your service area, then generate the traversal results in ArcMap, and look at the field values on the traversal result feature layer named "Edges". The features in this layer represent all traversed edges for your solution, and the cost field values should correctly identify any negative-weight edge traversals.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Sep 2010 19:29:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/network-analyst-slope-switch-at-junctions/m-p/466382#M4460</guid>
      <dc:creator>MichaelRice</dc:creator>
      <dc:date>2010-09-15T19:29:59Z</dc:date>
    </item>
    <item>
      <title>Re: Network Analyst - Slope-Switch at Junctions</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/network-analyst-slope-switch-at-junctions/m-p/466383#M4461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Im glad that I could help you out on this &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ive succesfully used the "Select Transversed Features" Script u linked me, but unfortunately Im using ArcGis 9.3 and not Version 10, which is required for the lastest link u gave me... Any chance to get this working in 9.3?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Sep 2010 10:09:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/network-analyst-slope-switch-at-junctions/m-p/466383#M4461</guid>
      <dc:creator>ThomasSchmidt</dc:creator>
      <dc:date>2010-09-16T10:09:58Z</dc:date>
    </item>
    <item>
      <title>Re: Network Analyst - Slope-Switch at Junctions</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/network-analyst-slope-switch-at-junctions/m-p/466384#M4462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Any chance to get this working in 9.3?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Absolutely. There are some simple code snippets showing how to do this same thing located here: &lt;/SPAN&gt;&lt;A href="http://resources.esri.com/help/9.3/ArcGISDesktop/ArcObjects/esriNetworkAnalyst/INATraversalResultQuery.htm"&gt;http://resources.esri.com/help/9.3/ArcGISDesktop/ArcObjects/esriNetworkAnalyst/INATraversalResultQuery.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you use the Visual Basic version of the code linked to above, you can simply copy and paste this into your ArcMap VBA editor and run it directly from there.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Sep 2010 14:47:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/network-analyst-slope-switch-at-junctions/m-p/466384#M4462</guid>
      <dc:creator>MichaelRice</dc:creator>
      <dc:date>2010-09-16T14:47:55Z</dc:date>
    </item>
  </channel>
</rss>

