This paper reports on a modeling and optimization of laser welding of aluminum-magnesium alloy thickness of 1.7mm. Regression analysis is used for modeling and Genetic algorithm is used for optimize the process parameters.The input values for the regression methods is taken according the Taguchi based orthogonal array. A software named Computer aided Robust Parameter Genetic Algorithm CARPGA has been developed in MATLAB 2013 which combine all of these methodologies. This software has been validated with some published paper.