Professional Documents
Culture Documents
Requirements Trade-Offs Analysis in The Absence of Quantitative Measures: A Heuristic Method
Requirements Trade-Offs Analysis in The Absence of Quantitative Measures: A Heuristic Method
the algorithm generates four different goals satisfaction sta- new virtual alternative like A01 with revised consequences, so
tuses that one of them is the actual consequence of A1 and the consequences of A01 would be {M H, −M H, −L}. Note
A2 . The right-hand side of Figure 6 shows these four possi- that this swap shows how much stakeholders are willing to
ble placement cases, P1 , P2 , P3 , P4 . Each of these placement sacrify on Performance for better Usability, and the alterna-
cases is a unique combination of contribution values on all tives are not actually improved.
goals with respect to the relative ordering of A1 and A2 on The virtual alternative is as preferred as the initial one,
the interval scale. Each case includes one possible way to and it can be used as a surrogate. Then, the irrelevant
place the contributions of A1 and A2 on the scale, taking goals from the decision process, i.e., goals that are not dif-
the relative ordering of the alternatives into account. ferent between alternatives, are removed from the decision
Step 3: Determining the Dominant Alternative for analysis process. For example A2 and A01 are indifferent for
each Placement Case Performnace (g2 ,) so g2 can be removed from the problem.
Once all possible placement cases are enumerated, the al- The underlying purpose of the swaps is to either make at-
gorithm needs to determine the dominant alternative for tributes irrelevant, in the sense that both alternatives have
each placement. In this part, first we discuss why a utility equal consequences on this goal, or create a dominated al-
function is not useful for determining the dominant alterna- ternative, in the sense that the other alternative is at least
tive, and then, we explain how the Even Swaps multi-criteria as good as this alternative on every attribute. Such goals
decision analysis method [1] finds the better solution of each can be eliminated, and the process continues until the most
placement. preferred alternative remains.
A simple additive utility function can sum up goals’ satis- In the example we discussed earlier, decreasing g2 from
faction levels for a placement case. For example, the utility 0 to −M H is compensated with increasing g1 from 0 to
of A1 in the first case in Figure 6 would be 0 + 0 + −L = −L. M H; thus, consequences of A01 = {M H, −M H, −L} and
In this way, the “value” of a goal satisfaction level is assumed consequences of A2 = {H, −M H, 0}. A2 has a higher (or
to have a linear relation with the strength of contributions equal) satisfaction level on all goals, therefore for the first
to the goal. However, we discussed in Section 3 that value placement case (P1 ), A2 is the dominant solution.
functions are not necessarily a linear function of contribu- To analyze the second possible placement, P2 , the analyst
tions and strength of contributions does not reflect the sat- asks stakeholders what is the value of x, if g3 or A1 is in-
isfaction values and priorities of goals in the utility function. creased from 0 to L, and as the compensation, g2 is reduced
Hence, calculating a utility value is not a practical way for from 0 to x. Stakeholders agree with x = −M , and accord-
determining the dominant solution for a placement case. ingly, consequences of A01 = {0, −M, L} and consequences of
To solve this problem, in [30], the Even Swaps method A2 = {H, −M H, L}. So g3 is an irrelevant goal and can be
is adapted for deciding on the optimum alternative design removed from the decision analysis over A1 and A2 for P2 .
solutions given the consequences of each alternative on a set Sat(A01 , g1 ) < Sat(A2 , g1 ) but Sat(A01 , g1 ) > Sat(A2 , g1 ),
of requirements. In an even swap, the decision analyst, col- thus another swap is needed to decide which alternative is
laborating with the stakeholders, changes the contributions dominant. The analyst asks stakeholders what is the value
of an alternative on one goal, and compensates this change of x, if g2 is decreased from −M to −M H, and as the com-
with a preferentially equal change in the satisfaction level of pensation, g1 is increased from 0 to x. Stakeholders agree
another goal. In other word, the Even Swaps makes trade- with x = −L; thus consequences of A01 = {−L, −M H, L}
offs by asking decision stakeholders to give up on one NFR and consequences of A2 = {H, −M H, L}, which indicates
for better satisfaction level of another NFR. For instance, in that A2 is the dominant solution for P2 . Using the same
the placement case 1 in Figure 6, where consequences of A1 method, A2 is recognized as the dominant solution for the
on Uability, Performance, Maintainability is {0, 0, −L} and rest of the placement cases.
consequences of A2 = {H, −M H, 0}, stakeholders agree that Step 4: Final Decision with the Human Judgment
if Performance of A1 is reduced from 0 to -MH, then Usabil- Involvement
ity of A1 shall be increased from 0 to M H. This creates a By applying the Even Swaps method, an alternative might
be determined as the dominant solution for all placements. humans’ cognitive ability (and constraint). The granularity
In that case, the alternative is proposed as the better solu- of the scale affects the number of possible placement cases
tion in the pair. For example, in Figure 6, A2 is determined that the algorithm examines, and consequently the number
as the dominant solution in all of the placement cases, so A2 of exceptional patterns for which stakeholders’ judgment is
is the overall optimum solution. The analyst is still unaware needed. By using the scale of (low,low) to (high,high), in
which of those placement cases was the actual consequence the worst case, contributions of two alternatives may have
of the alternatives; nevertheless, the algorithm determines a (low,low) difference on all goals. Hence, for each goal, the
the best solution without the need to exact numerical satis- alternatives can be placed in 9 different places, which results
faction level of goals or any other extra information. in 9m placement cases (for m goals). The scale of 1-9 quickly
When an alternative is not dominant for all cases, but it becomes inefficient, therefore, we use the scale of 0 to High
is determined as the dominant one for the majority of the (5 intervals) to limit the number of placement cases to the
placement cases, the algorithm finds the exceptional pat- order of 5m . Note that although the scale of −High to High
terns of placements where the alternative is dominated by has 11 different intervals, when the difference between two
the other solution. For example, consider two hypothetical alternatives is Low, at most 5 different placements (negative
solutions: A and B. An exceptional pattern may indicate or positive side of the scale) are possible.
an alternative like A is dominant unless usability of A is Complexity Analysis. The heuristic trade-off analysis
lower than M edium. The experts’ judgment is then needed method is implemented in a prototype tool that interacts
to examine the exceptional patterns, and either reject them with the user to get the comparisons, asks swaps, finds ex-
as rare cases, or confirm that contributions’ strengths match ceptional patterns, and gets the human judegment about the
the exceptional placement cases. The final decision is then patterns. The running time of the algorithm is the function
based on this judgment. To decide between A and B, if of T (n, m, s), where n is the number of competing alterna-
the domain expert believes that the usability level of A is tives, m is the number of goals (criteria of comparisons), and
at least M edium or higher (not matched with the pattern), s is the granularity of the comparisons (s is set to be 5 in this
then A is definitely the overall better solution in the pair of work as the highest difference between two contributions is
A and B. On the other hand, if the domain expert believes High). In each cycle, the algorithm determines the domi-
that the usability of A is lower than M edium (matched with nant solution in a pair of alternatives; hence for n alterna-
the pattern), B is the optimum solution in the pair. tives, n−1 cycles are needed: T (n, m, s) = (n−1)×Tp (m, 5).
Tp (m, 5) is the running time to generate all possible place-
4.1 Discussion ment cases and decide on the dominant alternative. In the
Method Benefits. By direct measurement of require- worst case, where the difference of a pair of alternatives
ments satisfaction, m × n knowledge-intensive and cogni- is Low, the algorith generates 5 placement possibilities for
tively hard queries are asked from the domain experts. By each goal, and given m goals, Tp (m, s) = 5 × 5... × 5 (m
applying the proposed method, decision stakeholders need times)= O(5m ). Although the algorithm complexity is in
to answer m × (n − 1) comparison queries which require less the order of O(5m ), in reality, m is limited to the number
cognitive abilities. Although the suggested heuristic algo- of leaf goals in the goal graph which are requirements of a
rithm may not always provide a definitive answer, it enables sub-system that need to be considered for decision making.
objective trade-off decision making even though detailed nu- Method Limitations. The major limitation of this
merical data is not available. The heuristic algorithm may method is the possibility of facing an alternative in the pair
ultimately rely on the human judgment, for which experts that is dominant for half of the placement cases; thus stake-
are asked to judge whether the contribution values match the holders are required to examine numerous exceptional cases,
exceptional patterns. Nevertheless, such judgments require which are the other half of the placement cases. Examin-
less effort than providing absolute measures for satisfaction ing those many exceptional cases is practically infeasible for
level of all goals. Extracting utility of alternatives and nu- human users. Another threat to validity of the method is
merical importance weights and calculating a utility value using the interval scale of −High to High for comparing the
is less computionally complex and does not rely on human alternatives and expecting that stakeholders are able to dif-
judgement for the final decision; however, even if one piece ferentiate the strength of contributions in this interval scale.
of information in the utility formula is missing, the utility The way that stakeholders understand the intervals of com-
value does not provide any answer. parisons may differ from the way in fact we use them in the
Our Choice of the Scale. Detailed reliable input data algorithm. The number of placement cases grow in the order
result in reliable decisions. On the other hand, the more of 5m for m goals. When the problem scales, the algorithm
detailed estimates we expect from stakeholders and experts, may return several exceptional patterns of satisfaction level
the more we may receive arbitrary numbers. We need to to the human expert for the final judgment.
balance the amount of information we request from stake- Applying the Even Swaps to a large number of placement
holders. Although it is desirable to acquire as much detail cases is tedious and labor-intensive. In practice, the stake-
as possible, it is crucial to consider time and budget lim- holders may not be able to select the right goals to swap.
itations for requirements analysis. At the same time, the Making trade-offs by even swaps may also need relatively
cognitive abilities and knowledge required by the stakehold- extensive cognitive abilities and domain knowledge. Never-
ers and experts to provide the decision analysis input should theless, if stakeholders are not able the specify the maximal
not be overestimated. amount of a goal satisfaction level that they are willing to
Saaty [31] argues that humans are able to distinguish be- sacrifice for a unit of increase in another goal, then it is
tween high, medium, and low at two levels of comparison, probable that they will not be able to numerically specify
which gives us nine categories from (low,low) to (high,high). preferences over the goals either.
The choice of the scale in the current work is based on this
5. THE ONE-ITS CASE STUDY of possible placement cases by adding thresholds and nu-
We applied the proposed method to the ONE-ITS project merical measures of contributions to the model, whenever
that has been collaboratively developed by the Department such data is available. This may reduce the number of ex-
of Civil Engineering at the University of Toronto, the Uni- ceptional cases (patterns) that require a final judgment by
versity of Regina, the Ministry of Transportation, Ontario stakeholders and experts. Further case studies and appli-
(MTO), and the City of Toronto. In this case study, the cation of the method in action research and experiments is
goal models were developed based on reviewing the project needed for evaluating the utility and usability of the method
documents and interviewing an MTO expert. In Figure 7, and the tool.
a goal model which focuses on the Management of VMS is
given. In a separate interview session that took one hour, the
MTO expert compared the alternative systems on a number 7.[1] J.REFERENCES
of goals. Figure 7 shows how the alternative solutions affect S. Hammond, R. L. Keeney, and H. Raiffa, Smart choices : a practical guide
to making better life decisions. Broadway Books, 2002.
the goals of the VMS application, and lists comparisons that [2] A. van Lamsweerde and E. Letier, “Handling obstacles in goal-oriented
requirements engineering,” IEEE Trans. Softw. Eng., vol. 26, no. 10, pp.
the MTO expert provided. 978–1005, 2000.
The heuristic method generates 540 different placement [3] M. S. Feather, S. L. Cornford, K. A. Hicks, J. D. Kiper, and T. Menzies,
“A broad, quantitative model for making early requirements decisions,”
cases based on the comparisons that MTO expert provided. IEEE Software, vol. 25, pp. 49–56, 2008.
[4] H. P. In, D. Olson, and T. Rodgers, “Multi-criteria preference analysis for
The algorithm did not generate any exceptional patterns, systematic requirements negotiation,” in COMPSAC ’02, 2002, pp. 887–892.
and the ONE-ITS web-based system was determined as the [5] W. Ma, L. Liu, H. Xie, H. Zhang, and J. Yin, “Preference model driven
services selection,” in Proc. of CAiSE’09, 2009, pp. 216–230.
better solution for all 540 possible placement cases. The [6] J. Karlsson and K. Ryan, “A cost-value approach for prioritizing
requirements,” IEEE Softw., vol. 14, no. 5, pp. 67–74, 1997.
MTO expert stated that ONE-ITS is the better solution [7] E. Letier and A. van Lamsweerde, “Reasoning about partial goal
in their opinion as well, which provides a support for the satisfaction for requirements and design engineering,” in SIGSOFT
’04/FSE-12, 2004, pp. 53–62.
correctness of the decision suggested by our method. [8] D. Gardner, The Science of Fear: Why We Fear the Things We Shouldn’t–and Put
Ourselves in Greater Danger. Dutton Adult, 2008.
[9] B. Schneier, “The psychology of security,” Commun. ACM, vol. 50, no. 5, p.
128, 2007.
[10] L. Chung, B. A. Nixon, E. Yu, and J. Mylopoulos, Non-Functional
Requirements in Software Engineering. Kluwer Academic, 1999.
[11] E. Yu, “Modeling Strategic Relationships for Process Reengineering,”
Ph.D. dissertation, University of Toronto, 1995.
[12] T. L. Saaty, The Analytic Hierarchy Process: Planning, Priority Setting, Resource
Allocation. Mcgraw-Hill, 1980.
[13] V. Belton and T. J. Stewart, Multiple Criteria Decision Analysis: An Integrated
Approach. Springer, 2001.
[14] R. L. Keeney and H. Raiffa, Decisions with multiple objectives : preferences and
value tradeoffs. Wiley, 1976.
[15] J. Figueira, S. Greco, and M. Ehrgott, Multiple Criteria Decision Analysis:
State of the Art Surveys. Springer Verlag, 2005.
[16] J. Karlsson and K. Ryan, “A cost-value approach for prioritizing
requirements,” IEEE Softw., vol. 14, no. 5, pp. 67–74, 1997.
[17] I. S. Brito, F. Vieira, A. Moreira, and R. A. Ribeiro, “Handling conflicts in
aspectual requirements compositions,” T. Aspect-Oriented Software
Development, vol. 3, pp. 144–166, 2007.
[18] J. Yen and W. A. Tiao, “A systematic tradeoff analysis for conflicting
imprecise requirements,” in RE ’97, 1997, p. 87.
[19] I. F. Alexander, “Initial industrial experience of misuse cases in trade-off
analysis,” in In Proc. of RE’02. IEEE Computer Society, 2002, pp. 61–70.
[20] L. Bass, P. Clements, and R. Kazman, Software Architecture in Practice.
Second Edition, Addison Wesley, 2003.
[21] S. H. Houmb, J. Jürjens, G. Georg, and R. France, “An integrated security
verification and security solution trade-off analysis,” In Integrating Security
and Software Engineering, 2006.
[22] H. Kaiya, H. Horai, and M. Saeki, “AGORA: Attributed goal-oriented
requirements analysis method,” In RE’02, vol. 0, p. 13, 2002.
[23] J. Horkoff and E. Yu, “A Qualitative, Interactive Evaluation Procedure for
Goal- and Agent-Oriented Models,” in CAiSE Forum. CEUR Workshop
Figure 7: Comparison of alternative solutions for Proceedings, 2009.
the VMS sub-system [24] P. Giorgini, G. Manson, and H. Mouratidis, “On security requirements
analysis for multi-agent systems.” in SELMAS’03, 2003.
[25] Y. Asnar and P. Giorgini, “Modelling risk and identifying countermeasure
in organizations,” 2006, pp. 55–66.
[26] D. Amyot, S. Ghanavati, J. Horkoff, G. Mussbacher, L. Peyton, and E. Yu,
6. CONCLUSIONS, LIMITATIONS, AND FU- “Evaluating goal models within the goal-oriented requirement language,”
Int. Journal of Intelligent Systems (IJIS) (to appear), 2010.
TURE WORK [27] E. Letier and A. van Lamsweerde, “Reasoning about partial goal
satisfaction for requirements and design engineering,” SIGSOFT Softw. Eng.
Qualitative goal model evaluation techniques are not able Notes, vol. 29, no. 6, pp. 53–62, 2004.
[28] P. Giorgini, J. Mylopoulos, and R. Sebastiani, “Goal-oriented requirements
to sufficiently differentiate alternative solutions. Quanti- analysis and reasoning in the tropos methodology,” Eng. Appl. Artif. Intell.,
vol. 18, no. 2, pp. 159–171, 2005.
tative MCDA methods for requirements trade-off decision [29] F. Lootsma, Multi-criteria decision analysis via ratio and difference judgement.
making rely on availability and accuracy of numerical esti- Dordrecht: Kluwer Academic, 1999.
[30] G. Elahi and E. Yu, “Trust trade-off analysis for security requirements
mates or measures of goal satisfaction levels. To avoid these engineering,” In Proc. of RE’09, vol. 0, pp. 243–248, 2009.
problems and limitations, we propose a heuristic decision [31] T. Saaty, “The analytic hierarchy and analytic network processes for the
measurement of intangible criteria and for decision-making,” in Multiple
making algorithm that collects relative orderings of alterna- Criteria Decision Analysis: State of the Art Surveys. Springer Verlag, 2005, pp.
345–408.
tives to analyze requirements trade-off. Although the sug-
gested heuristic method may not always find the optimum
solution or may rely on human judgment, it enables an algo-
rithmic trade-off decision making even though detailed nu-
merical data are not available.
We are enhacing the algorithm to automatically suggest
even swaps and reuse them in other placement cases. In an
ongoing work, we are exploring ways to reduce the number