Speed-control of energy regulation based variable-speed electrohydraulic drive