package bargainingchips.etc; //package negotiator.onetomany; // //public class Utility //{ // Bid bid; // // public Utility() // { // Product redProduct = new Product("Red"); // Product pinkProduct = new Product("Pink"); // Product blueProduct = new Product("Blue"); // // Bid desiredBid = new Bid(); // desiredBid.setQuantity(redProduct, 4); // desiredBid.setQuantity(pinkProduct, 4); // desiredBid.setQuantity(blueProduct, 2); // } //} // // //// //// for (Product product : portfolio.getPortfolio()) //// demandPlan.setQuantity(product, (int)(Math.random()*numType+1)); //// //// //// double weight[]= {0.6,0.3,0.1}; //// //// for (Product product : bid.getBid().keySet()) //// { //// Integer q = bid.getQuantity(product); //// //// int sum += Abs(desierdQTY[bid.getKeys()]-q)*weight[product]; //// } //// ////this.getUtility=sum //// //// this.utility = new ArrayList(); //// } //// //// double getUtility(Bid b) //// { //// //// return //// }