We apply two different monotonically convergent optimization algorithms to the control of molecular rotational dynamics by laser pulses. This example represents a quantum control problem where the interaction of the system with the external field is nonlinear. We test the validity and accuracy of the two methods on the key control targets of producing molecular orientation and planar delocalization at zero temperature, and maximizing permanent alignment at nonzero temperature.