Skip to content

Ethereum smart contract that selects the Voltage Regulator in a Low Voltage power grid

Notifications You must be signed in to change notification settings

danzipie/fairness-control-contract

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fairness-control-contract

Ethereum smart contract that establishes fair active control shifts among a set of agents. The code is produced the results of this paper:

P. Danzi, M. Angjelichinoski, Č. Stefanović, and P. Popovski, “Distributed proportional-fairness control in microgrids via blockchain smart contracts,” accepted at IEEE SmartGridComm 2017. https://arxiv.org/pdf/1705.01453.pdf

The project is created using Truffle framework.

I test it using Ethereumjs testrpc launched with commands:

testrpc -a 16 -g 20

This contract is just receiving the transactions and returns them to a unique agent. Since the work shift is assigned to the agent that pays less, they are incouraged to pay as much as possible. Therefore they are forced to do the work shift -from time to time- to accumulate some credit.

contracts/FairnessControl.sol => Solidity contract
app/periodic_control.js => node.js script that interacts with the contract

About

Ethereum smart contract that selects the Voltage Regulator in a Low Voltage power grid

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published