apply.OCRA: Apply Operational Competitiveness Rating (OCRA) method

View source: R/OCRA.R

apply.OCRAR Documentation

Apply Operational Competitiveness Rating (OCRA) method

Description

The OCRA method independently evaluates alternatives with respect to beneficial (profit) and non-beneficial (cost) criteria, then combines these evaluations into an overall operational competitiveness rating.

Usage

apply.OCRA(mat, weights, beneficial.vector)

Arguments

mat

A numeric matrix. Rows are alternatives; columns are criteria.

weights

A numeric vector of weights corresponding to criteria columns. Must sum to 1.

beneficial.vector

A numeric vector containing the column indices of beneficial (profit) criteria. Non-beneficial criteria are assumed to be the remaining columns.

Value

A numeric vector with the OCRA preference values for each alternative. Higher values indicate a more preferred alternative.

Examples

mat <- matrix(c(
  7.7, 256, 7.2, 7.3, 7.3,
  8.1, 250, 7.9, 7.8, 7.7,
  8.7, 352, 8.6, 7.9, 8.0,
  8.1, 262, 7.0, 8.1, 7.2,
  6.5, 271, 6.3, 6.4, 6.1,
  6.8, 228, 7.1, 7.2, 6.5
), nrow = 6, byrow = TRUE)

weights <- c(0.239, 0.225, 0.197, 0.186, 0.153)
beneficial.vector <- c(1, 3, 4, 5)

apply.OCRA(mat, weights, beneficial.vector)

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