Code of Limited Participation Model

Hi, Guys:
Is there some working on Limited Participation model in dynare? I am stucked somewhere, since I can’t substitute out bonding holding in the Euler equation, but I can’t find another equation related with bond holding, thus I am one equation short to get a complete system. Hope that you guys can give me some hint.