addAssignmentPairwiseAtLeastComparisons: Add assignment pairwise _at least_ comparisons

Description Usage Arguments Value See Also Examples

Description

The comparison of a pair of alternatives may indicate that a_i should be assigned to a class at least as good as class of a_j or at least better by k classes. The function assignmentPairwiseAtLeastComparisons allows to define such pairwise comparisons.

Usage

1

Arguments

problem

Problem to which preference information will be added.

...

Comparisons as three-element vectors. Each vector c(i, j, k) represents a single assignment comparison: alternative a_i has to be assigned to class at least better by k classes then class of a_j.

Value

Problem with added comparisons.

See Also

buildProblem removeAssignmentPairwiseAtLeastComparisons

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# 4 alternatives, 2 gain criteria, 3 classes, monotonously increasing
# and general marginal value functions
perf <- matrix(c(5, 2, 1, 7, 0.5, 0.9, 0.4, 0.4), ncol = 2)
problem <- buildProblem(perf, 3, FALSE, c('g', 'g'), c(0, 0))

# add comparisons:
# alternative 2 to class at least as good as class of alternative 1
# alternative 4 to class at least better by 1 class then class
# of alternative 3
problem <- addAssignmentPairwiseAtLeastComparisons(problem,
   c(4, 3, 1), c(2, 1, 0))

kciomek/rorutadis documentation built on May 20, 2019, 8:16 a.m.