This is a genetic algorythm implementation for maximizing lifetime in wireless sensor networks.