From 1ca6b3d036133c3b03803ae0c5941e7d6c0d85af Mon Sep 17 00:00:00 2001 From: Manuel Plonski Date: Mon, 3 Jul 2023 12:53:37 +0200 Subject: [PATCH] wow .. sieht gut aus --- db/production.yml | 10 +++++----- .../price_believe_distribute.cpython-310.pyc | Bin 4827 -> 4844 bytes econ/agents/price_believe_distribute.py | 4 ++-- econ/business/Price_Believe_Business.py | 2 +- .../Price_Believe_Business.cpython-310.pyc | Bin 4169 -> 4169 bytes 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/db/production.yml b/db/production.yml index 1aaa10a..a4f40f2 100644 --- a/db/production.yml +++ b/db/production.yml @@ -5,10 +5,10 @@ spec: amount: 100 prod: Raw_Agriculture_Plot: 1 -# - name: Fruit -# amount: 1000 -# prod: -# Raw_Agriculture_Plot: 1 + - name: Fruit + amount: 1000 + prod: + Raw_Agriculture_Plot: 1 # - name: Wood # amount: 1000 # prod: @@ -23,7 +23,7 @@ spec: amount: 50 prod: # Fuel: 1 -# Fruit: 1 + Fruit: 1 Grain: 2 diff --git a/econ/agents/__pycache__/price_believe_distribute.cpython-310.pyc b/econ/agents/__pycache__/price_believe_distribute.cpython-310.pyc index c7839f570671d59938576698a820aed3a0ec5d1b..5fca0f9383fd02fd55968d355269557d55704fae 100644 GIT binary patch delta 191 zcmcbu`bL#6pO=@50SJ1QElT+>wvo?Ko$#_#azSe!VtT9@@J0e>P0ndH7qHtHVick3-}i@Faqf;0iXyQPy|RyGNdqO zvlMksUe4*PI5&m4mLre7h8?JeE1R)sNeW9XM-9^gL7++|Nrr`tljAuhC#!H>WE7hG fjcYbjkKo$#_#azSe!VtS`@@J0evbi;EH7qHtHVick3-}i@FfssnY?2HqjM*$jEt5BL zI!n$-VXo!KW3OQc>gUR4ESjIfQp-`pv_N1oFV`nV!Aab+CokYmVGNke%45jH!?M|m HXA>I$fqN>- diff --git a/econ/agents/price_believe_distribute.py b/econ/agents/price_believe_distribute.py index 3e61bf6..5007bf9 100644 --- a/econ/agents/price_believe_distribute.py +++ b/econ/agents/price_believe_distribute.py @@ -14,7 +14,7 @@ class Price_Believe_Distribiute_Agent(Base_Distribution_Agent): self.price_believe = {i: 1 for i in range(len(self.exchanges))} self.open_orders = {i: [] for i in range(len(self.exchanges))} self.open_qty = 0 - self.lp_threshold=0.25 + self.lp_threshold=0.10 self.hp_threshold=0.90 def tick(self, step, episode): @@ -91,7 +91,7 @@ class Price_Believe_Distribiute_Agent(Base_Distribution_Agent): i["leaves"] = leaves self.update_trades() # reset lifetime - #i["lifetime"] = self.max_price_adj_rate + i["lifetime"] = self.max_price_adj_rate if i["lifetime"] > 0: self.open_qty += o.leaves_qty diff --git a/econ/business/Price_Believe_Business.py b/econ/business/Price_Believe_Business.py index 5898f76..8bd3a22 100644 --- a/econ/business/Price_Believe_Business.py +++ b/econ/business/Price_Believe_Business.py @@ -13,7 +13,7 @@ class Price_Believe_Business(Business): self.expense_per_unit = -1 self.income_per_unit = -1 self.distribute = Price_Believe_Distribiute_Agent( - simulation, self, production["name"], exchange, 0.2, 30) + simulation, self, production["name"], exchange, 0.2, 50) self.craft = AutoProductionAgent(simulation, self) self.aquire = {} diff --git a/econ/business/__pycache__/Price_Believe_Business.cpython-310.pyc b/econ/business/__pycache__/Price_Believe_Business.cpython-310.pyc index de44c4e8b53288439cdc4b113250c27908f89c1f..057777abf6c3937ddbe0eaf3b86367d8a3ce90c6 100644 GIT binary patch delta 26 gcmX@9a8iLQpO=@50SG2M+{l%~#Avj+oaquT0AKzGNB{r; delta 26 gcmX@9a8iLQpO=@50SFo&Y~;#eVwBrl&UA?v0A9BTBme*a