2nd commit

This commit is contained in:
SongQi 2022-12-09 22:07:01 +08:00
parent 4e1084b517
commit 62e3360f65
4 changed files with 8 additions and 8 deletions

View File

@ -4,7 +4,7 @@
<content url="file://$MODULE_DIR$"> <content url="file://$MODULE_DIR$">
<excludeFolder url="file://$MODULE_DIR$/venv" /> <excludeFolder url="file://$MODULE_DIR$/venv" />
</content> </content>
<orderEntry type="inheritedJdk" /> <orderEntry type="jdk" jdkName="Python 3.8 (salary02)" jdkType="Python SDK" />
<orderEntry type="sourceFolder" forTests="false" /> <orderEntry type="sourceFolder" forTests="false" />
</component> </component>
</module> </module>

View File

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project version="4"> <project version="4">
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.8 (venv) (3)" project-jdk-type="Python SDK" /> <component name="ProjectRootManager" version="2" project-jdk-name="Python 3.8 (salary02)" project-jdk-type="Python SDK" />
</project> </project>

12
env.py
View File

@ -206,12 +206,12 @@ class Env(ap.Model):
if __name__ == '__main__': if __name__ == '__main__':
dict_para = {'n_worker': 1000, # dict_para = {'n_worker': 1000,
'n_firm': 100, # 'n_firm': 100,
'percent_search': 0.2, # 'percent_search': 0.2,
'alpha': 0.5, # 'alpha': 0.5,
'is_RH_ratio': 0.5} # 'is_RH_ratio': 0.5}
my_model = Env(dict_para) # my_model = Env(dict_para)
# #
# print(my_model.gini([10000, 0, 0, 0, 0, 0, 0])) # print(my_model.gini([10000, 0, 0, 0, 0, 0, 0]))
# my_model.run() # my_model.run()

Binary file not shown.