Autonomous underwater vehicles (AUV) constitute a specific type of cyber-physical system that utilize electronic, mechanical, and software components. A component-based approach can address the development complexities of these systems through composable and reusable components and their integration, simplifying the development process and contributing to a more systematic, disciplined, and measurable engineering approach. In this article, we propose an architecture to design and describe the optimal performance of components for an AUV engineering process. The architecture involves a computing approach that carries out the automatic control of a testbed using genetic algorithms, where components undergo a 'physical-running' evaluation. The procedure, defined from a method engineering perspective, complements the proposed architecture by demonstrating its application. We conducted an experiment to determine the optimal operating modes of an AUV thruster with a flexible propeller using the proposed method. The results indicate that it is feasible to design and assess physical components directly using genetic algorithms in real-world settings, dispensing with the corresponding computational model and associated engineering stages for obtaining an optimized and tested operational scope. Furthermore, we have developed a cost-based model to illustrate that designing an AUV from a physical-running perspective encompasses extensive feasibility zones, where it proves to be more cost-effective than an approach based on simulation.