Description Usage Arguments Value Examples
Create the 3 neighborhoods from a shotgun stochastic search algorithm (see Hans, et al. (2007))
1 | sss.nbd(p0, token)
|
p0 |
Binary string of 0s and 1s |
token |
A character which is either '+', '-', or 'o', depending on which neighborhood is to be generated |
Returns a list containing all chromosomes making up the given neighborhood requested using token
. Let k denote the number of 1s in p0
, and k' denote the number of 0s. If token == '+'
, nbd
returns the set of length k' in which each chromosome is sequentially p0
augmented by one of its 0s switched to a 1; if token == '-'
, nbd
returns the set of length k in which each chromsome is sequentially p0
decreased by one of its 1s switched to a 0; if token == 'o'
, returns the set of length k*k' in which each chromosome is simultaneously p0
decreased by one of its 1s switched to a 0 while each of its 0s is switched to a 1.
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.