simulator

This commit is contained in:
2023-07-05 17:42:45 +02:00
parent da598c4475
commit 010d1b6d3c
2 changed files with 6 additions and 5 deletions
+3 -2
View File
@@ -127,8 +127,9 @@ class Price_Believe_Distribiute_Agent(Base_Distribution_Agent):
If positive will add lr to believe
If negative will sub lr to believe
"""
self.price_believe[cx_id]+=(modifier/self.lr_at_sales)*self.lr
clipMod=max(-self.lr_at_sales,min(modifier,self.lr_at_sales))
#clip mod so that price believe more smooth
self.price_believe[cx_id]+=(clipMod/self.lr_at_sales)*self.lr
self.price_believe[cx_id] = round(self.price_believe[cx_id], 2)
if self.price_believe[cx_id] < 1: