topsis-ranker
TOPSIS (Technique for Order of Preference by Similarity to Ideal Solution) ranking skill for multi-criteria evaluation
What this skill does
# TOPSIS Ranker
## Overview
The TOPSIS Ranker skill implements the Technique for Order of Preference by Similarity to Ideal Solution methodology for multi-criteria decision analysis. It ranks alternatives based on their geometric distance from ideal and anti-ideal solutions, providing intuitive and mathematically sound rankings.
## Capabilities
- Decision matrix normalization (vector, linear, max-min)
- Weighted normalized matrix calculation
- Ideal and anti-ideal solution identification
- Euclidean distance calculation
- Relative closeness coefficient computation
- Alternative ranking generation
- Sensitivity analysis on weights
- Visualization of results
## Used By Processes
- Multi-Criteria Decision Analysis (MCDA)
- Tech Stack Evaluation
- Geographic Market Analysis
## Usage
### Decision Matrix Construction
```python
# Define decision matrix (alternatives x criteria)
decision_matrix = {
"alternatives": ["Option A", "Option B", "Option C", "Option D"],
"criteria": ["Cost", "Quality", "Time", "Risk"],
"values": [
[100000, 85, 12, 3], # Option A
[150000, 92, 8, 2], # Option B
[80000, 78, 15, 4], # Option C
[120000, 88, 10, 2] # Option D
],
"weights": [0.3, 0.35, 0.2, 0.15],
"criteria_type": ["cost", "benefit", "cost", "cost"] # minimize/maximize
}
```
### Normalization Methods
1. **Vector Normalization**: r_ij = x_ij / sqrt(sum(x_ij^2))
2. **Linear Normalization**: r_ij = x_ij / max(x_j) for benefit, min(x_j) / x_ij for cost
3. **Max-Min Normalization**: r_ij = (x_ij - min) / (max - min)
### TOPSIS Algorithm Steps
1. Construct normalized decision matrix
2. Calculate weighted normalized matrix
3. Determine ideal (A+) and anti-ideal (A-) solutions
4. Calculate separation measures (S+ and S-)
5. Calculate relative closeness coefficient (C*)
6. Rank alternatives by C* (higher is better)
### Relative Closeness
C* = S- / (S+ + S-)
- C* = 1: Alternative is ideal solution
- C* = 0: Alternative is anti-ideal solution
## Input Schema
```json
{
"decision_matrix": {
"alternatives": ["string"],
"criteria": ["string"],
"values": "2D array of numbers",
"weights": ["number"],
"criteria_type": ["benefit|cost"]
},
"options": {
"normalization_method": "vector|linear|max_min",
"sensitivity_analysis": "boolean",
"visualization": "boolean"
}
}
```
## Output Schema
```json
{
"ranking": [
{
"alternative": "string",
"rank": "number",
"closeness_coefficient": "number",
"distance_to_ideal": "number",
"distance_to_anti_ideal": "number"
}
],
"ideal_solution": "object",
"anti_ideal_solution": "object",
"sensitivity_results": {
"weight_sensitivity": "object",
"rank_stability": "object"
},
"visualization_path": "string"
}
```
## Best Practices
1. Ensure all criteria are on comparable scales or use appropriate normalization
2. Validate that weights sum to 1.0
3. Correctly identify benefit vs. cost criteria
4. Perform sensitivity analysis when alternatives are closely ranked
5. Consider using with AHP for systematic weight derivation
6. Document criteria definitions and measurement methods
## Advantages
- Intuitive geometric interpretation
- Accounts for both best and worst performance
- Works with any number of criteria and alternatives
- Computationally efficient
- Results are easy to explain to stakeholders
## Limitations
- Assumes linear trade-offs between criteria
- Sensitive to weight assignments
- Does not handle uncertainty in input values directly
## Integration Points
- Receives weights from AHP Calculator
- Feeds into Decision Visualization for ranking charts
- Connects with Sensitivity Analyzer for robustness testing
- Integrates with Stakeholder Preference Elicitor for weight collection
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.