# Generative design optimize method is taking too long

**URL:** <https://forum.dynamobim.com/t/generative-design-optimize-method-is-taking-too-long/61790>\
**Category:** Generative Design\
**Tags:** revit, dynamo, refinery\
**Created:** [March 17, 2021, 11:19pm UTC](https://forum.dynamobim.com/t/generative-design-optimize-method-is-taking-too-long/61790 "2021-03-17T23:19:20Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![walid.espinosa](https://avatars.discourse-cdn.com/v4/letter/w/dc4da7/32.png) [@walid.espinosa](https://forum.dynamobim.com/u/walid.espinosa)\
**Post date:** [March 17, 2021, 11:19pm UTC](https://forum.dynamobim.com/t/generative-design-optimize-method-is-taking-too-long/61790/1 "2021-03-17T23:19:20Z")

</div>

Greetings Dynamo People :D, I am trying to use generative design to generate 12 solids with the minimum intersection, each solid has a minimum width of 1 and max 2.5 but when i run the study using optimize method, the generative design seems to be stuck and will take forever to produce just 10 solutions for 12 solids. only I get the results when using the randomized method but the results are not accurate

any suggestion on how to run this study on the optimize method? or why it is failing  
Thanks alot

 ![Capture](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/5/15b73abff841d8e892926ebd3b3452c7ca4f129a.png)  
 ![Define Study](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/c/9/c906da1cf96a9db18dfba000e82c6fb840cb8e7c.png) ![Define Study-1](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/2/e24175adef0b961d6b2a59a518c933cc12ab017b.png)  
 ![Define Study-2](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/a/0ac05e0d44addcebecf5df7f896eb444ca689203.png)  
 ![Define Study-3](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/d/d/dd4546fb0f919df6ae4ff3bed0d455d8d0d0ef1b.png)

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [March 19, 2021, 4:37am UTC](https://forum.dynamobim.com/t/generative-design-optimize-method-is-taking-too-long/61790/2 "2021-03-19T04:37:02Z")

</div>

Can you post the dyn?

---

<div class="post-metadata">

**Author:** ![walid.espinosa](https://avatars.discourse-cdn.com/v4/letter/w/dc4da7/32.png) [@walid.espinosa](https://forum.dynamobim.com/u/walid.espinosa)\
**Post date:** [March 19, 2021, 9:17am UTC](https://forum.dynamobim.com/t/generative-design-optimize-method-is-taking-too-long/61790/3 "2021-03-19T09:17:59Z")

</div>

Sure Jacob, here it is  
[Testing script.dyn](https://forum.dynamobim.com/uploads/short-url/dRw0hXi2n5916CQUCwsiis0d3df.dyn) (106.3 KB)

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [March 19, 2021, 4:24pm UTC](https://forum.dynamobim.com/t/generative-design-optimize-method-is-taking-too-long/61790/4 "2021-03-19T16:24:25Z")

</div>

Looking it over now, there isn’t anything serialized into the Remember node, so we’d have to have the RVT file as well. Can you either save the graph with data in the Remember node, or provide a sample Revit file?

---

<div class="post-metadata">

**Author:** ![walid.espinosa](https://avatars.discourse-cdn.com/v4/letter/w/dc4da7/32.png) [@walid.espinosa](https://forum.dynamobim.com/u/walid.espinosa)\
**Post date:** [March 19, 2021, 4:33pm UTC](https://forum.dynamobim.com/t/generative-design-optimize-method-is-taking-too-long/61790/5 "2021-03-19T16:33:17Z")

</div>

oh my bad, ok please find the link for the Revit file

> **[Testing model - Revit model.rvt](https://wetransfer.com/downloads/fb1a12d2e50beb64c67275723e31343220210319163116/40478a)**
>
> 1 file sent via WeTransfer, the simplest way to send your files around the world

Thank you jacob

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [March 19, 2021, 4:45pm UTC](https://forum.dynamobim.com/t/generative-design-optimize-method-is-taking-too-long/61790/6 "2021-03-19T16:45:43Z")

</div>

Graph runs quite quickly for me, even in a 100x100 study (overkill for this scope). What are the settings you’re using for generation and population?

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [March 19, 2021, 4:47pm UTC](https://forum.dynamobim.com/t/generative-design-optimize-method-is-taking-too-long/61790/7 "2021-03-19T16:47:47Z")

</div>

Nevermind I see it was a 20x10… do you have other studies which are trying ot work concurrently? That is if you start GD are you seeing more than one study with a pinwheel (not a red X or green check) in the browser?

---

<div class="post-metadata">

**Author:** ![walid.espinosa](https://avatars.discourse-cdn.com/v4/letter/w/dc4da7/32.png) [@walid.espinosa](https://forum.dynamobim.com/u/walid.espinosa)\
**Post date:** [March 19, 2021, 4:51pm UTC](https://forum.dynamobim.com/t/generative-design-optimize-method-is-taking-too-long/61790/8 "2021-03-19T16:51:31Z")

</div>

when I set the study to 20x10 only one study was generated but when I changed the generation number to 148 it gave me 50 but identical bt my still taking too much time and it is a very simple file

---

<div class="post-metadata">

**Author:** ![walid.espinosa](https://avatars.discourse-cdn.com/v4/letter/w/dc4da7/32.png) [@walid.espinosa](https://forum.dynamobim.com/u/walid.espinosa)\
**Post date:** [March 19, 2021, 5:09pm UTC](https://forum.dynamobim.com/t/generative-design-optimize-method-is-taking-too-long/61790/9 "2021-03-19T17:09:12Z")

</div>

and no all of my previous studies were completed

 ![capture-1](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/d/6decc700cbf4ee4a72819dd66995705fa2cc9f15.png)

i am running this study now with the following setting below and it is still not generating any solution after 10 min

 ![capture-1](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/3/13c031ea9c8505e0f2c22999128722f7b97bbebe.png)

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [March 19, 2021, 6:17pm UTC](https://forum.dynamobim.com/t/generative-design-optimize-method-is-taking-too-long/61790/10 "2021-03-19T18:17:37Z")

</div>

Hmmm… I am not running slow at all. Can you post your refinery-server-log.txt file from %appdata%/generativedesign ?

---

<div class="post-metadata">

**Author:** ![walid.espinosa](https://avatars.discourse-cdn.com/v4/letter/w/dc4da7/32.png) [@walid.espinosa](https://forum.dynamobim.com/u/walid.espinosa)\
**Post date:** [March 19, 2021, 6:23pm UTC](https://forum.dynamobim.com/t/generative-design-optimize-method-is-taking-too-long/61790/11 "2021-03-19T18:23:13Z")

</div>

I found that when I set t any value to the constraint it won’t work otherwise it runs but slowly  
[refinery-server-log.txt](https://forum.dynamobim.com/uploads/short-url/zQ8o1Go7P7uO0OqjI8hwZXLk5vM.txt) (767.7 KB)
