removeAssignmentPairwiseAtMostComparisons: Remove assignment pairwise _at most_ comparisons

Description Usage Arguments Value Examples

View source: R/problem.R

Description

This function removes pairwise at most comparisons. For more information see addPairwiseAtMostComparisons.

Usage

1

Arguments

problem

Problem from which preference information will be removed

...

Comparisons as three-element vectors and/or two-element vectors. Each argument represents comparison to remove. If c(i, j, k) vector was provided a corresponding comparison will be removed. In case where two-element vector c(i,j) was given a comparison of an alternative a_i with a_j will be removed regardless of value of k. If a specific comparison was not found nothing will happen.

Value

Problem with removed comparisons.

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 comparison:
# alternative 4 to class at most better by 1 class then class
# of alternative 3
problem <- addAssignmentPairwiseAtMostComparisons(problem, c(4, 3, 1))
# remove comparison between alternative 4 and 3
problem <- removeAssignmentPairwiseAtMostComparisons(problem, c(4, 3))

rorutadis documentation built on May 2, 2019, 8:51 a.m.