Learn R Programming

rorutadis (version 0.4.2)

addAssignmentsUB: Add upper bound of alternative possible assignments

Description

This function adds upper bounds of possible assignments to a problem.

Usage

addAssignmentsUB(problem, ...)

Arguments

problem
Problem to which preference information will be added.
...
Assignments as two-element vectors. Each vector c(i, j) represents assignment of an alternative a_i to at most class as good as C_j.

Value

Problem with added assignment examples.

See Also

buildProblem removeAssignmentsUB

Examples

Run this code
# 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 assignment examples: alternative 3 at most to class as good as class 1
# and alternative 4 to class at most as good as class 2
problem <- addAssignmentsUB(problem, c(3, 1), c(4, 2))

Run the code above in your browser using DataLab