예제 #1
0
파일: start.py 프로젝트: ziwangdeng/abce
def main():
    parameters = {'name': 'name', 'rounds': 300}

    s = Simulation(rounds=parameters['rounds'], cores=8)
    action_list = [  # (('myagent', 'youragent'), 'compute'),
        ('youragent', 's'), ('myagent', 'g')
    ]
    s.add_action_list(action_list)

    s.build_agents(MyAgent, 50000)
    s.build_agents(YourAgent, 50000)

    s.run()
예제 #2
0
def main():
    parameters = {'name': 'name', 'num_rounds': 10}

    s = Simulation(parameters)
    action_list = [  # (('myagent', 'youragent'), 'compute'),
        ('youragent', 's'), ('myagent', 'g')
    ]
    s.add_action_list(action_list)

    s.build_agents(MyAgent, 50000)
    s.build_agents(YourAgent, 50000)

    s.run(parallel=True)
예제 #3
0
def main():
    parameters = {
        'name': 'name',
        'rounds': 300
    }

    s = Simulation(rounds=parameters['rounds'], cores=8)
    action_list = [  # (('myagent', 'youragent'), 'compute'),
        ('youragent', 's'),
        ('myagent', 'g')]
    s.add_action_list(action_list)

    s.build_agents(MyAgent, 50000)
    s.build_agents(YourAgent, 50000)

    s.run()
def main():
    parameters = {
        'name': 'name',
        'num_rounds': 10
    }

    s = Simulation(parameters)
    action_list = [  # (('myagent', 'youragent'), 'compute'),
        ('youragent', 's'),
        ('myagent', 'g')]
    s.add_action_list(action_list)

    s.build_agents(MyAgent, 50000)
    s.build_agents(YourAgent, 50000)

    s.run(parallel=True)