removeMaximalClassCardinalities: Remove maximal class cardinality restrictions

Description Usage Arguments Value Examples

Description

This function allows to remove defined maximal cardinality of particular classes.

Usage

1

Arguments

problem

Problem from which preference information will be removed.

...

Two-element vectors and/or integers. Each argument represents restriction to remove. If c(i, j) vector was provided then defined maximal cardinality j for class C_i will be removed. In case where single value i was given, a restriction for class a_i will be removed regardless of maximal cardinality value. If a specific restriction was not found nothing will happen.

Value

Problem with removed preference information.

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))

# set maximal class cardinalities:
# at most two alternatives could be assigned to class 2
# and at most one alternative could be assigned to class 3
problem <- addMaximalClassCardinalities(problem, c(2, 2), c(3, 1))
# remove defined restriction for class 2
problem <- removeMaximalClassCardinalities(problem, 2)

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