In this paper, the variational principles of hydrodynamic problems for the incompressible and compressible viscous fluids are established. These principles are principles of maximum power losses. Their generalized variational principles are also discussed on the basis of Lagrangian multiplier methods.