Optimal design and mechanical systems analysis