apply.SPOTIS: Apply the Stable Preference Ordering Towards Ideal Solution...

View source: R/SPOTIS.R

apply.SPOTISR Documentation

Apply the Stable Preference Ordering Towards Ideal Solution (SPOTIS) method

Description

Apply the Stable Preference Ordering Towards Ideal Solution (SPOTIS) method

Usage

apply.SPOTIS(matrix, weights, types, bounds)

Arguments

matrix

A numeric matrix or data frame where rows represent alternatives and columns represent criteria.

weights

A numeric vector of weights for each criterion. The sum of weights must equal 1.

types

A numeric vector indicating the type of each criterion: 1 for profit and -1 for cost.

bounds

A numeric matrix where each row contains the minimum and maximum bounds for each criterion.

Value

A numeric vector of preference scores for alternatives. Lower scores indicate better alternatives.

Examples

# Decision matrix
matrix <- matrix(c(10.5, -3.1, 1.7,
                   -4.7, 0, 3.4,
                   8.1, 0.3, 1.3,
                   3.2, 7.3, -5.3), nrow = 4, byrow = TRUE)

# Criteria bounds
bounds <- matrix(c(-5, 12,
                   -6, 10,
                   -8, 5), nrow = 3, byrow = TRUE)

# Criteria weights
weights <- c(0.2, 0.3, 0.5)

# Criteria types
types <- c(1, -1, 1)

# Apply SPOTIS
preferences <- apply.SPOTIS(matrix, weights, types, bounds)


RMCDA documentation built on June 8, 2025, 11:14 a.m.