Skip to content

Commit

Permalink
Agents bidding successfully into the AEMO sim
Browse files Browse the repository at this point in the history
  • Loading branch information
luke-marshall committed Jun 18, 2019
1 parent b69405c commit b287c9a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion aemo_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# Include the last set of bids in the observation space.
'REVEAL_PREVIOUS_BIDS':True,
# Give the agent an example of how bidders behaved last time next demand was seen.
'PROVIDE_HISTORICAL_CONTEXT':True,
'PROVIDE_HISTORICAL_CONTEXT':False,
# In observation, give the agent an accurate forecast of the next demand
'SHOW_NEXT_DEMAND':True,

Expand Down
Binary file added dqn_MultiBidAEMOMarket-v0_weights.h5f
Binary file not shown.
2 changes: 1 addition & 1 deletion marketsim/io/clients/asyncclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

# labels = ['Nyngan', 'Bayswater', 'Moree']
# labels = ['Nyngan', 'Bayswater']
labels = ['Nyngan']
labels = ['Luke']

class AsyncClient():
"""AsyncClient"""
Expand Down
5 changes: 3 additions & 2 deletions marketsim/openai/envs/multi_bid_aemo.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from marketsim.logbook.logbook import logbook

from marketsim.io.clients.asyncclient import AsyncClient
from market_config import params as market_config
from aemo_config import params as market_config



Expand Down Expand Up @@ -149,8 +149,9 @@ def step(self, action):
prices[bid['band']] = int(bid['price'])
# Add the bid info to the observation
next_state += prices
self._saved_history[reply['next_demand']] = reply['all_bids']

self._saved_history[reply['next_demand']] = reply['all_bids']

# Reward is product of dispatched and
reward = amount_dispatched * float(reply['price'])
Expand Down

0 comments on commit b287c9a

Please sign in to comment.