Limit cycles for a variant of a generalized Riccati equation