addMinimalClassCardinalities: Add minimal class cardinality restrictions

Description Usage Arguments Value See Also Examples

Description

This function allows to define minimal cardinality of particular classes.

Usage

1

Arguments

problem

Problem to which preference information will be added.

...

Minimal cardinalities as two-element vectors c(i, j), where j is a minimal cardinality of class C_i.

Value

Problem with added preference information.

See Also

buildProblem removeMinimalClassCardinalities

Examples

1
2
3
4
5
6
7
8
9
# 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 minimal class cardinalities:
# at least one alternative has to be assigned to class 2
# and at least one alternative has to be assigned to class 3
problem <- addMinimalClassCardinalities(problem, c(2, 1), c(3, 1))

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