Skip to content

harisraharjo/topsis-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

topsis

TOPSIS implementation written in Rust.

Technique for Order of Preference by Similarity to Ideal Solution (TOPSIS) is a method for multi-criteria decision making. It compares a set of alternatives based on a pre-specified criterion. It allows trade-offs between criteria, where a poor result in one criterion can be negated by a good result in another criterion.

Example

use topsis::calculate;

fn main() {
    let ranking = calculate(
        &[0.64339, 0.28284, 0.07377],
        &[true, true, true],
        &[
          80.0, 70.0, 91.0, 90.0, 80.0, 71.0, 90.0, 78.0, 0.0, 1.0, 0.0, 4.0,
        ],
    );

    println!("{:#?}", ranking);
}

About

A TOPSIS implementation written in Rust

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages