Grasshopper

algorithmic modeling for Rhino

Hey all, I'm trying to use the Gene Pool to generate a series of integers which will act as index values (to pull items from a list). However, each Gene slider acts independently and consequently many duplicate values are produced from the Pool.

Is there a way to force all sliders to turn out an unused value?

Or, is there another way I can achieve this concept and be able to use it for Galapagos solving?

Thanks!

Views: 2798

Replies to This Discussion

You can do that with just one slider (gene)

- create a series of integers as long as your list

- jitter the list with 100% strength (make seed input a gene)

- shorten the list to the first n elements you want.

Hi Hannes, thanks for the reply. Here are my concerns:

If Galapagos is only controlling the seed slider of the Jitter component, I would think that it would lose the ability to understand how its specifically optimizing the fitness value, since ultimately every combination is just another random shuffle. In order for it to search for the best combination of indices, I think it would have to have individual control over each value drawn. Does this make sense?

You are right, jitter will just randomly scramble the list. I'm not entirely sure how Galapagos would handle such cases but I was thinking that at least the best random cases would be kept and others generated and tested.

To introduce a second parameter that determines the start position of the sublist. So for the same seed value, Galapagos could test similar lists with smaller variation.

Finally you could just add up a few genes with MassAddition. Use the partial sum output as an increasing series with variable spacing. Then you could remap that series to fit the range of indices of your list to pick from.

Hi Mark

Did you ever come up with something for this problem?

Hi Daniel,

Unfortunately no...I believe I just ended up accepting a small percentage of duplicate values for the purposes of what I was doing. I don't think that was ideal though for evolutionary solving....

Alright, thanks anyway.

Hi. A little late but I found something that may be what you need: an optimization tool to genomes with elements without repetition  GAvilan http://narcea.es 

This tool is free for 15 days, this time can be enough to solve your problema
I used the tool and it seems to work pretty well, do not know if adapted to your needs

Also has an example to do that, but slow, with only galapagos.

Hi,I have this problem (what Mark said) and this link(http://narcea.es ) does not work!!could anyone help me?

A rather late reply to an old thread, but it may be helpful to some. You can do this using a Random Key variant of the genetic algorithm. This is used in job scheduling problems (see https://bit.csc.lsu.edu/~jianhua/random-key.pdf and https://campus.exactas.uba.ar/pluginfile.php/92564/course/section/1...) Don't use index values as your genome. Instead, the genome should be a list of random floats between 0 and 1. To generate an individual (phenotype) simply sort your list using the genes as sort keys (and select a sublist if desired). This guarantees uniqueness. Bean (1994) explains it very clearly.

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service