Parameter Calibration And Optimization In Smart Grid For Synchronous Generators And Converters