Automatically generating humanlike grasp postures of the digital hand is a key issue for the virtual ergonomic assessment of the industrial products. In this paper we propose a new optimization-based approach for generating the realistic grasp posture. As an objective function, we use the number of the contact points, the fit of the specific part of the hand surface for the feature edges of the product surface and the margin for the constraints on the joint angle limits of the figures. The experimental studies on the grasp posture generation for the digital camera indicate that more realistic grasp posture could be generated using the proposed optimization-based method than the one using our former method.