fixing a bit of training
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user