Grasshopper

algorithmic modeling for Rhino

I want to use Galapagos to choose a site out of 10 options, in accordance to the distance from certain areas, topological features, traffic approach, commercial availability and some other factors.. how can i set the fitness function? Is the input gonna be through points and their distances or the shape and their center-to-center distances ?

 

I have provided a file as an example, a providing the rough idea what i intend to do...

Views: 3827

Attachments:

Replies to This Discussion

I have experimented a little, and came up with some sort of understanding of fitness functions, but i need a feedback, if there is any way i can make them even more effective...

 

I am attaching the updated file...

Attachments:

Hi khizer,

 

My approach to this issue would be to to create a mathematical equation that takes all the parameters of yours (maybe organized through a weighted factor) and try to maximize or to minimize the resulting number of this equation.

for instance you can have something like A*factorA + B*factorB / C*factorC - D*factorD  where A = preferable areas  B= available urban C = major routes D = non preferable areas and try to maximize it through Galapagos.. ( the values might stand for distance , area, altitude, crime rates...it won't be easy but this is one fast way to tackle it.

 

Regards,

M. 

Should i use functions or VB script to create the equation?

 

And what if instead of providing the whole area to pick from ( like in this case ) , i have series of small areas, how would i deal that using Galapagos??

if you feel comfortable with VB.Net go for it. But I think it will be also quite easy to do it only by the grasshopper Functions..

The tricky part here is what strategy are  you going to follow and how exactly will you test and validate your data, so that in the end you get only a single number. This number is going to be optimized by galapagos and as a result it will provide you possibly with a local optimum as a solution.. 

"Should i use functions or VB script to create the equation?"

 

It doesn't matter. A number is a number is a number.

 

If you have a collection of number all of which have to be minimized, you can use components like Mass Addition to sum them all together.

 

--

David Rutten

david@mcneel.com

Poprad, Slovakia

Well, i have been able to improve it to some extend, but i think i can make it more effective...

Fitness function is designed assuming all preferable/non-preferable areas have equal preference, it is then multiplied by the distance from the available site, and then any overlapping area (intersecting) is either added or subtracted...

 

Also maintain% and Inbreeding is adjusted...

 

I have noticed cross with dots in the genome map, what does those cross mean? Do they represent genome that are not fit for next generation?

Attachments:

"Do they represent genome that are not fit for next generation?"

 

Basically yes. Black dots represent genomes who were allowed to mate, red crosses did not generate any offspring.

 

I wrote two blog posts about Fitness Functions a while back, they may be informative (if you haven't read them already):

 

http://ieatbugsforbreakfast.wordpress.com/2011/03/07/define-fitness/

http://ieatbugsforbreakfast.wordpress.com/2011/03/09/fitness-pressure/

 

 

--

David Rutten

david@mcneel.com

Poprad, Slovakia

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service