Genetic Algorithm for searching valid states. More...
#include <GeneticSearch.h>
Public Member Functions | |
GeneticSearch (const base::SpaceInformationPtr &si) | |
Construct an instance of a genetic algorithm for inverse kinematics given the space information to search within. | |
bool | solve (double solveTime, const base::GoalRegion &goal, base::State *result, const std::vector< base::State * > &hint=std::vector< base::State * >()) |
Find a state that fits the request. | |
void | setMaxImproveSteps (unsigned int maxSteps) |
Set the number of steps to perform when using hill climbing to improve an individual in the population. | |
unsigned int | getMaxImproveSteps (void) const |
Get the number of steps to perform when using hill climbing to improve an individual in the population. | |
void | setValidityCheck (bool valid) |
Set the state validity flag; if this is false, states are not checked for validity. | |
bool | getValidityCheck (void) const |
Get the state validity flag; if this is false, states are not checked for validity. | |
void | setTryImprove (bool flag) |
Set the flag that determines whether improvements using hill climbing should be attempted for solutions generated by the genetic algorithm. | |
bool | getTryImprove (void) const |
Returns true if improvements using hill climbing should be attempted for solutions generated by the genetic algorithm. Returns false otherwise. | |
void | setPoolSize (unsigned int size) |
Set the number of individuals in the population. | |
unsigned int | getPoolSize (void) const |
Get the number number of individuals in the population. | |
void | setPoolMutationSize (unsigned int size) |
Set the number of individuals to mutate at each generation. | |
unsigned int | getPoolMutationSize (void) const |
Get the number of individuals that are mutated at each generation. | |
void | setPoolRandomSize (unsigned int size) |
Set the number of individuals to randomly sample at each generation. | |
unsigned int | getPoolRandomSize (void) const |
Get the number of individuals to randomly sample at each generation. | |
void | setRange (double distance) |
Set the range (distance) to be used when sampling around a state. | |
double | getRange (void) const |
Get the range GeneticSearch is using. | |
void | clear (void) |
Clear the pool of samples. | |
Genetic Algorithm for searching valid states.
GeneticSearch does search for valid states using a genetic algorithm
Definition at line 62 of file GeneticSearch.h.