Based on the power flow tracing method, a green electricity-carbon linkage calculation method for zerocarbon parks is proposed to dynamically update the proportion of green electricity and carbon emission factors at the nodes of park, addressing current calculation issues and errors due to temporal and spatial factors, which can accurately quantify green electricity consumption and carbon emissions. The proportion and emission factors are integrated into park optimization, forming a model for green power-zero-carbon-economic optimization. Considering green electricity consumption and zero-carbon goals, the carbon offset technology is used to offset direct and indirect carbon emissions in the park. Compared with the conventional economic optimization model, the green electricity consumption and green electricity consumption rate increases by 18 MWh and 5% respectively, and zero-carbon emission is realized with model rationality verified through simulation.