Number of customers in tariff market

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

Number of customers in tariff market

Phi
Hi everyone,

May I know where can I check the approximate number of customers and
customers with demand management capability?
I try to find it in the Customer Simulation Models on the official wiki page and the specification,
but I can't find it.
Could anyone tell me where to find it please?

Thanks,
Phi
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Number of customers in tariff market

grampajohn
Administrator
Hello, Phi -

Phi wrote
May I know where can I check the approximate number of customers and
customers with demand management capability?
I try to find it in the Customer Simulation Models on the official wiki page and the specification,
but I can't find it.
Could anyone tell me where to find it please?
This information is in the Competition instance sent to the broker as the first message after login. The details are in the Competition javadoc. You can also look up Customer details in the CustomerRepo.

Does this give you what you need?

John
Phi
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Number of customers in tariff market

Phi
Hi, John

This help me a lot, thank you.
Sorry that I get a new problem.
when I use mvn clean test to compile my broker,
the below error message occurs:


-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.powertac.samplebroker.PortfolioManagerTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.389 sec - in o
rg.powertac.samplebroker.PortfolioManagerTest
Running org.powertac.samplebroker.SampleBrokerTest
Tests run: 3, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 0.032 sec <<< FA
ILURE! - in org.powertac.samplebroker.SampleBrokerTest
testIsEnabled(org.powertac.samplebroker.SampleBrokerTest)  Time elapsed: 0.019 s
ec  <<< ERROR!
java.lang.NullPointerException
        at org.powertac.samplebroker.SampleBrokerTest.setUp(SampleBrokerTest.jav
a:75)

testSampleBroker(org.powertac.samplebroker.SampleBrokerTest)  Time elapsed: 0.00
5 sec  <<< ERROR!
java.lang.NullPointerException
        at org.powertac.samplebroker.SampleBrokerTest.setUp(SampleBrokerTest.jav
a:75)

testReceiveCompetition(org.powertac.samplebroker.SampleBrokerTest)  Time elapsed
: 0.005 sec  <<< ERROR!
java.lang.NullPointerException
        at org.powertac.samplebroker.SampleBrokerTest.setUp(SampleBrokerTest.jav
a:75)


Results :

Tests in error:
  SampleBrokerTest.setUp:75 ? NullPointer
  SampleBrokerTest.setUp:75 ? NullPointer
  SampleBrokerTest.setUp:75 ? NullPointer

Tests run: 4, Failures: 0, Errors: 3, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 24.997 s
[INFO] Finished at: 2016-04-12T09:35:42+08:00
[INFO] Final Memory: 19M/45M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.
19:test (default-test) on project sample-broker: There are test failures.
[ERROR]
[ERROR] Please refer to C:\Users\K\Desktop\FYP\sample-broker-master\target\suref
ire-reports for the individual test results.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExc
eption

===========================================================

I think that is my own problem so I try to compile the unchanged sample-broker-master,
but the same result appears,
May I know how to solve it?

Thanks,
Phi

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

Re: Number of customers in tariff market

grampajohn
Administrator
Hello, Phi -

I don't have this problem, and the line number makes no sense if you are building the current sample broker and not broker-core. So I suspect you may be using an older version of the sample-broker source with perhaps the current broker-core or common module. Could you please tell us which version you are building. The version info is in the pom.xml file.

Thanks.

John


On 04/11/2016 08:43 PM, Phi [via Power TAC Developers] wrote:
Hi, John

This help me a lot, thank you.
Sorry that I get a new problem.
when I use mvn clean test to compile my broker,
the below error message occurs:


-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.powertac.samplebroker.PortfolioManagerTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.389 sec - in o
rg.powertac.samplebroker.PortfolioManagerTest
Running org.powertac.samplebroker.SampleBrokerTest
Tests run: 3, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 0.032 sec <<< FA
ILURE! - in org.powertac.samplebroker.SampleBrokerTest
testIsEnabled(org.powertac.samplebroker.SampleBrokerTest)  Time elapsed: 0.019 s
ec  <<< ERROR!
java.lang.NullPointerException
        at org.powertac.samplebroker.SampleBrokerTest.setUp(SampleBrokerTest.jav
a:75)

testSampleBroker(org.powertac.samplebroker.SampleBrokerTest)  Time elapsed: 0.00
5 sec  <<< ERROR!
java.lang.NullPointerException
        at org.powertac.samplebroker.SampleBrokerTest.setUp(SampleBrokerTest.jav
a:75)

testReceiveCompetition(org.powertac.samplebroker.SampleBrokerTest)  Time elapsed
: 0.005 sec  <<< ERROR!
java.lang.NullPointerException
        at org.powertac.samplebroker.SampleBrokerTest.setUp(SampleBrokerTest.jav
a:75)


Results :

Tests in error:
  SampleBrokerTest.setUp:75 ? NullPointer
  SampleBrokerTest.setUp:75 ? NullPointer
  SampleBrokerTest.setUp:75 ? NullPointer

Tests run: 4, Failures: 0, Errors: 3, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 24.997 s
[INFO] Finished at: 2016-04-12T09:35:42+08:00
[INFO] Final Memory: 19M/45M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.
19:test (default-test) on project sample-broker: There are test failures.
[ERROR]
[ERROR] Please refer to C:\Users\K\Desktop\FYP\sample-broker-master\target\suref
ire-reports for the individual test results.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExc
eption

===========================================================

I think that is my own problem so I try to compile the unchanged sample-broker-master,
but the same result appears,
May I know how to solve it?

Thanks,
Phi




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

Phi
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Number of customers in tariff market

Phi
Hi,

I am using the sample-broker downloaded from
https://github.com/powertac/sample-broker
and I just compile it using mvn clean test without changing anything.
Attached please find my pom.xml file.
pom.xml

Thank you very much!
Phi
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Number of customers in tariff market

grampajohn
Administrator
Hello, Phi -

I found the problem. In the process of adding the feature that allows you to pause the server during broker development, I neglected to push the final update of that test. Assuming you got the  sample broker code as a zip file, you will need to download it again to get the new test. If you got it by cloning the git repo, then you just need to pull down the update.

I apologize for the confusion and the delay.

John


Phi wrote
Hi,

I am using the sample-broker downloaded from
https://github.com/powertac/sample-broker
and I just compile it using mvn clean test without changing anything.
Attached please find my pom.xml file.
pom.xml

Thank you very much!
Phi
Loading...