source: ai2020/group6/MaxUtilBiddingStrategy.java@ 5

Last change on this file since 5 was 3, checked in by wouter, 4 years ago

#1925 added group6 code.

File size: 547 bytes
Line 
1package ai2020.group6;
2
3import geniusweb.bidspace.BidsWithUtility;
4import geniusweb.issuevalue.Bid;
5import geniusweb.profile.utilityspace.LinearAdditive;
6
7/**
8 * MaxUtilBiddingStrategy only bids the highest utility bid available to this agent.
9 *
10 * @author Group 6
11 */
12public 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.