Skip to content

sposmen/Analytic-Hierarchy-Process

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Analytic Hierarchy Process (AHP)

A single-page application that guides you through the Analytic Hierarchy Process — a structured decision-making method for evaluating and prioritizing options against multiple criteria.

Live app: https://www.jaime-giraldo.com/Analytic-Hierarchy-Process/


What is AHP?

AHP (developed by Thomas Saaty) breaks a complex decision into a hierarchy of comparisons. You define a goal, the options you want to compare, and the factors that matter — then compare them pairwise. The algorithm synthesizes those judgements into a ranked score for each option.


Application Workflow

The app walks you through 7 steps:

  1. Goal — Define the objective or decision you are trying to make.
  2. Options / Projects — Enter the alternatives to be evaluated (minimum 2).
  3. Decision Factors — Define the criteria that will be used to compare the options (minimum 1). Factors support recursive sub-factors (multi-level AHP).
  4. Factor Priority — Compare each pair of factors to determine their relative importance using a slider (Saaty 1–9 scale).
  5. Options per Factor — For each factor, compare each pair of options using a slider.
  6. Summary — View the final weighted scores for each option as percentages.
  7. File I/O — Save the current session as a .ahp file or load a previously saved one.

Toggle "Show Process" at any time to reveal the full pairwise matrices, normalization steps, and intermediate weights.


Tech Stack (current)

  • React 18 + Vite — modern SPA build
  • react-i18next — Spanish / English UI (extensible to any language)
  • Plain JavaScript (no TypeScript)

The legacy AngularJS 1.x + CoffeeScript + Brunch implementation is preserved in the legacy/ folder for reference.


Getting Started

npm install
npm run dev       # dev server → http://localhost:5173
npm run build     # production build → dist/
npm run preview   # preview the production build locally

Deploy

The Vite build is configured with base: '/Analytic-Hierarchy-Process/' to match the live server path. Copy the contents of dist/ to the web root.


File Format

Sessions are saved as .ahp files (Base64-encoded JSON). Files created by the legacy Angular app are fully compatible with the current version.


Legacy App

The original AngularJS implementation lives in legacy/. To run it:

cd legacy
npm install
./scripts/server.sh   # http://localhost:3333

About

Analytic Hierarchy Process

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors