Last change
on this file was 1, checked in by Wouter Pasman, 6 years ago |
Initial import : Genius 9.0.0
|
File size:
869 bytes
|
Line | |
---|
1 | package negotiator.boaframework.offeringstrategy.anac2010.IAMhaggler2010;
|
---|
2 |
|
---|
3 | public class TimeConcessionFunction extends ConcessionFunction {
|
---|
4 |
|
---|
5 | private double beta;
|
---|
6 | private double breakoff;
|
---|
7 |
|
---|
8 | public TimeConcessionFunction(double beta, double breakoff) {
|
---|
9 | this.beta = beta;
|
---|
10 | this.breakoff = breakoff;
|
---|
11 | }
|
---|
12 |
|
---|
13 | @Override
|
---|
14 | public double getConcession(double startUtility, long currentTime, double totalTime) {
|
---|
15 | return startUtility - (startUtility - breakoff) * Math.pow(currentTime / totalTime, 1.0 / beta);
|
---|
16 | }
|
---|
17 |
|
---|
18 | public class Beta {
|
---|
19 | public static final double CONCEDER_EXTREME = 5.0;
|
---|
20 | public static final double CONCEDER = 2.0;
|
---|
21 | public static final double LINEAR = 1.0;
|
---|
22 | public static final double BOULWARE = 0.5;
|
---|
23 | public static final double BOULWARE_EXTREME = 0.2;
|
---|
24 | }
|
---|
25 |
|
---|
26 | public static final double BREAKOFF = 0.0;
|
---|
27 | public static final double DEFAULT_BREAKOFF = 0.5;
|
---|
28 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.