Last change
on this file since 88 was 88, checked in by Bart Vastenhouw, 3 years ago |
Added python SimpleRunner GUI
|
File size:
668 bytes
|
Rev | Line | |
---|
[88] | 1 | from timedependentparty.TimeDependentParty import TimeDependentParty
|
---|
| 2 | from tudelft_utilities_logging.Reporter import Reporter
|
---|
| 3 |
|
---|
| 4 | class Conceder (TimeDependentParty):
|
---|
| 5 | """
|
---|
| 6 | A simple party that places random bids and accepts when it receives an offer
|
---|
| 7 | with sufficient utility.
|
---|
| 8 | """
|
---|
| 9 | def __init__(self, reporter: Reporter=None):
|
---|
| 10 | super().__init__(reporter)
|
---|
| 11 |
|
---|
| 12 | #Override
|
---|
| 13 | def getDescription(self) -> str:
|
---|
| 14 | return "Conceder: going to the reservation value very quickly. "\
|
---|
| 15 | + "Parameters minPower (default 1) and maxPower (default infinity) are used when voting"
|
---|
| 16 | #Override
|
---|
| 17 | def getE(self)->float:
|
---|
| 18 | return 2.0
|
---|
Note:
See
TracBrowser
for help on using the repository browser.