Learn R Programming

galgo (version 1.4)

addRandomSolutions.BigBang: Adds random pre-existed solutions

Description

Adds random pre-existed solutions. The purpose is to ``simulate'' new solutions in order to see gene stability and gene frequency. The results are biased but can be used to estimate the how many more solutions are needed to stabilize certain number of genes.

Usage

# S3 method for BigBang
addRandomSolutions(no, n=length(no$bestChromosomes), ...)

Arguments

n

number of solutions to add

Value

Returns nothing. However, the original BigBang object has been modified adding the random solutions.

References

Goldberg, David E. 1989 Genetic Algorithms in Search, Optimization and Machine Learning. Addison-Wesley Pub. Co. ISBN: 0201157675

See Also

For more information see BigBang.

Examples

Run this code
# NOT RUN {
   #bb is a BigBang object
   
# }
# NOT RUN {
   bb
   plot(bb)
   addRandomSolutions(bb, 1000)
   plot(bb) # accumulated solutions
   
# }
# NOT RUN {
 
# }

Run the code above in your browser using DataLab