You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered: