Description Usage Arguments Value Author(s) References See Also Examples
Adds chromosomes as solutions. This method is used to build BigBang objects from an external source of chromosomes/solutions. These solutions were obtained from any other process. This can be used for simulations, verifications and comparisons.
1 2 | ## S3 method for class 'BigBang'
addSolutions(no, chrs, gen=NULL, sol=NULL, fit=NULL, ...)
|
no |
BigBang Object |
chrs |
Chromosomes to add. It is assumed to be a list. If data frame or matrix are provided, rows are considered as chromosomes and columns as genes/variables. |
gen |
Generation in which each solution was reached (numeric vector). Default to NULL, which is interpreted as 1. |
sol |
Vector of flags indicating whether each chromosome is a solution (1=TRUE, 0=FALSE). Default to NULL, which is interpreted as 1. |
fit |
Vector of fitness of each chromosome (between 0 and 1). Default to NULL, which is used to compute the fitness using internal configuration of the BigBang/Galgo objects. |
Returns nothing. However, the original BigBang
object has been modified adding the solutions.
Victor Trevino. Francesco Falciani Group. University of Birmingham, U.K. http://www.bip.bham.ac.uk/bioinf
Goldberg, David E. 1989 Genetic Algorithms in Search, Optimization and Machine Learning. Addison-Wesley Pub. Co. ISBN: 0201157675
For more information see BigBang
.
1 2 3 4 5 6 7 8 9 | #bb is a BigBang object
## Not run:
bb
plot(bb)
addSolutions(bb, chrList)
plot(bb) # accumulated solutions
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.