update.compute_betas_from_shifts function

Update function for optimal value computation