[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Overdetermined, non-linear
- To: petsc-users@xxxxxxxxxxx
- Subject: Re: Overdetermined, non-linear
- From: "Matthew Knepley" <knepley@xxxxxxxxx>
- Date: Sun, 3 Feb 2008 19:59:00 -0600
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=EyIqZYXK5oTisHc+YL+Ud7x1aJHz0r/G8tw7KzjvyUI=; b=B4AOjYyG142trEqYm2VwLZm1Dxi5mm8rPA9WXpBkRDdY8HmaDTciYChyu1o0CUIvHLXFZ9m8VbF652nZGFtmmQEwXTVN/lYL+HWT7zdvBsUjFGaHY/ZN+P0UpTA25j9dT9/p/vYJzXM/SeceeYxvExReMn2NKRmS6MPr2ekGSD0=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=sbDcPjydi0W/CL5svf+uPLzVVEhCRiVb51H0tRmiMB3pMxmbSKJC8FpYyKsWm9vuADhbnG5b6Cm4Xl85y3W/0Rc9K4FXLLyjFFHD1NGndSZ2DXoZwAz2VNBDw8LvI8WAhaSr+Om0ZX54lPYP+fb1xgI1x5uYKyI4uOKUaf18ku8=
- In-reply-to: <1201866864.6394.25.camel@erlend-ws.in.holberger.com>
- References: <1201866864.6394.25.camel@erlend-ws.in.holberger.com>
- Reply-to: petsc-users@xxxxxxxxxxx
- Sender: owner-petsc-users@xxxxxxxxxxx
On Feb 1, 2008 5:54 AM, Erlend Pedersen :.
<erlend.pedersen@xxxxxxxxxxxxx> wrote:
> I am attempting to use the PETSc nonlinear solver on an overdetermined
> system of non-linear equations. Hence, the Jacobian is not square, and
> so far we have unfortunately not succeeded with any combination of snes,
> ksp and pc.
>
> Could you confirm that snes actually works for overdetermined systems,
> and if so, is there an application example we could look at in order to
> make sure there is nothing wrong with our test-setup?
>
> We have previously used the MINPACK routine LMDER very successfully, but
> for our current problem sizes we rely on the use of sparse matrix
> representations and parallel architectures. PETSc's abstractions and
> automatic MPI makes this system very attractive for us, and we have
> already used the PETSc LSQR solver with great success.
So in the sense that SNES is really just an iteration with an embedded solve,
yes it can solve non-square nonlinear systems. However, the user has to
understand what is meant by the Function and Jacobian evaluation methods.
I suggest implementing the simplest algorithm for non-square systems:
http://en.wikipedia.org/wiki/Gauss-Newton_algorithm
By implement, I mean your Function and Jacobian methods should return the
correct terms. I believe the reason you have not seen convergence is that
the result of the solve does not "mean" the correct thing for the iteration
in your current setup.
Matt
> Thank you very much.
>
>
> Regards,
> Erlend Pedersen :.
--
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which
their experiments lead.
-- Norbert Wiener