Learning from lions: inferring the utility of agents from their trajectories