wsmp function

Weighting between stability and mean performance