A study of alternative formulations for optimization of structural and mechanical systems subjected to static and dynamic loads