public class DomainGenerator
extends java.lang.Object
Constructor and Description |
---|
DomainGenerator() |
Modifier and Type | Method and Description |
---|---|
static void |
findDomain(Domain domain,
AdditiveUtilitySpace spaceA,
AdditiveUtilitySpace spaceB,
java.lang.String logToDirA,
java.lang.String logToDirB,
Range opp,
Range dist,
boolean biasForHighOpp,
boolean varyBoth)
Method which keeps generating new domains until a domain satisfying the
bounds on the opposition and bid distribution is found.
|
static void |
main(java.lang.String[] args)
This method generates a utility space for a given domain.
|
static void |
setWeightSimple(AdditiveUtilitySpace uspace,
Issue i,
double weight)
Method which sets the weight of an issue without checking normalization.
|
public static void main(java.lang.String[] args) throws java.lang.Exception
args
- is ignored.java.lang.Exception
- when something goes wrong when storing the new domain.public static void findDomain(Domain domain, AdditiveUtilitySpace spaceA, AdditiveUtilitySpace spaceB, java.lang.String logToDirA, java.lang.String logToDirB, Range opp, Range dist, boolean biasForHighOpp, boolean varyBoth) throws java.lang.Exception
domain
- for which the profile should be generated.spaceA
- preference profile of side A.spaceB
- preference profile of side B.logToDirA
- directory to log the new side A profile.logToDirB
- directory to log the new side B profile.opp
- range for opposition.dist
- range for bid distribution.biasForHighOpp
- bias search method to find domains with a high opposition
faster.varyBoth
- if false then solely a new preference profile for the B side
is created.java.lang.Exception
- when something goes wrong when storing the new domain.public static void setWeightSimple(AdditiveUtilitySpace uspace, Issue i, double weight)
uspace
- i
- objective of which the weights must be setweight
- to which the weight of the objective must be set