How to do VIKOR step by step, including the compromise conditions most tutorials skip
VIKOR step by step with a worked example: best and worst values, S, R and Q, the v parameter, and the two compromise conditions that decide the answer.
CKR team · · 10 min read
VIKOR ranks alternatives by Q, a weighted combination of group utility S (the weighted sum of normalised distances from the best values) and individual regret R (the largest single weighted distance). The alternative with the lowest Q is the proposed compromise only if it beats the second by at least DQ = 1/(m − 1) (acceptable advantage) and is also best by S or R (acceptable stability). If the first condition fails, the answer is a set of compromise alternatives rather than a single winner.
The short version
- 01For each criterion find the best value f* and the worst value f⁻; each alternative’s weighted, normalised shortfall from f* gives S (their sum) and R (the largest).
- 02Q = v·(S − S*)/(S⁻ − S*) + (1 − v)·(R − R*)/(R⁻ − R*), with v = 0.5 by default; lower Q is better.
- 03In the supplier example A has the lowest Q (0.046), but C’s Q (0.223) is within DQ = 0.333, so the compromise solution is the set {A, C}, not A alone.
- 04Most published VIKOR applications report only the Q ranking. Checking the two conditions is what makes the result a VIKOR compromise solution.
What problem does VIKOR solve?
VIKOR, from the Serbian “VIšeKriterijumska Optimizacija I Kompromisno Rešenje” (multicriteria optimisation and compromise solution), was developed by Opricovic and presented in English by Opricovic and Tzeng (2004). It is designed for decisions where no alternative is best on every criterion and the decision-makers need a compromise they can accept. Its distinctive feature is that it balances two things: how good an alternative is overall, and how bad it is on its single worst criterion.
The first is called group utility, S: the weighted sum of how far an alternative falls short of the best value on each criterion. The second is individual regret, R: the largest of those weighted shortfalls. An alternative with a small S is good on average; one with a small R has no serious weakness. VIKOR combines them into a single index Q and then checks whether the alternative with the lowest Q is clearly better than the rest. That final check is the part most tutorials leave out, and without it the result is only a ranking, not a VIKOR compromise solution.
- 01Best and worst valuesf*ⱼ and f⁻ⱼ for each criterion, by its direction.
- 02Group utility S and individual regret RWeighted, normalised shortfall from f* on each criterion; S is the sum, R the maximum.
- 03Compromise index QCombine the scaled S and R with the weight v (usually 0.5); lower is better.
- 04Rank by S, R and QThree rankings, each from lowest to highest.
- 05Check the two conditionsAcceptable advantage and acceptable stability decide whether there is one compromise or a set.
What data does VIKOR need?
The same inputs as TOPSIS: a decision matrix, criterion weights and the direction of each criterion. To show how the two methods can disagree, this tutorial uses four suppliers measured on four criteria, weighted with AHP from a purchasing manager’s pairwise comparisons. The same data are used in the PROMETHEE tutorial, so the methods can be compared directly.
| Supplier | Cost ($/unit) | Quality (1–10) | Delivery (days) | Service (1–10) |
|---|---|---|---|---|
| A | 250 | 8 | 12 | 7 |
| B | 200 | 6 | 15 | 8 |
| C | 300 | 9 | 10 | 6 |
| D | 275 | 7 | 8 | 9 |
| Weight | 0.3135 | 0.4967 | 0.1213 | 0.0685 |
| Direction | cost | benefit | cost | benefit |
Note. Weights derived with AHP from the purchasing manager’s pairwise comparisons (consistency ratio 0.013).
Step 1: how do you find the best and worst values?
For each criterion, the best value f*ⱼ is the maximum for a benefit criterion and the minimum for a cost criterion; the worst value f⁻ⱼ is the opposite. VIKOR works on the raw data, so there is no separate normalisation step: the scaling happens in the next step, by dividing each shortfall by the range f*ⱼ − f⁻ⱼ.
| Cost | Quality | Delivery | Service | |
|---|---|---|---|---|
| f* | 200 | 9 | 8 | 9 |
| f⁻ | 300 | 6 | 15 | 6 |
Step 2: how do you compute S and R?
Each term is the alternative’s shortfall from the best value, as a fraction of the range, multiplied by the weight. For supplier A on Cost: 0.3135 × (200 − 250)/(200 − 300) = 0.3135 × 0.5 = 0.1568. The absolute value is used so that the formula reads the same for cost and benefit criteria.
| Supplier | Cost | Quality | Delivery | Service | S (sum) | R (max) |
|---|---|---|---|---|---|---|
| A | 0.1568 | 0.1656 | 0.0693 | 0.0457 | 0.4373 | 0.1656 |
| B | 0.0000 | 0.4967 | 0.1213 | 0.0228 | 0.6408 | 0.4967 |
| C | 0.3135 | 0.0000 | 0.0347 | 0.0685 | 0.4167 | 0.3135 |
| D | 0.2351 | 0.3311 | 0.0000 | 0.0000 | 0.5663 | 0.3311 |
The two measures already tell different stories. Supplier C has the lowest S, the best overall performance, but its R is 0.3135 because it is the most expensive, and Cost carries a large weight. Supplier A has a slightly higher S but by far the lowest R: its worst shortfall, on Quality, is small. B has the cheapest price but the worst quality, which gives it the highest R of all.
Step 3: how do you compute Q?
Q rescales S and R to the range 0–1 across the alternatives and combines them with the weight v.
With S* = 0.4167, S⁻ = 0.6408, R* = 0.1656 and R⁻ = 0.4967, and v = 0.5, supplier A gets Q = 0.5 × (0.4373 − 0.4167)/0.2241 + 0.5 × 0 = 0.046. The other values are C 0.223, D 0.584 and B 1.000.
| Supplier | S | Rank by S | R | Rank by R | Q | Rank by Q |
|---|---|---|---|---|---|---|
| A | 0.4373 | 2 | 0.1656 | 1 | 0.0460 | 1 |
| B | 0.6408 | 4 | 0.4967 | 4 | 1.0000 | 4 |
| C | 0.4167 | 1 | 0.3135 | 2 | 0.2234 | 2 |
| D | 0.5663 | 3 | 0.3311 | 3 | 0.5837 | 3 |
The usual choice is v = 0.5, a balance between majority and veto. A larger v favours the alternative that is best on average; a smaller v favours the one with no serious weakness. The value can also be read as how the decision was reached: “by consensus” (v around 0.5), “by majority” (v above 0.5) or “with veto” (v below 0.5) (Opricovic & Tzeng, 2004).
Step 4: what are the two compromise conditions?
Ranking by Q is not the end of VIKOR. The alternative a′ with the lowest Q is proposed as the compromise solution only if it meets two conditions.
- Condition 1, acceptable advantage: Q(a″) − Q(a′) ≥ DQ, where a″ is the alternative in second place by Q and DQ = 1/(m − 1), with m the number of alternatives. The leader must be clearly ahead.
- Condition 2, acceptable stability in decision making: a′ must also be ranked first by S or by R (or both). The leader must not depend on the particular balance of v.
If both conditions hold, a′ is the compromise solution. If only condition 2 fails, the compromise set is {a′, a″}. If condition 1 fails, the compromise set is a′, a″, …, a⁽ᴹ⁾, where a⁽ᴹ⁾ is the last alternative, in order of Q, for which Q(a⁽ᴹ⁾) − Q(a′) < DQ (Opricovic & Tzeng, 2004, 2007).
- DQ = 1/(m − 1) with four suppliers
- 0.333
- Q(C) − Q(A): below DQ, so condition 1 fails
- 0.177
- A ranks first by R, so condition 2 holds
- R
For the suppliers, DQ = 1/3 = 0.333. The gap between A and C is 0.2234 − 0.0460 = 0.177, so condition 1 fails. Condition 2 holds, because A ranks first by R. The compromise set therefore contains every alternative whose Q is within 0.333 of A’s: A itself and C (0.177 above), but not D (0.538 above). The VIKOR result is “A or C”, not “A”.
How does v change the result?
Because Q mixes S and R, the ranking can depend on v. Recomputing Q for v from 0 to 1 shows where it does.
- A
- C
- D
Note. Supplier B has Q = 1 at every v and is left out for clarity.
Show the data
| v | A | C | D |
|---|---|---|---|
| 0 | 0 | 0.4467 | 0.5 |
| 0.25 | 0.023 | 0.3351 | 0.5418 |
| 0.5 | 0.046 | 0.2234 | 0.5837 |
| 0.75 | 0.0691 | 0.1117 | 0.6255 |
| 1 | 0.0921 | 0 | 0.6673 |
At v = 0, where only regret counts, A leads by 0.447 and condition 1 holds: A alone is the compromise. As v rises, C closes the gap, and at v = 1, where only group utility counts, C has the lowest Q. For every v between 0.25 and 1 the gap is below DQ and the compromise set is {A, C}. The result is consistent in one respect: D and B are never in the compromise set.
How much do the weights matter?
The weights matter more than v. With equal weights of 0.25 on all four criteria, the S values become A 0.518, B 0.583, C 0.571 and D 0.354, and Q at v = 0.5 is D 0.125, A 0.357, C 0.974 and B 1.000. Supplier D now leads. Condition 2 holds, because D also has the lowest S, but condition 1 fails again: A’s Q is only 0.232 above D’s, less than DQ = 0.333. The compromise set under equal weights is {D, A}.
Taken together, the two weightings suggest that A is the most robust choice: it is in the compromise set under both, while C and D each appear under only one. That kind of statement, which follows directly from the compromise conditions, is more useful to a decision-maker than a single ranking at one set of weights.
Why do VIKOR and TOPSIS disagree here?
With the same data and weights, TOPSIS ranked C first (closeness 0.618) and A second (0.596), while VIKOR at v = 0.5 puts A first. The two methods measure different things. TOPSIS balances distance to the ideal against distance to the anti-ideal; VIKOR balances average performance against the worst single shortfall. C is excellent on Quality but the most expensive; A has no criterion on which it is far from the best. A method that gives weight to regret will favour A. Opricovic and Tzeng (2004) compare the two methods’ aggregating functions and normalisations and explain why their rankings can differ.
Neither result is wrong. The disagreement, together with VIKOR’s compromise set, is itself a finding: the choice between A and C depends on whether the decision-makers prefer the best overall performer or the one without a weak spot. Running a second method in this way is one of the robustness checks reviewers ask for; CKR’s robustness checks compute the rank correlation between methods for exactly this purpose.
Which mistakes are common in VIKOR papers?
| Error | Consequence | Correct approach |
|---|---|---|
| Ranking by Q without the two conditions | Claims a single winner the method may not support | Check C1 and C2 and report the compromise set |
| DQ taken as 0.25 regardless of m | Wrong threshold for condition 1 | DQ = 1/(m − 1) |
| Higher Q treated as better | Ranking reversed | Lower S, R and Q are better |
| Cost criteria not reversed | Rewards high cost | f* = min for cost criteria |
| v chosen to get a preferred result | Result reflects the analyst, not the data | Use 0.5 and report a scan over v |
The DQ error deserves attention because it is common in published work. Some papers fix DQ at 0.25, which is correct only for five alternatives. With four alternatives it is 0.333, with ten 0.111. Using too small a DQ makes condition 1 easier to pass and so overstates how clearly the leader wins.
How do you report VIKOR?
Report the decision matrix, weights and directions, f* and f⁻, the S, R and Q values with their three rankings, the value of v and why it was chosen, DQ, the outcome of each condition, and the compromise solution or set. For the example: “At v = 0.5, supplier A had the lowest Q (0.046) and ranked first by R, satisfying acceptable stability, but supplier C’s Q (0.223) was within DQ = 0.333, so the compromise set was {A, C}.” In CKR, S, R and Q are reported with both conditions checked and stated in words, and v can be changed to see its effect.
Questions people ask
What value of v should I use?
Use 0.5 unless there is a reason to favour majority (higher v) or veto (lower v), and state it. Because the result can depend on v, report a scan of Q over v from 0 to 1.
Is a lower or higher Q better?
Lower. S, R and Q all measure shortfall from the best values, so the alternative with the smallest Q is the leading compromise.
Does VIKOR need normalised weights?
Yes. S and R are sums and maxima of weighted terms, so weights that do not sum to 1 change their scale. Normalise the weights first.
What happens if two alternatives have the same Q?
They are tied, and condition 1 fails automatically, so both belong to the compromise set.
Can VIKOR be used with fuzzy data?
Yes. Fuzzy VIKOR replaces the crisp values with fuzzy numbers and follows the same logic, including the compromise conditions.
References
Opricovic, S., & Tzeng, G.-H. (2004). Compromise solution by MCDM methods: A comparative analysis of VIKOR and TOPSIS. European Journal of Operational Research, 156(2), 445–455. https://doi.org/10.1016/S0377-2217(03)00020-1
Opricovic, S., & Tzeng, G.-H. (2007). Extended VIKOR method in comparison with outranking methods. European Journal of Operational Research, 178(2), 514–529. https://doi.org/10.1016/j.ejor.2006.01.020
Hwang, C.-L., & Yoon, K. (1981). Multiple attribute decision making: Methods and applications. Springer. https://doi.org/10.1007/978-3-642-48318-9
CKR team · Chakaralaya Analytics
How this was checked. f*, f⁻, every weighted shortfall, S, R, Q, the three rankings, both compromise conditions and the scan over v were computed with CKR’s VIKOR. DQ and the compromise-set rule follow Opricovic and Tzeng (2004, 2007). References were checked against Crossref.