Grasshopper

algorithmic modeling for Rhino

# galapagos: genome weight

hey guys!

is there a way to give the genomes different weights in evolution? i tried to multiply or divide them. but i was wondering if there is a way to rank them.

for example: #1 minimal coordinate diffenence between a given and a searched point

#2 shortest way to connect the searched point to another point

thanks

Views: 563

### Replies to This Discussion

please help!

Sounds like the travelling salesman is in town.

Create a F(X) with 2 variables. Set the first variable as your distance apart, set your second variable as the shortest way.

The function f(x) = variable1 + variable2/100

Make the output of that module your fitness. This way when you get your results in Galapagos they should better reflect the distances apart rather than the shortest path.

It will help if you upload the file to look at. David made a great guide to understanding genetic algorithms and they can be found here.

thank you!

but the variables in your funktion have the same weight,

maybe this way:

The function f(x) = variable1 + (variable2*2)/100

the variable2 has twice the weight of variable1

or:

The function f(x) = variable1 + (variable2*2)/3

what do you mean?

PS: what do you mean with: "Sounds like the travelling salesman is in town."?

cheers max

'variable 1' = a

'variable 2' = b

fitness = a + (b/100)

Thats what I was suggesting. The travelling salesman is a problem used to test optimisation procedures, it sounded like you were trying to set one up. http://en.wikipedia.org/wiki/Travelling_salesman_problem

this was jutst a randaom example...

the the salesman problem sounds interesting.

thank you!

• Add Photos
• View All

## Videos

• ### Making the Helix Bridge with Grasshopper, part 09 (Grasshopper Tutorial)

Added by CCal

• ### Parametric Architecture (Lotus Temple)

Added by Parametric House

• ### Programable Tessellation Units

Added by Mostafa Alani

• ### Dynamic Environments | Focus Studio

Added by Mostafa Alani

• ### Tutorial Membuat Parametric Torus dengan Grashopper Part 1

Added by Farid Fadlillah

• ### Making the Helix Bridge with Grasshopper, part 08

Added by CCal

• Add Videos
• View All

© 2019   Created by Scott Davidson.   Powered by