def notest_pensioninsurancecompany(): reload(p) s = p.PensionSim() s.reset() c = p.PensionInsuranceCompany(s) c.perform_increment() print(c)
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
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()
def notest_pensionsim_static(): reload(p) s = p.PensionSim(max_individuals=10) s.reset() s.run() # max_t=20 * 365)
def notest_pensionsim(): reload(p) s = p.PensionSim() s.reset() s.run()