# buildProblem: Build a representation of a problem In rorutadis: Robust Ordinal Regression UTADIS

## Description

This function creates representation of a given problem for usage in farther computations.

## Usage

 `1` ```buildProblem(perf, nrClasses, strictVF, criteria, characteristicPoints) ```

## Arguments

 `perf` A n x m performance matrix of n alternatives evaluated on m criteria. `nrClasses` Number of classes. `strictVF` `TRUE` for strictly monotonic marginal value functions, `FALSE` for weakly monotonic. `criteria` A vector containing type of each criterion (`'g'` - gain, `'c'` - cost). `characteristicPoints` A vector of integers that for each criterion contains number of characteristic points or 0 for general marginal value function.

## Value

Representation of a problem as a list with named members.

`addAssignmentsLB` `removeAssignmentsLB` `addAssignmentsUB` `removeAssignmentsUB` `addAssignmentPairwiseAtLeastComparisons` `removeAssignmentPairwiseAtLeastComparisons` `addAssignmentPairwiseAtMostComparisons` `removeAssignmentPairwiseAtMostComparisons` `addMinimalClassCardinalities` `removeMinimalClassCardinalities` `addMaximalClassCardinalities` `removeMaximalClassCardinalities`

## Examples

 ```1 2 3 4``` ```# 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)) ```

### Example output

```Loading required package: Rglpk