Skip to content

Accessing weights of each issue

Taha Doğan Güneş edited this page Nov 22, 2017 · 2 revisions

You can access the weights of each issue of your assigned preference profile.

AbstractUtilitySpace utilitySpace = info.getUtilitySpace();
AdditiveUtilitySpace additiveUtilitySpace = (AdditiveUtilitySpace) utilitySpace;

List<Issue> issues = additiveUtilitySpace.getDomain().getIssues();

for (Issue issue : issues) {
    System.out.println(additiveUtilitySpace.getWeight(issue.getNumber()));
}

Genuis supports other UtilitySpace classes as well. The last internation competition (2017) used AdditiveUtilitySpace only. The utility of a bid within this space is explained here.

To access the evaluations of each value of an each issue, have a look at this page.

Clone this wiki locally