Observational constraint on generalized Chaplygin gas model