wow .. sieht gut aus
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
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.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
|
||||
|
||||
@@ -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 = {}
|
||||
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user