In this chapter, we have presented a set of tools to support the system architect in the formulation and resolution of system architecture optimization problems. We began by showing that several tasks of the system architect, such as mapping function to form and choosing a system decomposition, can be formulated as architecture optimization problems. Because the step from real system architecture optimization problems to a mathematical formulation may not be self-evident, we introduced a set of Patterns of decisions that appear often when one is formulating system-­architecting problems. These range from the simple DECISION-OPTION Pattern to more complex Patterns such as PARTITIONING and PERMUTING. These Patterns are not completely unrelated; rather, they overlap, in the sense that some problems can be formulated using several Patterns.

We argue that having this “library” of Patterns more closely matches the practice of system architecture: If it is closer to the architect’s mental model, it will be easier to represent, and interpreting the results will be easier as well.

We then moved on to discuss how to use heuristics to solve system architecture optimization problems. Full-factorial enumeration of architectures should be used when possible, although it is often not possible because of combinatorial explosion. A simple algorithm (procedural nested loops) was presented, and a more sophisticated strategy based on declarative programming is provided in Appendix C.

We described our tool of choice for solving large system architecture optimization problems—namely, population-based heuristic optimization. We discussed how to generate an initial population from a combination of random and deterministic architectures. We then introduced genetic algorithms and proposed crossover and mutation as two domain-independent heuristics that can be applied to most problems. Finally, we noted that this set of heuristics can and should be customized with additional domain-independent heuristics (such as Tabu Search) and domain-specific heuristics that capture expert knowledge about the problem at hand.