Learn R Programming

rorutadis (version 0.4.2)

removeAssignmentsUB: Remove upper bound of alternative possible assignments

Description

This function removes upper bounds of possible assignments from a problem.

Usage

removeAssignmentsUB(problem, ...)

Arguments

problem
Problem from which preference information will be removed.
...
Assignments as two-element vectors and/or integers. Each argument represents assignment to remove. If c(i, j) vector was provided an assignment of an alternative a_i to at most class C_j will be removed. In case where single value i was given an assignment of an alternative a_i will be removed regardless of class. If a specific assignment was not found nothing will happen.

Value

Problem with removed assignment examples.

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 1 at least to class 2
# alternative 2 at least to class 3
problem <- addAssignmentsLB(problem, c(1, 2), c(2, 3))

# and remove the assignments
problem <- removeAssignmentsLB(problem, c(1, 2), 2)

Run the code above in your browser using DataLab