package agents.anac.y2015.TUDMixedStrategyAgent; import java.util.ArrayList; import genius.core.AgentID; import genius.core.Bid; public class Strategy { // Just Static methods private Strategy() { super(); } /* * Generate the next Bid based on the Utility value for this round. */ public static Bid calculateMyBid(TUDMixedStrategyAgent info) { double U = nextBidUtility(info); // Get a List of bids with this utility or more 10% ArrayList bidsInRange = BidGenerator.getBidsInRange(info.getPossibleBids(), U, U*1.1, info); if(bidsInRange.isEmpty()) return null; // Select the best bid for our opponents return bidSelect(bidsInRange,info.getAgentUtilsList()); } // Receives a List of bids, and a list of agentUtils, selects the bid that maximizes the minimum utility over all agents public static Bid bidSelect(ArrayList bids, ArrayList agentUtils) { Bid bestBid =null; double bestBidUtil=0; for(int i=0; ilastOfferUtility(info)) { return false; } // check if we received an offer that has larger utility than this one else if(lastOfferUtility(info)