By using the Matlab optimization toolbox,one-dimension and multi-demension variable function optimization is realized effectively with genetic algofithm(GA). Visual results and excellent performance earl be obtained. A new method for the actual appli...