Minimal energy control of a biped robot with numerical methods and a recursive symbolic dynamic model