Generalized multistate simulation model