PowerMatcher - The Java implementation of the PowerMatcher, including the API, the core, a couple of examples, a remote implementation using websockets and a visualisation of the configuration.
I followed Powermatcher tutorial and wrote a PVPanelAgent in the examples package. In the doBidUpdate, when I use Bid.flatDemand to publish the bit, I can see the bids going to concentrator and to auctioneer.
I tried to send ArrayBid and it doesn't work. Following is the code snippet for the same. All help will be appreciated. Thanks in advance.
1st variant
`void doBidUpdate() {
AgentEndpoint.Status currentStatus = getStatus();
if (currentStatus.isConnected()) {
ArrayBid.Builder builder = new ArrayBid.Builder(currentStatus.getMarketBasis());
double[] bidCurve = new double[currentStatus.getMarketBasis().getPriceSteps()];
Hi,
I followed Powermatcher tutorial and wrote a PVPanelAgent in the examples package. In the doBidUpdate, when I use Bid.flatDemand to publish the bit, I can see the bids going to concentrator and to auctioneer.
I tried to send ArrayBid and it doesn't work. Following is the code snippet for the same. All help will be appreciated. Thanks in advance.
1st variant
`void doBidUpdate() { AgentEndpoint.Status currentStatus = getStatus(); if (currentStatus.isConnected()) { ArrayBid.Builder builder = new ArrayBid.Builder(currentStatus.getMarketBasis()); double[] bidCurve = new double[currentStatus.getMarketBasis().getPriceSteps()];
2nd variant
`void doBidUpdate() { AgentEndpoint.Status currentStatus = getStatus(); if (currentStatus.isConnected()) {
3rd Variant
void doBidUpdate() { AgentEndpoint.Status currentStatus = getStatus(); if (currentStatus.isConnected()) { publishBid((new ArrayBid.Builder(currentStatus.getMarketBasis()).demand(-300)).build()); } }
now, 3rd variant is same as flatDemand and it does work for couple of bids and then it stops working. Am I missing something?