Rev | Line | |
---|
[3] | 1 | package ai2020.group6;
|
---|
| 2 |
|
---|
| 3 | import geniusweb.bidspace.BidsWithUtility;
|
---|
| 4 | import geniusweb.issuevalue.Bid;
|
---|
| 5 | import geniusweb.profile.utilityspace.LinearAdditive;
|
---|
| 6 |
|
---|
| 7 | /**
|
---|
| 8 | * MaxUtilBiddingStrategy only bids the highest utility bid available to this agent.
|
---|
| 9 | *
|
---|
| 10 | * @author Group 6
|
---|
| 11 | */
|
---|
| 12 | public class MaxUtilBiddingStrategy implements IBiddingStrategy {
|
---|
| 13 |
|
---|
| 14 | @Override
|
---|
| 15 | public Bid generateBid(MAState state) {
|
---|
| 16 | BidsWithUtility bidutils = new BidsWithUtility((LinearAdditive) state.getUtilitySpace());
|
---|
| 17 | return bidutils.getExtremeBid(true);
|
---|
| 18 | }
|
---|
| 19 |
|
---|
| 20 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.