On 09/18/2017 09:33 AM, Yiyang Zhang wrote:

For some problems, we might know in advance that the solution is in some range, e.g. [-1,1].

You mean the exact solution u(x)?


If we do not impose this restriction, the iteration may easily go to some other local minima.

Correct. But do you also know that the solution u_h(x) of the *discretized* equation satisfies the restriction that -1 <= u_h(x) <= 1 ? In general, this is not an easy thing to prove -- in fact, it will in general not be true. And if that statement is not true for the discrete solution u_h(x), then it is not correct to also *impose* this restriction.


In dealii, how do we impose such a restriction on the solution vector after each iteration?

You mean within the SolverCG, for example? Why would you want to impose it in each iteration, as opposed to just on the final solution of the linear system? Or do you mean in a nonlinear iteration?

Best
 W.

--
------------------------------------------------------------------------
Wolfgang Bangerth          email:                 [email protected]
                           www: http://www.math.colostate.edu/~bangerth/

--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- You received this message because you are subscribed to the Google Groups "deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to