Primer3 0.4.0

Total Penalty = Σ ( weight_i × (value_i - optimum_i)^2 )

If you are using Primer3 (via command line or a GUI), blindly hitting "Pick Primers" is a recipe for mediocrity. Here is how to master the settings available in the 0.4.0 logic: primer3 0.4.0