We explained in Chapter 16 that system architecture problems can be framed as combinatorial optimization problems. When we identified the six patterns of architecture problems, we mentioned that some of them look superficially like classical combinatorial optimization problems. For example, we argued that down-selecting problems look like 0/1 knapsack problems, with the difference that the value of elements is not additive—there are synergies, interferences, and redundancies.

In this appendix, we provide a list of some of the most typical combinatorial optimization problems. The list is partially adapted from Gandibleux’s classification of combinatorial optimization problems according to their combinatorial structure. [17] For each problem, a source is provided. The source referred to is always representative of the foundational work on methods to solve the problem, but it is not necessarily the first time the problem was introduced. Most of these problems arise from graph theory and network analysis, and all of them are NP-complete problems. Very informally, this means that computer scientists think that a great many of these problems cannot be solved quickly (in polynomial time), so they are “hard” problems. † Note that this is by no means an exhaustive list of combinatorial optimization problems, but it contains most of the problems relevant to system architecting.

†Slightly more formally, P is the class of problems for which we can find a solution in polynomial time. NP is the class of problems for which we can check a solution in polynomial time. Most computer ­scientists believe that P is smaller than, and contained in, NP. NP-hard problems are at least as hard as the hardest problems in NP (that is, any NP problem can be reduced to an NP-hard problem in polynomial time), but they do not necessarily belong to NP. And NP-complete problems are simultaneously NP and NP-hard.

  • Assignment problem and generalized assignment problem. [18] In the original assignment problem, there are a number of agents and a number of tasks, and each agent has a different cost to realize each task. The goal of the problem is to assign each task to exactly one agent, in such a way that all tasks are performed and the total cost is minimized. In a generalized version of the assignment problem, agents can perform more than one task, and each has a given budget that cannot be exceeded. Furthermore, when performing a task, each agent produces a certain profit, and the goal of the problem is thus to maximize profit subject to not exceeding any agent’s budget. The assignment problem is similar to our assigning pattern, but reusing our notation from Chapter 16 , it allows for only channelized solutions—that is, architectures where each element of the left set is connected to exactly one element of the right set.

  • Traveling salesman problem. [19] In the traveling salesman problem, there is a list of cities and a matrix containing their pairwise distances. The goal of the problem is to find the shortest path that passes through each city exactly once and returns to the city of origin. Because every city needs to be visited exactly once, this problem is similar to permuting problems.

  • 0/1 knapsack problem. [20] In the original knapsack problem, there is a list of items, each with a certain value and a certain weight. The goal of the problem is to determine the optimal number of items of each type to choose in order to maximize value for a certain maximum cost. In the 0/1 version of the same problem, the number of each item can take only the values {0, 1}. As we have already noted, the knapsack problem is similar to the down-selecting problem, with the important exception that the values of the items are clearly not additive in down-selecting problems, which precludes the application of very efficient algorithms.

  • Set-partitioning/set-covering problem. [21] In the original set-covering problem, there are a list of elements referred to as the universe, and a number of predetermined sets of elements whose union is the universe. The goal of the set-covering problem is to identify the minimum number of these predetermined subsets for which the union is still the universe. The set-partitioning problem is a constrained version of the set-covering problem where the selected subsets need to be disjoint or mutually exclusive. In other words, each element can appear in only one set in the set-partitioning problem, whereas it may appear in more than one set in the set-covering problem. Clearly, our partitioning pattern is very similar to the set-partitioning problem.

  • Job-shop scheduling problem. [22] In the simplest version of the job-shop scheduling problem, there is a list of jobs that needs to be assigned to a set of available resources (such as machines). Each job has a certain duration on each machine. The goal of the problem is to find the sequence of assignments of jobs to machines that minimizes the combined duration of the tasks. Variations of the problem include constraints between tasks (for example, a task needs to occur before another task), costs for running the machines, and interactions between the machines (for example, two machines cannot be running simultaneously). Our permuting pattern is similar to a single-machine instance of the job-shop scheduling problem, because it is truly optimizing over a space of permutations.

  • Shortest-path problem. [23] In a shortest-path problem, there is a graph defined by a list of nodes and a list of edges, and each edge has a distance associated with it. The goal of the problem is to find the path between two given nodes that minimizes the total distance. Note that the shortest-path problem assumes that the graph is already fully defined, and therefore it is substantially different from a CONNECTING Pattern, where the goal is to find the optimal set of edges for a given set of nodes.

  • Network flow problem. [24] In the most generic formulation of a network flow problem, there is a graph defined by a list of nodes and a list of edges. Nodes can be sources or sinks. Sources have a positive flow (supply), and sinks have a negative flow (demand). Each edge has a capacity associated with it, so that the flow through that edge cannot exceed that capacity. Each edge also has a cost associated with it. The goal of the network flow problem is to transport all the flow from the supply nodes to the demand nodes at minimum cost. This problem also assumes that the graph is fully defined and therefore is also substantially different from all our Patterns.

  • Minimum spanning tree. [25] In the minimum spanning tree problem, there is a graph defined by a list of nodes and a list of edges. Each edge has a cost associated with it. A spanning tree is defined as a subset of the edges that form a tree that contains all nodes. The goal of the problem is to find the spanning tree of minimum cost. This problem could be seen as an instance of a connecting problem where only tree architectures are being considered.

  • Maximum satisfiability (MAX-SAT) problem. [26] In the maximum satisfiability problem, there are a set of Boolean variables and a list of logical clauses that use that set of variables. The goal of the problem is to find the assignment to that set of Boolean variables that maximizes the number of clauses that are satisfied. Although the MAX-SAT problem does not immediately look like any of our canonical architecture problems, several problems can be reduced to MAX-SAT problems and solved efficiently using SAT solvers. For example, it is possible to reduce any DECISION-OPTION problem to a problem with only binary variables, with two types of variables: variables that determine whether a certain ­option is chosen for a certain decision, and variables that determine whether a certain metric is at a certain level. Then the optimization problem can at least theoretically be reduced to a satisfiability problem by encoding value functions as logical relationships between binary variables, and adding constraints so that the value of certain metrics is above a certain level. [27]

References

  1.  [1] See, for example, T. Hastie, R. Tibshirani, and J. Friedman, The Elements of Statistical Learning: Data Mining, Inference, and Prediction (New York: Springer, 2011).

  2.  [2] See U. Maulik and S. Bandyopadhyay, “Genetic Algorithm-Based Clustering Technique,” Pattern ­Recognition 33, no. 9 (2000): 1455–1465.

  3.  [3] See, for example, R. Xu, and D. Wunsch II, “Survey of Clustering Algorithms,” IEEE Transactions on Neural Networks 16, no. 3 (2005): 645–678.

  4.  [4] IGTA is an acronym for the Idicula-Gutierrez-Thebeau Algorithm; the first threeletters stand for the names of the people who proposed it. See R.E. Thebeau, “Knowledge Management of System ­Interfaces and Interactions for Product Development Processes.” MS thesis, Systems Design and ­Management, Massachusetts Institute of Technology; and F. Borjesson and K. Hölttä-Otto, “Improved Clustering Algorithm for Design Structure Matrix.” In Proceedings of the ASME 2012 International Design Engineering Technical Conferences.

  5.  [5] See T.L. Yu, A. Yassine, and D.E. Goldberg, “An Information Theoretic Method for Developing Modular Architectures Using Genetic Algorithms,” Research in Engineering Design 18, no. 2 (2007): 91–109.

  6.  [6] See http://www.dsmweb.org/

  7.  [7] This is in opposition to other problem-solving paradigms, such as searching, planning, and game ­playing. See S. Russell and P. Norvig, Artificial Intelligence: A Modern Approach, 3rd ed. (Edinburgh, Scotland: Pearson Education Limited, 2009).

  8.  [8] This is called the “modus ponens” axiom. Propositional logic has other axioms, such as “and elimination,” “and introduction,” “or introduction,” and “resolution.” Any text that provides an introduction to logic will describe these axioms. See, for example, R. Fagin, J. Halpern, Y. Moses, and M. Vardi, Reasoning about Knowledge (Cambridge, MA: MIT Press, 1995).

  9.  [9] See, for example, J.C. Giarratano and G.D. Riley, Expert Systems: Principles and Programming, Course Technology (2004).

  10. [10] See C.C.L. Forgy, “Rete: A Fast Algorithm for the Many Pattern/Many Object Pattern Match Problem,” Artificial Intelligence 19, September (1982): 17–37.

  11. [11] See A. Newell and H.A. Simon, Human Problem Solving (Englewood Cliffs, NJ: Prentice Hall, 1972).

  12. [12] See R. Lindsay, B.G Buchanan, and E.A. Feigenbaum, “DENDRAL: A Case Study of the First Expert System for Scientific Hypothesis Formation ,” Artificial Intelligence 61, June (1993): 209–261; and B.G. Buchanan and E.H. Shortliffe, Rule-based Expert Systems: The MYCIN Experiments of the Stanford Heuristic Programming Project (Addison-Wesley, 1984).

  13. [13] See J. Durkin, “Application of Expert Systems in the Sciences,” Ohio Journal of Sciences 90 (1990): 171–179.

  14. [14] See D. Selva, “Rule-based System Architecting of Earth Observation Satellite Systems,” PhD dissertation, Massachusetts Institute of Technology (Ann Arbor: ProQuest/UMI, 2012).

  15. [15] N.N. Das, D. Entekhabi, and E.G. Njoku, “An Algorithm for Merging SMAP Radiometer and Radar Data for High-Resolution Soil-Moisture Retrieval,” IEEE Transactions on Geoscience and Remote Sensing 49 (2011): 1–9.

  16. [16] Cellular automata such as Conway’s Game of Life are a good example of this. See also S. Wolfram, “ A New Kind of Science (Champaign, IL: Wolfram Media, 2002) and M. Mitchell, Complexity: A Guided Tour (Oxford University Press, 2009).

  17. [17] See M. Ehrgott and X. Gandibleux, “A Survey and Annotated Bibliography of Multiobjective ­Combinatorial Optimization,” OR Spectrum 22, no. 4 (2000): 425–460. doi:10.1007/s002910000046

  18. [18] See G.T. Ross and R.M. Soland, “A Branch and Bound Algorithm for the Generalized Assignment Problem,” Mathematical Programming 8 (1975): 91–103.

  19. [19] See G. Dantzig and R. Fulkerson, “Solution of a Large-scale Traveling-Salesman Problem,” Journal of the Operations Research Society 2, no. 4 (1954):393-410.

  20. [20] See A. Drexl, “A Simulated Annealing Approach to the Multiconstraint Zero-One Knapsack Problem,” Computing 40, no. 1 (1988): 1–8. doi:10.1063/1.3665391

  21. [21] See R.S. Garfinkel and G.L Nemhauser, “The Set-Partitioning Problem: Set Covering with Equality Constraints,” Operations Research 17, no. 5 (1969): 848–856. doi:10.1287/opre.17.5.848

  22. [22] See A.S. Manne, “On the Job-Shop Scheduling Problem,” Operations Research 8, no. 2 (1960): 219–223.

  23. [23] S.E. Dreyfus, “An Appraisal of Some Shortest-Path Algorithms,” Operations Research 17, no. 3 (1969): 395–412.

  24. [24] See J. Edmonds, “Theoretical Improvements in Algorithmic Efficiency for Network Flow Problems,” Computing 19, no. 2 (1972): 248–264.

  25. [25] See R. Graham, “On the History of the Minimum Spanning Tree Problem,” Annals of the History of Computing 7, no. 1 (1985): 43–57.

  26. [26] See P. Hansen and B. Jaumard, “Algorithms for the Maximum Satisfiability Problem,” Computing 303 (1990): 279–303.

  27. [27] See D. Rayside and H.-C. Estler, “A Spreadsheet-like User Interface for Combinatorial Multi-objective Optimization.” Proceedings of the 2009 Conference of the Center for Advanced Studies on Collaborative Research —CASCON’09, 58 (doi:10.1145/1723028.1723037) for a SAT-based implementation of system architecture optimization.