Grasshopper

algorithmic modeling for Rhino

Hello.

Imagine that I have a construction site and I have two buildings inside that site (filled with red color in the snapshot). I also have a movable circular object (colored in blue). The objective is to move the circular object until the distance between center point and the center of the big building (the red block on the right) is minimized without surface collision or overlapping. I want to constraint the circular object to move ONLY in the orange zone. How can I do that using Galapagos? 

Views: 733

Attachments:

Replies to This Discussion

There are two general approaches you can take:

  1. Add a penalty clause to your fitness function that suddenly goes up dramatically when the circle leaves the allowed region.
  2. Add some logic to GH which always projects the circle back into the orange region, even if Galapagos moves it out.

It's hard to say which is better, though I'd always try and make #2 work first. Anything that doesn't complicate the solver is good news.

I can do the penalty clause thing. But the number of possibilities would still be the same.

I want to decrease the number of possible solutions before even starting the solver. 

What kind of logic do you suggest in your second point?

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service