Optimization approach for designing composite components