Stability and Optimization of Structures