Growing Trees with the Genetic Algorithm Our Goal Catch as much - - PowerPoint PPT Presentation

growing trees with the genetic algorithm our goal
SMART_READER_LITE
LIVE PREVIEW

Growing Trees with the Genetic Algorithm Our Goal Catch as much - - PowerPoint PPT Presentation

Growing Trees with the Genetic Algorithm Our Goal Catch as much sun as possible! Implementation - Setup Unreal Engine 4 Ray traces Simple fitness function Building of graphical interface The Genetic Algorithm


slide-1
SLIDE 1

Growing Trees with the Genetic Algorithm

slide-2
SLIDE 2

Our Goal

  • Catch as much sun as possible!
slide-3
SLIDE 3

Implementation - Setup

  • Unreal Engine 4
  • Ray traces
  • Simple fitness function
  • Building of graphical interface
slide-4
SLIDE 4

The Genetic Algorithm

  • General idea - Evolution
  • Fitness
  • Stochastic selection
  • Combining DNA
  • Incremental improvement
  • Complexity vs Creativity
  • Why is GA suitable for our

problem?

slide-5
SLIDE 5

Implementation - Algorithm

  • A functioning algorithm
  • Physical and DNA

representation of tree, branches, leafs

  • Mutation
  • Sexual vs Asexual

reproduction

  • Fitness functions
  • Convergence
  • Population
slide-6
SLIDE 6

Fitness Function

  • A function that evaluates a tree for each generation tick
  • Mimics the sun
  • Different types
  • Experimenting
slide-7
SLIDE 7

Fitness Function - Improvements

  • Parallell rays
  • Player controlled functions
slide-8
SLIDE 8

Fitness Function type - Normal (straight above)

slide-9
SLIDE 9

Fitness Function type - Manual

  • Any direction
slide-10
SLIDE 10

Fitness Function type - Sweep

  • Shoots rays from multiple angles
  • Gave somewhat vague results
slide-11
SLIDE 11

Fitness Function type - Hemisphere

  • Trail and error
  • Gave good results with increased res.
slide-12
SLIDE 12

Fitness Straight Above

Generation 1 Generation 10 000

slide-13
SLIDE 13

Hemisphere Fitness

Generation 1 Generation 16 000

slide-14
SLIDE 14

Changing Environment

  • User controlled obstacles
  • Cubes
  • Rocks
  • Plates
  • All scalable and rotatable
slide-15
SLIDE 15

Comparison - Fitness Straight Above

slide-16
SLIDE 16

Results

  • With what can we compare our results?
slide-17
SLIDE 17

Implementation - Improving the algorithm

  • Sexual reproduction
  • Modular data structure for branches
  • Soft random selection
  • Replacements per generation
  • Lower mutation frequency,

more possible mutations

slide-18
SLIDE 18

Hill climbing

  • Should only be performed when GA seems to have converged.
  • Reaches local maximum.
  • Destroys possibility to continue

genetic algorithm.

slide-19
SLIDE 19

GUI

slide-20
SLIDE 20

Conclusion

  • Problems, solutions, lessons learned

○ Selection ○ Reproduction ○ Data structure ○ Fitness

  • Weaknesses and strengths of GA

○ Creativity ○ Complexity ○ Dependent on ad-hoc algorithms.

  • Overall, satisfying results and our goals were reached.