<?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: Find lowest value over multiple partitions in a list in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/find-lowest-value-over-multiple-partitions-in-a-list/m-p/13596612#M91254</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/91277-test-list-partition-jv.fsm" target="_blank"&gt;test-list-partition-jv.fsm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Here I get access to the treenodes of a global List object to get partition IDs and pushTime values of each first entry of a list partition. It is just the source code without any assignment to token labels of any kind.&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 28 Mar 2025 14:11:44 GMT</pubDate>
    <dc:creator>joerg_vogel_HsH</dc:creator>
    <dc:date>2025-03-28T14:11:44Z</dc:date>
    <item>
      <title>Find lowest value over multiple partitions in a list</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/find-lowest-value-over-multiple-partitions-in-a-list/m-p/13596609#M91251</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 24.0.8 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P id="isPasted"&gt;Hellow,&lt;/P&gt;
 &lt;P&gt; &lt;/P&gt;
 &lt;P&gt;I wanted to query over multiple partition in a list but that unfortunately not possible. Good idea for improvement imho.&lt;/P&gt;
 &lt;P&gt;Due to various reasons it still better for me to look in multiple partitions than it is to rewrite my model.&lt;/P&gt;
 &lt;P&gt;In the model I’ve build parcels arrive and are allocated to storage 1,2,3,4. They have a tonnage and a grade (1 or 2). I need to pull the earliest entry (FIFO) of a grade (for example grade 1). But I need to determine what partition has the earliest entry per grade in order to access the right partition.&lt;/P&gt;
 &lt;P&gt;All I can think of is make a query per partition in a custom code. Put those values in an array and then loop through it to find the lowest value.&lt;/P&gt;
 &lt;P&gt;Is there a better/easier way to do this?&lt;/P&gt;
 &lt;P&gt; &lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 27 Mar 2025 15:19:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/find-lowest-value-over-multiple-partitions-in-a-list/m-p/13596609#M91251</guid>
      <dc:creator>sander_d_dejong</dc:creator>
      <dc:date>2025-03-27T15:19:30Z</dc:date>
    </item>
    <item>
      <title>Re: Find lowest value over multiple partitions in a list</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/find-lowest-value-over-multiple-partitions-in-a-list/m-p/13596610#M91252</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/44873/sander.html" nodeid="44873"&gt;@Sander&lt;/A&gt;, a global list is a node structure in model tree. You can evaluate this structure to get references to all partitions. Knowing this you can query each partition by ORDER Clause. Then it is up to you if you order an array, a table or a list to get the lowest value.&lt;/P&gt;&lt;P&gt;&lt;A id="isPasted" href="https://answers.flexsim.com/answers/64417/view.html"&gt;https://answers.flexsim.com/answers/64417/view.html&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 27 Mar 2025 16:50:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/find-lowest-value-over-multiple-partitions-in-a-list/m-p/13596610#M91252</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2025-03-27T16:50:11Z</dc:date>
    </item>
    <item>
      <title>Re: Find lowest value over multiple partitions in a list</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/find-lowest-value-over-multiple-partitions-in-a-list/m-p/13596611#M91253</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/461/joerg.v.html" nodeid="461"&gt;@Joerg Vogel&lt;/A&gt; ,&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;Ive tried to understand and implement your comment. unsuccesfull atm.&lt;BR /&gt;Ive added the test file. I dont understand how i would go from the partition id to query a partition and get a specific value (label) that i can compare. Could you elaborate please?&lt;/P&gt;
 &lt;P&gt;(Didnt know the evaluate part, that will be usefull in the future anyhow. thank you.)&lt;/P&gt;
 &lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/91275-test-list-partition.fsm" target="_blank"&gt;Test_list_partition.fsm&lt;/A&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 28 Mar 2025 12:20:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/find-lowest-value-over-multiple-partitions-in-a-list/m-p/13596611#M91253</guid>
      <dc:creator>sander_d_dejong</dc:creator>
      <dc:date>2025-03-28T12:20:37Z</dc:date>
    </item>
    <item>
      <title>Re: Find lowest value over multiple partitions in a list</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/find-lowest-value-over-multiple-partitions-in-a-list/m-p/13596612#M91254</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/91277-test-list-partition-jv.fsm" target="_blank"&gt;test-list-partition-jv.fsm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Here I get access to the treenodes of a global List object to get partition IDs and pushTime values of each first entry of a list partition. It is just the source code without any assignment to token labels of any kind.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 28 Mar 2025 14:11:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/find-lowest-value-over-multiple-partitions-in-a-list/m-p/13596612#M91254</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2025-03-28T14:11:44Z</dc:date>
    </item>
    <item>
      <title>Re: Find lowest value over multiple partitions in a list</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/find-lowest-value-over-multiple-partitions-in-a-list/m-p/13596613#M91255</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Thanks again &lt;A rel="user" href="https://answers.flexsim.com/users/461/joerg.v.html" nodeid="461"&gt;@Joerg Vogel&lt;/A&gt;. very helpfull!&lt;/P&gt;
 &lt;P&gt;I kept getting errors from search in the list. I found out that my model creates a partition 0 with nothing in it. and query this partition will throw the code. &lt;/P&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1743175462145.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1527022i4B7F22742DEE95E5/image-size/large?v=v2&amp;amp;px=999" role="button" title="1743175462145.png" alt="1743175462145.png" /&gt;&lt;/span&gt;After some digging i found the culprit&lt;/P&gt;
 &lt;P&gt;Table("Storage_levels")[1][1] = Table.query("SELECT SUM(Tonnage) FROM List1.1")[1][1];&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/91291-test-list-partition-jv-s.fsm" target="_blank"&gt;test-list-partition-jv-S.fsm&lt;/A&gt;&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;So to say it does mess some stuff up in my model. Any ideas on how to elimite this partition 0?&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 28 Mar 2025 15:27:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/find-lowest-value-over-multiple-partitions-in-a-list/m-p/13596613#M91255</guid>
      <dc:creator>sander_d_dejong</dc:creator>
      <dc:date>2025-03-28T15:27:29Z</dc:date>
    </item>
    <item>
      <title>Re: Find lowest value over multiple partitions in a list</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/find-lowest-value-over-multiple-partitions-in-a-list/m-p/13596614#M91256</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/44873/sander.html" nodeid="44873"&gt;@Sander,&lt;/A&gt; a partition of 0 is a list without any partition at all. You must have assigned somewhere this value as a partition value. I think that is something you must find out yourself.&lt;/DIV&gt;</description>
      <pubDate>Fri, 28 Mar 2025 15:31:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/find-lowest-value-over-multiple-partitions-in-a-list/m-p/13596614#M91256</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2025-03-28T15:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: Find lowest value over multiple partitions in a list</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/find-lowest-value-over-multiple-partitions-in-a-list/m-p/13596615#M91257</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 Yeah my thoughts as well but I havnt assigned it anywhere.
 &lt;P&gt;check the file in my last post, i added the tabel.query code to the test model and it creates the 0 partition as well.&lt;/P&gt;
 &lt;P&gt;By your explaination on the treenodes i can rewrite some code to avoid the tabel.query but it looks like bug to me&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 28 Mar 2025 15:37:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/find-lowest-value-over-multiple-partitions-in-a-list/m-p/13596615#M91257</guid>
      <dc:creator>sander_d_dejong</dc:creator>
      <dc:date>2025-03-28T15:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: Find lowest value over multiple partitions in a list</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/find-lowest-value-over-multiple-partitions-in-a-list/m-p/13596616#M91258</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/44873/sander.html" nodeid="44873"&gt;@Sander&lt;/A&gt;, I think you got to a point where you can start a new logic approach. You can push oldest values additionally to a different list. Whenever you pull your oldest value, then you update this additional list by second oldest partitioned list value. Then you are not depending on evaluating tree node structures to override partition lists mechanisms anymore. On the other hand, why do use partitioned lists on first place, if you are still depend on to query all entries. Partitioned lists don’t make sense in this environment. A partition is useful if you query values very often by a special key.&lt;/DIV&gt;</description>
      <pubDate>Sat, 29 Mar 2025 19:31:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/find-lowest-value-over-multiple-partitions-in-a-list/m-p/13596616#M91258</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2025-03-29T19:31:02Z</dc:date>
    </item>
  </channel>
</rss>

