A Formulation For Optimal Structural Design with Optimal Materials