A method of designing robust controllers for nonlinear systems with uncertain parameters is presented. The method produces a controller with feedback linearization structure that minimizes a weighted combination of the probabilities of instability and having unsatisfactory performance. The method is demonstrated for a simple nonlinear system consisting of two masses connected by a linear-cubic spring.