Modeling pattern formation and cavity solitons in quantum dot optical microresonators in absorbing and amplifying regimes