public class BidSpace
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.util.ArrayList<BidPoint> |
bidPoints |
Constructor and Description |
---|
BidSpace(UtilitySpace spaceA,
UtilitySpace spaceB) |
BidSpace(UtilitySpace spaceA,
UtilitySpace spaceB,
boolean anything)
special version that does NOT check the *second* utility space for
compatibility with the domain.
|
Modifier and Type | Method and Description |
---|---|
BidPoint |
getKalaiSmorodinsky()
Calculates Kalai-Smorodinsky optimal outcome.
|
BidPoint |
getNash()
Calculates the undiscounted Nash optimal outcome.
|
java.util.ArrayList<BidPoint> |
getParetoFrontier() |
java.util.ArrayList<Bid> |
getParetoFrontierBids() |
java.util.ArrayList<BidPoint> |
mergeParetoFrontiers(java.util.ArrayList<BidPoint> pareto1,
java.util.ArrayList<BidPoint> pareto2) |
BidPoint |
NearestBidPoint(double utilA,
double utilB,
double weightA,
double weightB,
java.util.ArrayList<Bid> excludeList)
find the bid with the minimal distance weightA*DeltaUtilA^2+weightB*DeltaUtilB^2
where DeltaUtilA is the difference between given utilA and the actual util of bid
|
double |
OurUtilityOnPareto(double opponentUtility)
Calculate own coordinate
|
double |
sq(double x) |
java.lang.String |
toString() |
public java.util.ArrayList<BidPoint> bidPoints
public BidSpace(UtilitySpace spaceA, UtilitySpace spaceB) throws java.lang.Exception
java.lang.Exception
public BidSpace(UtilitySpace spaceA, UtilitySpace spaceB, boolean anything) throws java.lang.Exception
spaceA
- spaceB
- anything.
- If you use this three-para initializer the check will not
be done on 2nd domain. The boolean has no function at all except
being a third parameter that makes a differnet function call.java.lang.Exception
public java.util.ArrayList<BidPoint> getParetoFrontier() throws java.lang.Exception
java.lang.Exception
public java.util.ArrayList<BidPoint> mergeParetoFrontiers(java.util.ArrayList<BidPoint> pareto1, java.util.ArrayList<BidPoint> pareto2)
pareto1
- the first pareto frontier: list of bidpoints with increasing utility for A, decreasing for Bpareto2
- the second pareto frontier:...public java.util.ArrayList<Bid> getParetoFrontierBids() throws java.lang.Exception
java.lang.Exception
public BidPoint getKalaiSmorodinsky() throws java.lang.Exception
AnalysisException
java.lang.Exception
public BidPoint getNash() throws java.lang.Exception
AnalysisException
java.lang.Exception
public double OurUtilityOnPareto(double opponentUtility) throws java.lang.Exception
opponentUtility
- exception
- if getPareto fails or other cases, e.g. paretoFrontier contains utilityB=NAN.
Still unclear why utilB evaluates to NAN though...java.lang.Exception
public java.lang.String toString()
toString
in class java.lang.Object
public BidPoint NearestBidPoint(double utilA, double utilB, double weightA, double weightB, java.util.ArrayList<Bid> excludeList)
utilA
- the agent-A utility of the point to be foundutilB
- the agent-B utility of the point to be foundweightA
- weight in A directionweightB
- weight in B directionexcludeList
- Bids to be excluded from the search.public double sq(double x)