Subaru AO-188 is a curvature adaptive optics system with 188 elements. It has been developed by NAOJ (National Astronomical Observatory of Japan) in recent years, as the up grade from the existing 36-element AO system currently in operation at Subaru telescope. In this upgrade, the control scheme is also changed from zonal control to modal control. This paper presents development and implementation of the modal optimization system for this new AO-188. Also, we will introduce some special features and attempt in our implementation, such as consideration of resonance of deformable mirror at the lower order modes, and extension of the scheme for the optimization of the magnitude of membrane mirror in wave front sensor. Those are simple but shall be useful enhancement for the better performance to the conservative configuration with conventional modal control, and possibly useful in other extended operation modes or control schemes recently in research and development as well.