How to know the final account balance of the brokers from the state log file?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

How to know the final account balance of the brokers from the state log file?

Porag
Hi All,

I want to know the final balances of brokers in a simulation from the state log file. I am running games without visualizer and I am using server-distribution-1.3. How can I figure out the ranking or market position of the simulation if I run it without visualizer? Please help. I see that in the trace.log file I have this line

12031081 INFO  server.CompetitionControlService: Final balance (brokername:balance) [ "TacTex14":-206259.23619522428 "Maxon14":-19676.903284297874 "SPOT_PP0_BS0":-60876.3513755291 "Maxon15":102577.57047087558 "CwiBroker2015":11940.571913470536 "cwiBroker14":133607.91482567365 "CrocodileAgent":-130559.09893654558 "default broker":-3464.3969389637923 "AgentUDE15":158728.89528459444 "SPOT_PP1_BS0":-5038.344720044046 ]

Do I always need to look into the trace.log for this information? or I can figure it out from the state.log.

Thanks in advance
Porag  
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How to know the final account balance of the brokers from the state log file?

gbuijs
Hi,

The final balance is basically the last know cash position of the broker.

You'll need the objectId of the broker in the game.
In the line below the objectId is 4505 :
    43247:org.powertac.common.Broker::4505::new::SPOT.

Then find the last cash position for this broker, here it's -143511.91547458377 :
    7346903:org.powertac.common.CashPosition::6083550::new::4505::-143511.91547458377::1804

But looking in the trace file is probably easier.

Cheers,

Govert
Loading...