MGSurvE.optimization
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 a Male/Female set of landscapes with a weighted sum of the time-to catch between them. |
|
Mates two chromosomes by "blend" based on the provided mask (in place). |
|
Dumps a dataframe with the report of the GA's history. |
|
Creates a mask for the fixed traps (non-movable). |
|
Gets the number of timesteps until a walker falls into a trap. |
|
Get fitness from Markov's fundamental matrix. |
|
Get Markov's fundamental matrix. |
|
Get Markov's absorbing states (deprecated). |
|
Gets the number of timesteps until a walker falls into a trap. |
|
Generates a random uniform chromosome for GA optimization. |
|
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). |
|
Reshapes a migration matrix into canonical form (deprecated). |