fixing a bit of training

This commit is contained in:
2023-01-15 00:27:37 +01:00
parent fcd25276bb
commit 3a8d10e0b4
2 changed files with 13 additions and 10 deletions
@@ -159,7 +159,7 @@ class ContinuousDoubleAuction(BaseComponent):
"""If agent can submit an ask for resource."""
return (
self.n_orders[resource][agent.idx] < self.max_num_orders
and agent.state["inventory"][resource] > 0
and agent.state["inventory"][resource] >= 1
)
# Core components for this market