Optimization of a Nonlinear Dynamics System: Optimization of a Nonlinear system with subject to Stability Constraint