EN
In this paper, we theoretically investigate the generation of optical rogue waves from a Lugiato-Lefever equation with variable coefficients by using the nonlinear Schrödinger equation-based constructive method. Exact explicit rogue-wave solutions of the Lugiato-Lefever equation with constant dispersion, detuning and dissipation are derived and presented. The bright rogue wave, intermediate rogue wave and the dark rogue wave are obtained by changing the value of one parameter in the exact explicit solutions corresponding to the external pump power of a continuous-wave laser.