示例#1
0
 def test_single_simulation_moran(self):
     s = GameDynamicsWrapper(CWOLOnlyL,
                             Moran,
                             dynamics_kwargs=dict(pop_size=3000),
                             game_kwargs=dict(a=0.2,
                                              equilibrium_tolerance=.5))
     s.simulate(num_gens=30000)
示例#2
0
 def test_single_simulation(self):
     s = GameDynamicsWrapper(CtsDisc,
                             WrightFisher,
                             dynamics_kwargs=dict(selection_strength=.3))
     s.simulate(num_gens=190,
                graph=dict(shading='redblue',
                           options=[
                               'area', 'meanStratLine', 'payoffLine',
                               'largeFont', 'noLegend'
                           ]),
                start_state=state)
 def test_single_simulation(self):
     s = GameDynamicsWrapper(HawkDoveBourgeois, WrightFisher)
     s.simulate(num_gens=1000)#, graph=dict(options=['area', 'largeFont']))
示例#4
0
 def test_unclassified_d(self):
     s = GameDynamicsWrapper(CWOLOnlyL,
                             WrightFisher,
                             game_kwargs=dict(d=-1.0))
     s.simulate(num_gens=500)
示例#5
0
 def test_single_simulation(self):
     s = GameDynamicsWrapper(CWOL, WrightFisher, game_kwargs=dict())
     s.simulate(num_gens=300)
示例#6
0
 def test_unclassified_d(self):
     s = GameDynamicsWrapper(CWOLOnlyL, WrightFisher, game_kwargs=dict(d=-1.0))
     s.simulate(num_gens=500)
示例#7
0
 def test_single_simulation(self):
     s = GameDynamicsWrapper(CWOL, WrightFisher, game_kwargs=dict())
     s.simulate(num_gens=300)
示例#8
0
 def test_single_simulation_moran(self):
     s = GameDynamicsWrapper(CWOLOnlyL, Moran, dynamics_kwargs=dict(pop_size=3000), game_kwargs=dict(a=0.2, equilibrium_tolerance=.5))
     s.simulate(num_gens=30000)
示例#9
0
 def test_single_simulation(self):
     s = GameDynamicsWrapper(HawkDove, WrightFisher)
     s.simulate(num_gens=100, graph=dict(options=['area', 'smallFont']))