algorithmic modeling for Rhino

I am trying to use Galapagos with DIVA on a "simple" room optimization test. In this test we are controlling the size of the window on the wall with sliders that control sill height, and window height. However, many combinations of the two would result in answers that would always be considered wrong and could be killed immediately without running DIVA. 


Room Height Slider Domain: 10ft to 15ft

Window Sill Height Domain: 0ft to 4ft

Window Height: 3ft to 15ft

Using the sliders above, a configuration of Room Height = 10ft, Window Sill = 3ft, and Window Height = 7ft would be a perfect valid window. However, in the eyes of Galapagos if it changes the window height to 8ft - 15ft it would give the exact same result (the algorithm limits the windows height to keep it from going out side the wall). Therefore, I would like to be able to instantly kill bad genomes if they fail to meet certain criteria.

1) Does this make any sense?

2) Is there any way this would be possible with Galapagos?


Views: 416

Replies to This Discussion

It makes sense. Galapagos doesn't run DIVA though, that happens inside your own file. So it sounds like invalid states can be handled by your code, which then doesn't run the DIVA component (perhaps by supplying it with invalid data or something) and then returns a hard-coded fitness value.

Is that what you are after?


David Rutten

So let me make sure we are on the same page. You are proposing I right a component (python in this case) that would operate as a "gate" and only if certain criteria are met will it allow data to be send to the DIVA component?

This seems like a great idea! I am pretty sure that will work!






  • Add Photos
  • View All


  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service