@@ -138,6 +138,8 @@ def __init__(self, override_no_riskmodels, replic_ID, simulation_parameters):
138
138
self .history_total_reincash = []
139
139
self .history_total_reincontracts = []
140
140
self .history_total_reinoperational = []
141
+
142
+ self .history_market_premium = []
141
143
142
144
143
145
def build_agents (self , agent_class , agent_class_string , parameters , agent_parameters ):
@@ -241,6 +243,7 @@ def save_data(self):
241
243
self .history_total_reincash .append (total_reincash_no )
242
244
self .history_total_reincontracts .append (total_reincontracts_no )
243
245
self .history_total_reinoperational .append (reinoperational_no )
246
+ self .history_market_premium .append (self .market_premium )
244
247
245
248
individual_contracts_no = [len (insurancefirm .underwritten_contracts ) for insurancefirm in self .insurancefirms ]
246
249
for i in range (len (individual_contracts_no )):
@@ -433,6 +436,8 @@ def replication_log_prepare(self):
433
436
to_log .append (("data/two_reinoperational.dat" , self .history_total_reinoperational , "a" ))
434
437
to_log .append (("data/two_reincontracts.dat" , self .history_total_reincontracts , "a" ))
435
438
to_log .append (("data/two_reincash.dat" , self .history_total_reincash , "a" ))
439
+ to_log .append (("data/two_premium.dat" , self .history_market_premium , "a" ))
440
+
436
441
return to_log
437
442
438
443
def replication_log_prepare_oneriskmodel (self ):
@@ -443,6 +448,8 @@ def replication_log_prepare_oneriskmodel(self):
443
448
to_log .append (("data/one_reinoperational.dat" , self .history_total_reinoperational , "a" ))
444
449
to_log .append (("data/one_reincontracts.dat" , self .history_total_reincontracts , "a" ))
445
450
to_log .append (("data/one_reincash.dat" , self .history_total_reincash , "a" ))
451
+ to_log .append (("data/one_premium.dat" , self .history_market_premium , "a" ))
452
+
446
453
return to_log
447
454
448
455
def single_log_prepare (self ):
@@ -453,6 +460,8 @@ def single_log_prepare(self):
453
460
to_log .append (("data/reinoperational.dat" , self .history_total_reinoperational , "w" ))
454
461
to_log .append (("data/reincontracts.dat" , self .history_total_reincontracts , "w" ))
455
462
to_log .append (("data/reincash.dat" , self .history_total_reincash , "w" ))
463
+ to_log .append (("data/premium.dat" , self .history_market_premium , "w" ))
464
+
456
465
return to_log
457
466
458
467
#if __name__ == "__main__":
0 commit comments