For certain problem I find it useful to bound the solution update. Is there a way to do this using the PETScSNESSolver? After each iteration as like to do something like
i = (dx > ub):
dx[i] = ub
i = (dx<lb)
dx[i] = lb
x -= dx
where x is my solution.