Bridging the gap between mathematical optimization and structural engineering