function fval = fval_cond_bd(A,lb,ub,t)

Y = min(max(A,lb*t),ub*t);
fval = 0.5*norm(A - Y,'fro')^2;