This package can be trated like any other julia package. Therefore the installation is (in Julia REPL)
]activate .
]instantiateTo run the consensus agent system and generate the output, just run (after installing in . environment)
julia --project=. scenario/consensus_scenario.jlThe consensus agent system has two different types of agents, the generator agents, the load agents. The general flow of the agent system works like follows:
- The load agents aggregate the full demand for the current time
- The load agents trigger the generator agents to execute a distributed economic dispatch (using consensus on the incremental costs)
- The generator agents finish and set each local generator according to the result
- This repeats for every time step until max_advance is reached (or we're out of data)