<?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 Avoid/Prefer Syntax in ArcGIS Network Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-network-analyst-questions/avoid-prefer-syntax/m-p/89039#M890</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm a little confused with some of the output that's coming from my solves and I'd like to get clarification...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I'm using prefer/avoid restrictions I'm not sure if I should be returning a true or a false. The way I have it set up now is... for the prefers, I return a false if the node meets my preference condition. For an avoid, I return a true if the node meets my avoidance condition.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Apr 2013 21:28:50 GMT</pubDate>
    <dc:creator>JustinHunter</dc:creator>
    <dc:date>2013-04-17T21:28:50Z</dc:date>
    <item>
      <title>Avoid/Prefer Syntax</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/avoid-prefer-syntax/m-p/89039#M890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm a little confused with some of the output that's coming from my solves and I'd like to get clarification...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I'm using prefer/avoid restrictions I'm not sure if I should be returning a true or a false. The way I have it set up now is... for the prefers, I return a false if the node meets my preference condition. For an avoid, I return a true if the node meets my avoidance condition.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Apr 2013 21:28:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/avoid-prefer-syntax/m-p/89039#M890</guid>
      <dc:creator>JustinHunter</dc:creator>
      <dc:date>2013-04-17T21:28:50Z</dc:date>
    </item>
    <item>
      <title>Re: Avoid/Prefer Syntax</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/avoid-prefer-syntax/m-p/89040#M891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey Justin,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you setting up prefer/avoid restrictions on your network dataset? If so, the restriction should evaluate to True regardless of whether you want to avoid or prefer the network element. The Restriction Usage parameter that is created by default with any restriction attribute determines whether the restricted elements should be completely prohibited, avoided, or preferred.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I realize it sounds odd to prefer a restricted element, but in order to prefer/avoid elements, they need to be 'restricted' first. Going through the following tutorial may help clarify this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/main/10.1/#/Exercise_12_Performing_network_analysis_using_restriction_attributes/0047000001s5000000/" rel="nofollow" target="_blank"&gt;http://resources.arcgis.com/en/help/main/10.1/#/Exercise_12_Performing_network_analysis_using_restriction_attributes/0047000001s5000000/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Robert&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Apr 2013 22:29:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/avoid-prefer-syntax/m-p/89040#M891</guid>
      <dc:creator>RobertGarrity</dc:creator>
      <dc:date>2013-04-17T22:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: Avoid/Prefer Syntax</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/avoid-prefer-syntax/m-p/89041#M892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Oh, ok. I had it wrong, thanks for your clarification. I just modified one of my "Prefer: High" from false to true and it had the desired result.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks so much. &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, 17 Apr 2013 22:35:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/avoid-prefer-syntax/m-p/89041#M892</guid>
      <dc:creator>JustinHunter</dc:creator>
      <dc:date>2013-04-17T22:35:14Z</dc:date>
    </item>
  </channel>
</rss>

