Optimization of an embedded rail structure using a numerical technique