None of the above answers worked for me, perhaps they were based on an older version of the framework?
All I needed to do was set the value of the underlying control, then call the refresh method, as below:
$("#slider").val(50);
$("#slider").slider("refresh");