We investigate an inhomogeneous nonlinear system.
We construct the generalized Darboux transformation.
We derive the first- and second-order bright and dark rogue-wave solutions.
Properties of the first- and second-order bright and dark rogue waves are discussed.