In this paper, we discuss the weak sharp minima about the general constraint of set valued optimization problems and also extend the conclusion from the vector optimization to the set valued optimization. Then we give the optimality conditions in finite dimensional space by the method of Mordukhpvich cone. Finally, we get the equivalent propositions with the help of convex set separation theorem by introducing the nonlinear scalar function.