  We have investigated cosmological models with a self-interacting scalar field
and a dissipative matter fluid as the sources of matter. Different variables
are expressed in terms of a {\it generating function}. Exact solutions are
obtained for one particular choice of the {\it generating function} The
potential corresponding to this generating function is a standard tree-level
potential arising in the perturbative regime in quantum field theory. With
suitable choice of parameters, the scale factor in our model exhibits both
inflationary behaviour in the early universe as well as an accelerating phase
at late times with a decelerating period in between. It also satisfies the
constraints for primeval nucleosynthesis and structure formation and seems to
solve the cosmic coincidence problem. The solution exhibits a attractor nature
towards a asymptotic de-sitter universe.
