On a generalization of power algorithms over max-plus algebra