Documentation
¶
Overview ¶
Package topsis implements the TOPSIS (Technique for Order of Preference by Similarity to Ideal Solution) multi-criteria decision analysis algorithm, used e.g. for selecting which Proxmox node to place a VM on
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Alternative ¶
Alternative represents a candidate solution with multiple criteria values
type BenefitFlags ¶
type BenefitFlags []bool
BenefitFlags indicates whether higher is better (true) or lower is better (false)
type Result ¶
Result contains the TOPSIS score and ranking for each alternative
func Rank ¶
func Rank(alternatives []Alternative, weights Weights, benefits BenefitFlags) ([]Result, error)
Rank performs TOPSIS ranking on alternatives based on weights and benefit flags
Click to show internal directories.
Click to hide internal directories.