MGSurvE.optimization
GA Operators to calculate fitness and perform operations to search through optimization space.
Functions
|
Calculates the fitness function of the landscape given a chromosome (in place, so not thread-safe). |
|
Calculates the fitness function of the landscape given a chromosome (in place, so not thread-safe). |
|
Calculates the fitness function of a Male/Female set of landscapes with a weighted sum of the time-to catch between them. |
|
Calculates the fitness function of the landscape given a chromosome (in place, so not thread-safe). |
|
Calculates the fitness function of the landscape given a chromosome using the matrix pseudo-inverse function (in place, so not thread-safe). |
|
Calculates the fitness function of a Male/Female set of landscapes with a weighted sum of the time-to catch between them. |
|
Converts a sites-ID crhomosome into a set of XY or lon-lat coordinates. |
|
Mates two chromosomes by "blend" based on the provided mask (in place). |
|
Mates two chromosomes in place by swapping alleles between them. |
|
Dumps a dataframe with the report of the GA's history. |
|
Creates a mask for the fixed traps (non-movable). |
|
Helper function to return canonical elements of the traps matrix (Q (tau), R (v), I). |
|
Gets the number of timesteps until a walker falls into a trap. |
|
Gets the number of timesteps until a walker falls into a trap (using pseudo-inverse matrix function). |
|
Gets the number of timesteps until a walker falls into a trap in vector form. |
|
Get fitness from Markov's fundamental matrix. |
|
Get Markov's fundamental matrix (pseudo-inverse). |
|
Get Markov's fundamental matrix (inverse). |
|
Get Markov's fundamental vector. |
|
Get Markov's absorbing states (deprecated). |
|
Calculates the average time to capture given the Q, R, I Markov canonical elements. |
|
Wrapper function for 'getMeanTimeToCapture' given a landscape. |
|
Gets the number of timesteps until a walker falls into a trap. |
|
Generates a random uniform chromosome for GA optimization. |
|
Generates a compound chromosome for optimization with a coordinates-type composition (currently unusued). |
|
Generates a random uniform chromosome for discrete GA optimizations (from available sites). |
|
Shuffles allele indices in pairs. |
|
Mutates a chromosome with a probability distribution based on the mutation mask (in place). |
|
Mutates a chromosome with a probability distribution based on the mutation mask with different probabilities for XY elements (in place). |
|
Generates a compound chromosome for optimization with a coordinates-type composition (currently unusued). |
|
Mutates a discrete chromosome from the available sites in the landscape (in place). |
|
Optimizes the traps' positions using a simple GA algorithm. |
|
Optimizes the traps' positions using a simple GA algorithm. |
|
Optimizes the traps' positions using a simple GA algorithm for two-sexes kernels. |
|
Reshapes a migration matrix into canonical form (deprecated). |