예제 #1
0
def notest_pensioninsurancecompany():
    reload(p)
    s = p.PensionSim()
    s.reset()
    c = p.PensionInsuranceCompany(s)
    c.perform_increment()
    print(c)
예제 #2
0
def get_env_cls(max_individuals=50, max_days=365 * 300):
    sim = p.PensionSim(max_individuals=max_individuals, max_days=max_days)
    register_step_function()
    env_cls = generate_env(
        sim,
        "examples.pension.PensionInsuranceCompany.determine_client_transaction"
    )
    return env_cls
예제 #3
0
def notest_individual():
    reload(p)
    s = p.PensionSim()
    s.reset()
    i = p.Individual(s)
    s.entities.append(i)
    for _ in range(10):
        # i.resources["cash"].take(10000)
        if i.age > 26:
            i.living_expenses = 50000
        s.run_increment()
    po = s.find_entities(p.PublicOpinion)[0]
    po.perform_increment()
예제 #4
0
def notest_pensionsim_static():
    reload(p)
    s = p.PensionSim(max_individuals=10)
    s.reset()
    s.run()  # max_t=20 * 365)
예제 #5
0
def notest_pensionsim():
    reload(p)
    s = p.PensionSim()

    s.reset()
    s.run()