<p style='text-indent:20px;'>The optimal harvesting of biological resources, which is directly relevant to sustainable development, has attracted more attention. In this paper, we first prove the existence and uniqueness of generalized solution of a size-stage-structured population model while the optimal harvesting effort is discontinuous. Next, we demonstrate the existence of the optimal harvesting policy. Further, based on the idea of the Pontryagin's maximum principle of the optimal control problem in ordinary differential equations, we derive the maximum principle describing the optimal control. Finally, the dynamical behavior of the population is simulated by solving the corresponding optimality system numerically with an algorithm based on the method of backward Euler implicit finite-difference approximation. The numerical simulations indicate harvesting activity will reduce the quantity of the population and that increasing harvesting cost will result in less adult harvested. This provides guideline of implementing harvesting tactic to guarantee the persistence of the population.</p>