A Discretization Method for Solving Optimization Problems in Structural Design