source: src/main/java/bargainingchips/etc/Utility.java@ 343

Last change on this file since 343 was 316, checked in by Tim Baarslag, 5 years ago

new packages complete

File size: 1.0 KB
RevLine 
[316]1package bargainingchips.etc;
[315]2//package negotiator.onetomany;
3//
4//public class Utility
5//{
6// Bid bid;
7//
8// public Utility()
9// {
10// Product redProduct = new Product("Red");
11// Product pinkProduct = new Product("Pink");
12// Product blueProduct = new Product("Blue");
13//
14// Bid desiredBid = new Bid();
15// desiredBid.setQuantity(redProduct, 4);
16// desiredBid.setQuantity(pinkProduct, 4);
17// desiredBid.setQuantity(blueProduct, 2);
18// }
19//}
20//
21//
22////
23//// for (Product product : portfolio.getPortfolio())
24//// demandPlan.setQuantity(product, (int)(Math.random()*numType+1));
25////
26////
27//// double weight[]= {0.6,0.3,0.1};
28////
29//// for (Product product : bid.getBid().keySet())
30//// {
31//// Integer q = bid.getQuantity(product);
32////
33//// int sum += Abs(desierdQTY[bid.getKeys()]-q)*weight[product];
34//// }
35////
36////this.getUtility=sum
37////
38//// this.utility = new ArrayList<Product>();
39//// }
40////
41//// double getUtility(Bid b)
42//// {
43////
44//// return
45//// }
Note: See TracBrowser for help on using the repository browser.