Cut fill balance

is there a way to automate the cut/fill balance.
what i am looking for is to give some parameters (max grade, curve data- speeds, cross section, cut fill ratio) and have the program "design" the road with least mass haul.
possible?
what i am looking for is to give some parameters (max grade, curve data- speeds, cross section, cut fill ratio) and have the program "design" the road with least mass haul.
possible?