source: exampleparties/linear/linear/Linear.py@ 100

Last change on this file since 100 was 100, checked in by ruud, 19 months ago

python installs also wheel to avoid error messages

File size: 648 bytes
Line 
1from timedependentparty.TimeDependentParty import TimeDependentParty
2from tudelft_utilities_logging.Reporter import Reporter
3
4class Linear (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 "Linear: concedes linearly with time. "\
15 + "Parameters minPower (default 1) and maxPower (default infinity) are used when voting"
16 #Override
17 def getE(self)->float:
18 return 1.0
Note: See TracBrowser for help on using the repository browser.