In order to study the dynamic model of marine ecosystem and predict the response and impact service of marine ecosystem to climate change, this paper uses the method of adjoint assimilation function to divide a year into 72 processes and optimize the five key parameters VM, DZ, E, GM, and DP (referred to as KP). The correlation coefficients of VM, DZ, and E are 0.99, and so are DP and GM. The variation trend of VM, DZ, and E is negatively correlated with that of DP and GM, and the correlation coefficient is -0.99. Conclusion: it shows that in the numerical simulation of marine ecosystem dynamics, compared with only considering the spatial distribution of parameters or only considering the temporal distribution of parameters, the change trend of VM, DZ, and E is negatively correlated with that of DP and GM. Considering the spatial and temporal distribution of parameters is more reasonable, more physical significance and in line with the ecological mechanism.