Ejemplo n.º 1
0
from FormFinder import FormFinder
from Element import Element
from Structure import Structure
from Vizulization import Vizulization
from Evolution import Evolution

import matplotlib.pyplot as plt
import numpy as np

Solver = FormFinder()

plt.ion()

# Control Panel
debug = False
showViz = True
updatefreq = 1

# Variables you tune
#-----------------------------------
population = 9
num_bars = 4
niche_radius = int(np.ceil((num_bars * 2) * 0.1))
print(niche_radius)
load = 50
p_c = 0.1  #proability that you mutate the connections when you mutate
p_reset = 0.1  # proability that you reset the bars when you mutate
p_mutateL = 0.25  # amount of bars to mutate when you do mutate
p_mutateLofCB = 0.75  #proability that you mutate a cable vs a strut when you mutate the lengths
step_c = 1
step_l = 2