source: src/main/java/bargainingchips/utilityfunctions/UtilityFunction.java@ 339

Last change on this file since 339 was 338, checked in by Faria Nassiri Mofakham, 5 years ago

An extended version of Buyer (BuyerExtended), which can be constructed using one among many utility functions. UF_LessPrice and seven complex utility functions based on price+quantity and two types of weights: UF_LessPriceCloseToQuantity, UF_IntensifiedLessPriceCloseToQuantity, UF_PeakedPricePeakedQuantity, UF_PeakedFlatPricePeakedFlatQuantity, UF_PeakedFlatCurvePriceGaussianQuantity, UF_BezierPriceBezierQuantity, and UF_BezierPriceGaussianQuantity. Two more fundamental helper classes: ChipIssueValue, ChipIssueValueBuilder. Adding a validity check to Stack. An update in Bundle main. Adding getSampleBid function to Bid. An update in k variable in Agent. A UF class and UtilityHelperMethods for individual passing utility functions. Adding some more tests in UF_CloseToQuantity main. An update on BundleTest.

File size: 1.4 KB
Line 
1package bargainingchips.utilityfunctions;
2
3import bargainingchips.Bundle;
4
5/**
6 *
7 * This package is devoted to the Utility Function interface and all the classes for different definitions of utility functions.
8 * Utility function is employed by each agent, either coordinator or negotiator, to evaluate an offer, the bundle.
9 * A few of these functions evaluate a bundle as 1.0 or 0.0 according to satisfaction of one or few simple conditions.
10 * A few others, more general, could represent more flexible conditions, e.g., weighted average, or so, which are not as simple as those in single item cases.
11 *
12 * A few simple 0-1 utility functions:
13 * UF_IWant3Red, UF_IWantColorAndQuantity, UF_Nice, UF_Crazy, UF_AllOrNothing, UF_75pQtyOrNothing, UF_prcntQTYandprcntPrice, UF_FreeDisposal, ...
14 *
15 * A few middle complexity utility functions:
16 * UF_CloseToQuantity, UF_LessPrice, ...
17 *
18 * A few complex utility functions:
19 * UF_LessPriceCloseToQuantity, UF_IntensifiedLessPriceCloseToQuantity,
20 * UF_PeakedPricePeakedQuantity, UF_PeakedFlatPricePeakedFlatQuantity, UF_PeakedFlatCurvePriceGaussianQuantity,
21 * UF_BezierPriceBezierQuantity, UF_BezierPriceGaussianQuantity
22 *
23 *
24 *
25 * @author Faria Nassiri-Mofakham
26 *
27 */
28public interface UtilityFunction
29{
30 public Double getUtility(Bundle b);
31 //public <T extends UtilityFunction> T getUtility(Bundle b, class<T> type);
32}
33
Note: See TracBrowser for help on using the repository browser.