The stochastic resonance effect can be realized by tuning system parameters or by adding noise. This paper investigates the possibility to enhance the stochastic resonance effect by tuning system parameters and adding noise simultaneously. First, we use examples to demonstrate the situation where only the system parameters or noise can be adjusted to maximize the stochastic resonance effect. Then, it is shown, using standard optimization theory, that the normalized power norm of the bistable double-well system with aperiodic input signal can reach a larger maximal value by tuning the system parameter and adding noise simultaneously. Finally, for the purpose of practical implementation, searching for the optimal system parameter and noise intensity is realized by an on-line fast-converging optimization algorithm.