S-parameter Simulation and Optimization