Solitary and periodic solutions of the generalized Kuramoto-Sivashinsky equation