Periodic Payments in Visualizer2

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Periodic Payments in Visualizer2

pkai
Hello,

I was trying out a broker model that introduces flat rate tariffs, where the customers do not pay per unit but only periodically. However, the periodic payment is not visible in the retail market mony section of the game visualizer. Is this intended? Which type of logging is associated with the periodic payments in the state log?

Kind Regards
Philipp
Reply | Threaded
Open this post in threaded view
|

Re: Periodic Payments in Visualizer2

grampajohn
Administrator
Hello, Philipp -
pkai wrote
I was trying out a broker model that introduces flat rate tariffs, where the customers do not pay per unit but only periodically. However, the periodic payment is not visible in the retail market money section of the game visualizer. Is this intended? Which type of logging is associated with the periodic payments in the state log?
I'll let Erik address the visualizer question, it's a good one.

Periodic payments show up in TariffTransaction messages with txType=PERIODIC. Here's an example from a game with the sample broker:
1570958:org.powertac.common.TariffTransaction::11291::new::4812::362::CONSUME::200000030::376::1::-0.0::0.0::false
1570958:org.powertac.common.TariffTransaction::11292::new::4812::362::PERIODIC::200000030::376::1::0.0::0.03958333333333333::false
Does this help?

John
Reply | Threaded
Open this post in threaded view
|

Re: Periodic Payments in Visualizer2

erikkemperman
Hi Philipp,

From a quick look it seems to me that we may simply have an incomplete case analysis here:

https://github.com/powertac/powertac-server/blob/master/visualizer2/src/main/java/org/powertac/visualizer/service_ptac/MessageHandler.java#L268

Are you compiling your own visualizer? If so, you could try to add the following"

else if (TariffTransaction.Type.PERIODIC == txType) {
   record.produceConsume(ttx.getKWh(), ttx.getCharge());
}

Does that have the effect you would expect? Otherwise, I will need a bit more time to dive into this.

gr
Erik



On 08/01/2018 03:59 PM, grampajohn [via Power TAC Developers] wrote:
Hello, Philipp -
pkai wrote
I was trying out a broker model that introduces flat rate tariffs, where the customers do not pay per unit but only periodically. However, the periodic payment is not visible in the retail market money section of the game visualizer. Is this intended? Which type of logging is associated with the periodic payments in the state log?
I'll let Erik address the visualizer question, it's a good one.

Periodic payments show up in TariffTransaction messages with txType=PERIODIC. Here's an example from a game with the sample broker:
1570958:org.powertac.common.TariffTransaction::11291::new::4812::362::CONSUME::200000030::376::1::-0.0::0.0::false
1570958:org.powertac.common.TariffTransaction::11292::new::4812::362::PERIODIC::200000030::376::1::0.0::0.03958333333333333::false
Does this help?

John



If you reply to this email, your message will be added to the discussion below:
http://power-tac-developers.975333.n3.nabble.com/Periodic-Payments-in-Visualizer2-tp4026878p4026880.html
To start a new topic under Power TAC Developers, email [hidden email]
To unsubscribe from Power TAC Developers, click here.
NAML

--

Erik Kemperman
Scientific Developer

Rotterdam School of Management
Erasmus University
Information management & consulting (IMC)
 
Burgemeester Oudlaan 50
T Building, Room T6-20
3062 PA Rotterdam, The Netherlands
Tel: +31(0)10-4081930


 
Reply | Threaded
Open this post in threaded view
|

Re: Periodic Payments in Visualizer2

erikkemperman
In reply to this post by grampajohn
Hi Philipp,

From a quick look it seems to me that we may simply have an incomplete case analysis here:

https://github.com/powertac/powertac-server/blob/master/visualizer2/src/main/java/org/powertac/visualizer/service_ptac/MessageHandler.java#L268

Are you compiling your own visualizer? If so, you could try to add the following"

else if (TariffTransaction.Type.PERIODIC == txType) {
   record.produceConsume(ttx.getKWh(), ttx.getCharge());
}

Does that have the effect you would expect? Otherwise, I will need a bit more time to dive into this.

gr
Erik



On 08/01/2018 03:59 PM, grampajohn [via Power TAC Developers] wrote:
Hello, Philipp -
pkai wrote
I was trying out a broker model that introduces flat rate tariffs, where the customers do not pay per unit but only periodically. However, the periodic payment is not visible in the retail market money section of the game visualizer. Is this intended? Which type of logging is associated with the periodic payments in the state log?
I'll let Erik address the visualizer question, it's a good one.

Periodic payments show up in TariffTransaction messages with txType=PERIODIC. Here's an example from a game with the sample broker:
1570958:org.powertac.common.TariffTransaction::11291::new::4812::362::CONSUME::200000030::376::1::-0.0::0.0::false
1570958:org.powertac.common.TariffTransaction::11292::new::4812::362::PERIODIC::200000030::376::1::0.0::0.03958333333333333::false
Does this help?

John



If you reply to this email, your message will be added to the discussion below:
http://power-tac-developers.975333.n3.nabble.com/Periodic-Payments-in-Visualizer2-tp4026878p4026880.html
To start a new topic under Power TAC Developers, email [hidden email]
To unsubscribe from Power TAC Developers, click here.
NAML

--

Erik Kemperman
Scientific Developer

Rotterdam School of Management
Erasmus University
Information management & consulting (IMC)
 
Burgemeester Oudlaan 50
T Building, Room T6-20
3062 PA Rotterdam, The Netherlands
Tel: +31(0)10-4081930


 
Reply | Threaded
Open this post in threaded view
|

Re: Periodic Payments in Visualizer2

pkai
In reply to this post by grampajohn
Hi John,

yes this is helpful, I found the corresponding payments.
Thanks
Philipp
Reply | Threaded
Open this post in threaded view
|

Re: Periodic Payments in Visualizer2

pkai
In reply to this post by erikkemperman
Hi Erik,

currently I am using the server distribution provided via Github and I am not compiling the Visualizer2 seperately.

I can try switching this, but it will take me some time.

Greetings
Philipp
Reply | Threaded
Open this post in threaded view
|

Re: Periodic Payments in Visualizer2

grampajohn
Administrator
If you decide to try compiling the server, instructions are on the github wiki. Erik and I can answer questions if you run into problems.

Cheers -

John