Skip to content

add index parameter to seed function #19

Description

@TheInvoker

Can you add the index value as a parameter to the seed function:

// seed the population for (i=0;i<this.configuration.size;++i) { this.entities.push(Clone(this.seed(**i**))); }

That way I can make the seed function look like this:

`var pop = // data read from file and then parsed into array

genetic.seed = function(index) {
return pop[index];
};`

That way, after it finished, I can save the population to a file, and then load it later, and load the existing population into the genetic library.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions