A simulation that uses fuzzy logic to balance an inverted pendulum on a cart. It include a genetic algorithm to train some of the parameters.