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
It appears that we are receiving tariff transactions that are always positive in cash (charge property), no matter what type of transaction it really is (produce, consume etc.).
Javadoc for this TariffTransaction clearly says:
"The total charge for this reading, according to the tariff: positive for credit to broker, negative for debit from broker".
The text was updated successfully, but these errors were encountered:
I'm looking at a simulation state log. I see that for CONSUME transactions, the amount of power is negative, and the cash is positive. For PRODUCE transactions, the amount of power is positive, but the cash is still positive. This is indeed an error.
I found the problem: For a consumption tariff, the quantities (from the customer side) are positive, and the rates are negative (the customer pays). For a production tariff, quantities are negative, and the rates are positive. When we multiply quantity by rate, results have the same sign in both cases. Duh! I've fixed it in the controllable-capacity branch, which I hope to merge into master in the next day or two.
It appears that we are receiving tariff transactions that are always positive in cash (charge property), no matter what type of transaction it really is (produce, consume etc.).
Javadoc for this TariffTransaction clearly says:
The text was updated successfully, but these errors were encountered: