Optimum design of thin-walled colsed cross-sections: a numerical approach