fitness not showing - Grasshopper2024-03-29T05:42:12Zhttps://www.grasshopper3d.com/forum/topics/fitness-not-showing?groupUrl=biomorpher&feed=yes&xn_auth=nohi john
thank you for the ad…tag:www.grasshopper3d.com,2020-02-12:2985220:Comment:20437562020-02-12T22:53:18.453Zanas_hosneyhttps://www.grasshopper3d.com/profile/anashosney
<p>hi john </p>
<p>thank you for the advice</p>
<p>it is working fine now it was the naming and of the fitnesses tree, yet still, the time aspect is challenging but it is reasonable considering the fitness time consumption. </p>
<p></p>
<p>on the other hand, I have a different question do you have any advice regarding a large pool of iterations. is there is a way for it to avoid looping around local optimal? </p>
<p></p>
<p>it seems to stick to a certain group after 4-5 generation and I wonder…</p>
<p>hi john </p>
<p>thank you for the advice</p>
<p>it is working fine now it was the naming and of the fitnesses tree, yet still, the time aspect is challenging but it is reasonable considering the fitness time consumption. </p>
<p></p>
<p>on the other hand, I have a different question do you have any advice regarding a large pool of iterations. is there is a way for it to avoid looping around local optimal? </p>
<p></p>
<p>it seems to stick to a certain group after 4-5 generation and I wonder if there is a way to look further in the pool</p>
<p>? </p> Hi Anas,
With regards the per…tag:www.grasshopper3d.com,2020-02-09:2985220:Comment:20427082020-02-09T22:21:25.399ZJohn Hardinghttps://www.grasshopper3d.com/profile/JohnHarding
<p>Hi Anas,</p>
<p>With regards the performances, you're right that if you have a list it doesn't repeat the elements. It might have something to do with the fact it gets the nickname from the wire (so rarely would you want to have the same name for several things), but that doesn't explain why it isn't working at present, because the code looks ok as it flattens all input volatile data:</p>
<p><span style="font-size: 8pt;"><code></span></p>
<p><span style="font-size: 8pt;">foreach…</span></p>
<p>Hi Anas,</p>
<p>With regards the performances, you're right that if you have a list it doesn't repeat the elements. It might have something to do with the fact it gets the nickname from the wire (so rarely would you want to have the same name for several things), but that doesn't explain why it isn't working at present, because the code looks ok as it flattens all input volatile data:</p>
<p><span style="font-size: 8pt;"><code></span></p>
<p><span style="font-size: 8pt;">foreach (IGH_Param param in Params.Input[2].Sources){</span><br/><span style="font-size: 8pt;"> foreach (Object myObj in param.VolatileData.AllData(true)){</span><br/><span style="font-size: 8pt;"> if (myObj is GH_Number && pCount < 8){</span><br/><span style="font-size: 8pt;"> if(!criteria.Contains(param.NickName)){</span><br/><span style="font-size: 8pt;"> GH_Number temp = (GH_Number)myObj;</span><br/><span style="font-size: 8pt;"> performas.Add(temp.Value);</span><br/><span style="font-size: 8pt;"> criteria.Add(param.NickName);</span><br/><span style="font-size: 8pt;"> pCount++;</span></p>
<p><span style="font-size: 8pt;"> }</span></p>
<p><span style="font-size: 8pt;"> }</span></p>
<p><span style="font-size: 8pt;"> }</span></p>
<p><span style="font-size: 8pt;">}</span></p>
<p><span style="font-size: 8pt;"></code></span></p>
<p></p>
<p>Anyway, you can only have 8 performance criteria max, so I would suggest splitting your list and naming each performance measure accordingly:</p>
<p><a href="https://storage.ning.com/topology/rest/1.0/file/get/3855241075?profile=original" target="_blank" rel="noopener"><img src="https://storage.ning.com/topology/rest/1.0/file/get/3855241075?profile=RESIZE_710x" class="align-full"/></a></p>
<p>As for the speed, this is very hard to tell without a file to go on. Ultimately biomorpher is doing practically nothing compared to the time it takes to calculate each grasshopper instance.</p>
<p>However, I would recommend reducing the population size and disabling the grasshopper preview (on the initial screen). Also, try running the thing but just inputting a simple mesh sphere <em>instead of</em> the actual geometry (whilst still inputting the correct performance measures), and see if you get any speed improvement then let me know. That would be interesting to know, because there might be ways I can improve the speed by not importing meshes necessarily.</p>
<p>Alternatively, just send me a cut down version of your definition and I'll have a look.</p>
<p>Thanks,</p>
<p>John.</p>
<p></p>
<p></p>
<p></p> hi john,
it is my thesis wor…tag:www.grasshopper3d.com,2020-02-09:2985220:Comment:20427012020-02-09T18:37:35.253Zanas_hosneyhttps://www.grasshopper3d.com/profile/anashosney
<p>hi john, </p>
<p>it is my thesis work where I am trying to optimize a neighborhood geometry based on performance and floor area ratio</p>
<p></p>
<p>the file is too complicated to share other than it is not published work yet. the issue is that with version 0.4.0 it is working but it is very slow than what it takes on 0.6.0 </p>
<p>it is consuming too much RAM </p>
<p>with 0.6.0 it takes from 10 to 20 minutes for one generation while it reaches to 3 hours with 0.4.0 </p>
<p>the 0.6.0 tends…</p>
<p>hi john, </p>
<p>it is my thesis work where I am trying to optimize a neighborhood geometry based on performance and floor area ratio</p>
<p></p>
<p>the file is too complicated to share other than it is not published work yet. the issue is that with version 0.4.0 it is working but it is very slow than what it takes on 0.6.0 </p>
<p>it is consuming too much RAM </p>
<p>with 0.6.0 it takes from 10 to 20 minutes for one generation while it reaches to 3 hours with 0.4.0 </p>
<p>the 0.6.0 tends to show only the first fed fitness either I give it the two in a list, grafted or flatten or merged in one list </p>
<p></p>
<p>I would appreciate if you can tell me more about how does it receive the fitness just to check if I am doing it wrong. </p>
<p>thanks and best regards</p>
<p>anas </p>
<p></p> Hi Anas,
Never had this befor…tag:www.grasshopper3d.com,2019-08-13:2985220:Comment:20035412019-08-13T16:10:44.609ZJohn Hardinghttps://www.grasshopper3d.com/profile/JohnHarding
<p>Hi Anas,</p>
<p>Never had this before. Could you attach an example gh file and I can have a look.</p>
<p>Thanks,</p>
<p>John.</p>
<p>Hi Anas,</p>
<p>Never had this before. Could you attach an example gh file and I can have a look.</p>
<p>Thanks,</p>
<p>John.</p>