Giter Club home page Giter Club logo

agh_ahp's Introduction

Analytic Hierarchy Process

Project for Operational Research and Theory of Computational Complexity at AGH.

AHP is a technique for analyzing complex decisions. Given a set of alternatives, we have to choose "the best" one. We do so by comparing every alternative with each other in terms of some criteria.

Consider a problem of choosing the best of three cars (it's taken from "Introduction to the Analytic Hierarchy Process" by Matteo Brunelli). Firstly, we have to choose criteria, for example horse power, color, shape...

Criteria tree

Then we make "pairwise" decisions: how many times car X is better than car Y in respect of criterion Z or how many times criterion A is better than criterion B. Superiority is estimated by rational numbers.

App

When all decisions were made (composing matrix of decisions), we have to compute "priority vector" which describes which alternative/criterion is the best. There are two methods supported by application: eigenvector/eigenvalue and geometric mean.

Inconsistiency

It is possible to decide that (according to some criterion) car X is 3 times better than car Y, 0.5 times better than Z (or 2 times worse than) and car Y is 5 times better than Z. Or that car X is 9 times better than car Y, and car Y is 2 times worse than car X. Clearly, these decisions are inconsistient.

Inconsistency can be described by plenty of indices: consistency index, consistency ratio, index of determinants, geometric index, harmonic index. What do we do with inconsistient decisions? Most common approach is to reject them when ratio index is greater than 0.1 and accept when is smaller. You can change this limit in the application.

Run

To start application run: java -jar ahp.jar You can load some examples from resources/ dir.

Code uses JAMA.

agh_ahp's People

Contributors

grosquildu avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.