@@ -78,7 +78,7 @@ def iterate(self, time): # TODO: split function so that only the sequence
78
78
print ("Something wrong; agent {0:d} receives too few new contracts {1:d} <= {2:d}" .format (self .id , contracts_offered , 2 * contracts_dissolved ))
79
79
#print(self.id, " has ", len(self.underwritten_contracts), " & receives ", contracts_offered, " & lost ", contracts_dissolved)
80
80
81
- new_nonproportional_risks = [risk for risk in new_risks if risk .get ("insurancetype" )== 'non-proportional ' ]
81
+ new_nonproportional_risks = [risk for risk in new_risks if risk .get ("insurancetype" )== 'excess-of-loss ' ]
82
82
new_risks = [risk for risk in new_risks if risk .get ("insurancetype" ) in ['proportional' , None ]]
83
83
84
84
underwritten_risks = [{"excess" : contract .value , "category" : contract .category , \
@@ -215,7 +215,7 @@ def ask_reinsurance_non_proportional(self):
215
215
avg_risk_factor /= number_risks
216
216
risk = {"value" : total_value , "category" : categ_id , "owner" : self ,
217
217
#"identifier": uuid.uuid1(),
218
- "insurancetype" : 'non-proportional' , "number_risks" : number_risks ,
218
+ "insurancetype" : 'excess-of-loss' , "number_risks" : number_risks ,
219
219
"deductible" : self .np_reinsurance_deductible , "excess" : np_reinsurance_excess ,
220
220
"periodized_total_premium" : periodized_total_premium , "runtime" : 12 ,
221
221
"expiration" : time + 12 , "risk_factor" : avg_risk_factor }
0 commit comments