Method and system for optimizing process parameters in an additive manufacturing process January 1, 2021