wow .. sieht gut aus
This commit is contained in:
@@ -5,10 +5,10 @@ spec:
|
|||||||
amount: 100
|
amount: 100
|
||||||
prod:
|
prod:
|
||||||
Raw_Agriculture_Plot: 1
|
Raw_Agriculture_Plot: 1
|
||||||
# - name: Fruit
|
- name: Fruit
|
||||||
# amount: 1000
|
amount: 1000
|
||||||
# prod:
|
prod:
|
||||||
# Raw_Agriculture_Plot: 1
|
Raw_Agriculture_Plot: 1
|
||||||
# - name: Wood
|
# - name: Wood
|
||||||
# amount: 1000
|
# amount: 1000
|
||||||
# prod:
|
# prod:
|
||||||
@@ -23,7 +23,7 @@ spec:
|
|||||||
amount: 50
|
amount: 50
|
||||||
prod:
|
prod:
|
||||||
# Fuel: 1
|
# Fuel: 1
|
||||||
# Fruit: 1
|
Fruit: 1
|
||||||
Grain: 2
|
Grain: 2
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
@@ -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.price_believe = {i: 1 for i in range(len(self.exchanges))}
|
||||||
self.open_orders = {i: [] for i in range(len(self.exchanges))}
|
self.open_orders = {i: [] for i in range(len(self.exchanges))}
|
||||||
self.open_qty = 0
|
self.open_qty = 0
|
||||||
self.lp_threshold=0.25
|
self.lp_threshold=0.10
|
||||||
self.hp_threshold=0.90
|
self.hp_threshold=0.90
|
||||||
|
|
||||||
def tick(self, step, episode):
|
def tick(self, step, episode):
|
||||||
@@ -91,7 +91,7 @@ class Price_Believe_Distribiute_Agent(Base_Distribution_Agent):
|
|||||||
i["leaves"] = leaves
|
i["leaves"] = leaves
|
||||||
self.update_trades()
|
self.update_trades()
|
||||||
# reset lifetime
|
# reset lifetime
|
||||||
#i["lifetime"] = self.max_price_adj_rate
|
i["lifetime"] = self.max_price_adj_rate
|
||||||
|
|
||||||
if i["lifetime"] > 0:
|
if i["lifetime"] > 0:
|
||||||
self.open_qty += o.leaves_qty
|
self.open_qty += o.leaves_qty
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ class Price_Believe_Business(Business):
|
|||||||
self.expense_per_unit = -1
|
self.expense_per_unit = -1
|
||||||
self.income_per_unit = -1
|
self.income_per_unit = -1
|
||||||
self.distribute = Price_Believe_Distribiute_Agent(
|
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.craft = AutoProductionAgent(simulation, self)
|
||||||
self.aquire = {}
|
self.aquire = {}
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user